Documentation ¶
Index ¶
- func DoTemplateAdd(kv []string) error
- func DoTemplateDel(kv []string) error
- func DoTemplateEmpty() error
- func DoTemplateSet(kv []string) error
- type ClientCLI
- func (cli *ClientCLI) DoCityBuild(ctx context.Context, regID, cityStrID, bStrID string) error
- func (cli *ClientCLI) DoCityDetail(ctx context.Context, reg, cityStrID string) error
- func (cli *ClientCLI) DoCityShow(ctx context.Context, regID, cityStrID string) error
- func (cli *ClientCLI) DoCityShow2(ctx context.Context, regID, cityStrID string) error
- func (cli *ClientCLI) DoCityStudy(ctx context.Context, regID, cityStrID, sStrID string) error
- func (cli *ClientCLI) DoCityTrain(ctx context.Context, regID, cityStrID, uStrID string) error
- func (cli *ClientCLI) DoLifecyleAssign(ctx context.Context, reg, cityStrID, user string) error
- func (cli *ClientCLI) DoLifecyleConfigure(ctx context.Context, reg, cityStrID, model string) error
- func (cli *ClientCLI) DoLifecyleDismiss(ctx context.Context, reg, cityStrID string) error
- func (cli *ClientCLI) DoLifecyleReset(ctx context.Context, reg, cityStrID string) error
- func (cli *ClientCLI) DoLifecyleResume(ctx context.Context, reg, cityStrID string) error
- func (cli *ClientCLI) DoLifecyleSuspend(ctx context.Context, reg, cityStrID string) error
- func (cli *ClientCLI) DoRegionCities(ctx context.Context, regionID string, marker string) error
- func (cli *ClientCLI) DoRegionCreate(ctx context.Context, regID, mapID string) error
- func (cli *ClientCLI) DoRegionGetBuildings(ctx context.Context, reg string) error
- func (cli *ClientCLI) DoRegionGetSkills(ctx context.Context, reg string) error
- func (cli *ClientCLI) DoRegionGetUnits(ctx context.Context, reg string) error
- func (cli *ClientCLI) DoRegionList(ctx context.Context, marker string) error
- func (cli *ClientCLI) DoRegionRoundMovement(ctx context.Context, reg string) error
- func (cli *ClientCLI) DoRegionRoundProduction(ctx context.Context, reg string) error
- func (cli *ClientCLI) DoRegionStatsGet(ctx context.Context, reg string) error
- func (cli *ClientCLI) DoRegionStatsPush(ctx context.Context, reg string) error
- func (cli *ClientCLI) DoTemplateCreate(ctx context.Context, reg string) error
- func (cli *ClientCLI) DoTemplateDelete(ctx context.Context, reg, tpl string) error
- func (cli *ClientCLI) DoTemplateList(ctx context.Context, reg, marker string) error
- func (cli *ClientCLI) DoTemplateUpdate(ctx context.Context, reg, tplID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoTemplateEmpty ¶
func DoTemplateEmpty() error
DoTemplateEmpty generates to os.Stdout a JSON representation of a valid but zeroed CityTemplate
func DoTemplateSet ¶
DoTemplateSet generates to os.Stdout a JSON representation of the CityTemplate loaded from os.Stdin with some fields altered. @param kv must be a sequence of string pairs, with the second value being an encoded integer
Types ¶
type ClientCLI ¶
type ClientCLI struct{}
ClientCLI gathers the actions destined to be exposed at the CLI, to manage a region service.
func (*ClientCLI) DoCityBuild ¶
func (*ClientCLI) DoCityDetail ¶
func (*ClientCLI) DoCityShow ¶
func (*ClientCLI) DoCityShow2 ¶
func (*ClientCLI) DoCityStudy ¶
func (*ClientCLI) DoCityTrain ¶
func (*ClientCLI) DoLifecyleAssign ¶
func (*ClientCLI) DoLifecyleConfigure ¶
func (*ClientCLI) DoLifecyleDismiss ¶
func (*ClientCLI) DoLifecyleReset ¶
func (*ClientCLI) DoLifecyleResume ¶
func (*ClientCLI) DoLifecyleSuspend ¶
func (*ClientCLI) DoRegionCities ¶
DoRegionCities
func (*ClientCLI) DoRegionCreate ¶
DoRegionCreate triggers the synchronous creation of a region with the given name, modeled on the named map.
func (*ClientCLI) DoRegionGetBuildings ¶
func (*ClientCLI) DoRegionGetSkills ¶
func (*ClientCLI) DoRegionGetUnits ¶
func (*ClientCLI) DoRegionList ¶
DoRegionList dumps to os.Stdout a JSON stream of the known regions, sorted by name
func (*ClientCLI) DoRegionRoundMovement ¶
DoRegionRoundMovement triggers one round of armies movement on all the cities of the named region
func (*ClientCLI) DoRegionRoundProduction ¶
DoRegionRoundProduction triggers the production of resources on all the cities of the named region
func (*ClientCLI) DoRegionStatsGet ¶
DoRegionStatsGet triggers a refresh of the stats (of the Region with the given ID) by the pointed region service
func (*ClientCLI) DoRegionStatsPush ¶
DoRegionStatsPush triggers a refresh of the stats (of the Region with the given ID) by the pointed region service