service

package
v0.0.0-...-6d33778 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGameInfo

func GetGameInfo(w http.ResponseWriter, r *http.Request)

func HashCode

func HashCode(s string) int

func HealthCheck

func HealthCheck(w http.ResponseWriter, r *http.Request)

func NewRouter

func NewRouter() *mux.Router

func StartWebServer

func StartWebServer()

Types

type GameInfoResult

type GameInfoResult struct {
	GameId   string `json:"gameId"`
	GameName string `json:"gameName"`
}

type OperationResult

type OperationResult struct {
	Status  int         `json:"status"`
	Message string      `json:"message"`
	Result  interface{} `json:"result"`
}

type Route

type Route struct {
	Name        string           // 方法名称
	Method      string           // 路径
	Pattern     string           // 路由适配
	HandlerFunc http.HandlerFunc // 调用方法
}

type Routies

type Routies = []Route

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL