Documentation ¶
Index ¶
- Constants
- Variables
- type GameApp
- type GameAppImp
- func (app *GameAppImp) Add(ctx context.Context, request *v1game.AddRequest) (response *v1game.AddResponse, err error)
- func (app *GameAppImp) Delete(ctx context.Context, request *v1game.DeleteRequest) (response *v1game.DeleteResponse, err error)
- func (app *GameAppImp) Find(ctx context.Context, request *v1game.FindRequest) (response *v1game.FindResponse, err error)
- func (app *GameAppImp) Update(ctx context.Context, request *v1game.UpdateRequest) (response *v1game.UpdateResponse, err error)
Constants ¶
View Source
const ( //default maximum number of online game services DefaultOnline uint32 = 1000 )
Variables ¶
View Source
var ( GameIDNotUnique = "game id must unique" GameNameIsNull = "game name is null" GameIDIsNull = "game id is null" GameSpecIsNull = "game spec is null" GameSpecImageIsNull = "game spec image is null" UpdateGameStatusError = "game status must running" DeleteGameStatusError = "game status must running or error or create" InternalServerError = "internal server error" NotFound = "not found" )
Functions ¶
This section is empty.
Types ¶
type GameApp ¶
type GameApp interface { Add(ctx context.Context, request *v1game.AddRequest) (response *v1game.AddResponse, err error) Delete(ctx context.Context, request *v1game.DeleteRequest) (response *v1game.DeleteResponse, err error) Find(ctx context.Context, request *v1game.FindRequest) (response *v1game.FindResponse, err error) Update(ctx context.Context, request *v1game.UpdateRequest) (response *v1game.UpdateResponse, err error) }
game app interface
type GameAppImp ¶
type GameAppImp struct {
// contains filtered or unexported fields
}
game app object impl
func (*GameAppImp) Add ¶
func (app *GameAppImp) Add(ctx context.Context, request *v1game.AddRequest) (response *v1game.AddResponse, err error)
add game
func (*GameAppImp) Delete ¶
func (app *GameAppImp) Delete(ctx context.Context, request *v1game.DeleteRequest) (response *v1game.DeleteResponse, err error)
delete game
func (*GameAppImp) Find ¶
func (app *GameAppImp) Find(ctx context.Context, request *v1game.FindRequest) (response *v1game.FindResponse, err error)
get game
func (*GameAppImp) Update ¶
func (app *GameAppImp) Update(ctx context.Context, request *v1game.UpdateRequest) (response *v1game.UpdateResponse, err error)
update game
Click to show internal directories.
Click to hide internal directories.