Coder Social home page Coder Social logo

sandboxtool's Introduction

sandbox tool

Install

git clone [email protected]:linqinbo/sandboxtool.git
cd sandboxtool
go build  -o rtctl .
chmod u+x rtctl
cp rtctl /usr/local/bin

支持的命令

rtctl debug  [envirment] [unionid]
rtctl start [unionid] --it=true -v=1
rtctl start [puid] [storage_id] --puid=true --it=true
rtctl recycle [puid] --puid=true
rtctl recycle  --ep={sandbox_endpoint} --token={sandbox_token}
rtctl restart [unionid] --it=true -v=1
rtctl restart [puid] --it=true --puid=true
rtctl sdb --url='wss_url' --alive=true
rtctl sdb --ep="sanbox_endpoint" -t="sandbox_token"

参数含义

  • start: 启动一个沙盒
    • version参数表示采用哪种方式获取沙盒,比如 1 表示用这个地址entry/sandboxes/{sandboxid}请求沙盒,2 表示用这个地址entry/sandbox/{pool_name}请求沙盒
    • it参数表示启动沙盒之后是否创建ws与沙盒通讯
  • recycle:回收一个沙盒
  • restart:强制重启一个沙盒
    • version语义与start相同,-v=1表示用这个entry/sandboxes/{sandboxid}?force=1重启,-v=2表示用这个``entry/sandbox/{pool_name}?force=1重启
  • debug: debug一个用户,根据[environment]跳转到指定的环境,[environment]可以为test或者prod
  • sdb: 沙盒调试桥,支持epurl两种方式, alive表示是否不断开连接,值为true或者false

sandboxtool's People

Contributors

linxs953 avatar

Stargazers

Cecilia avatar 少年 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.