GithubHelp home page GithubHelp logo

beachergong / pyweb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ixqbar/pyweb

0.0 1.0 0.0 1.87 MB

a simple game publish tool framework that use tornado,websocket,zookeeper

Home Page: http://xingqiba.sinaapp.com/

Python 76.38% JavaScript 13.03% HTML 9.69% Shell 0.90%

pyweb's Introduction

pyweb

a simple game publish tool framework that use tornado and websocket

snapshoot

##Step 0 初始化

{node}/server_list/s1   {"update_time":x,"server_name":x,"server_id":x}
...
{node}/server_list/sN   {"update_time":x,"server_name":x,"server_id":x}

##Step 1 打包

{node}/to_zip_notice/v1  {"update_time":x,"pub_id":x,"pub_node_id":x,"config_version":x,"game_version":x,"status":"ok","finish_time":x}
{node}/to_zip_result/v1  {"update_time":x,"status":"ok"}

##Step 2 同步

{node}/to_syc_notice/v1    {"update_time":x,"pub_id":x,"pub_node_id":x,"config_version":x,"game_version":x,"servers":[x,x,...],"status":"ok","finish_time":x}
{node}/to_syc_result/v1/s1 {"update_time":x,"status":"ok"}
...
{node}/to_syc_result/v1/sN {"update_time":x,"status":"ok"}
{node}/to_syc_result/v1    {"update_time":x,"status":"ok"} 

##Step 3 发布

{node}/to_pub_notice/v1    {"update_time":x,"pub_id":x,"pub_node_id":x,"config_version":x,"game_version":x,"servers":[x,x,...],"status":"ok","finish_time":x}
{node}/to_pub_result/v1/s1 {"update_time":x,"status":"ok"}
...
{node}/to_pub_result/v1/sN {"update_time":x,"status":"ok"}
{node}/to_pub_result/v1    {"update_time":x,"status":"ok"}

##Step 4 回滚 @TODO

{node}/to_rol_notice/v1    {"update_time":x,"pub_id":x,"pub_node_id":x, "servers":[x,x,...]}
{node}/to_rol_result/v1/s1 {"update_time":x,"status":"ok"}
...
{node}/to_rol_result/v1/sN {"update_time":x,"status":"ok"}
{node}/to_rol_result/v1    {"update_time":x,"status":"ok"}

pyweb's People

Contributors

ixqbar avatar

Watchers

beachergong 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.