Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) AddServer ¶
AddServer godoc @Summary Add server @Description Add a new server by submitting its address @Tags servers @Accept json @Produce json @Param server body model.NewServer true "Server address" @Success 200 {object} model.Server @Success 202 "Server address has been submitted" @Router /servers [post]
func (*API) ListServers ¶
ListServers godoc @Summary List servers @Description List servers that report to the master server as well as the servers discovered by other means @Tags servers @Produce json @Param gamevariant query string false "Game variant (SWAT 4, SWAT 4X, etc)" @Param gamever query string false "Game version (1.0, 1.1, etc)" @Param gametype query string false "Game mode (VIP Escort, CO-OP, etc)" @Param nopassworded query bool false "Hide password protected servers" @Param nofull query bool false "Hide full servers" @Param noempty query bool false "Hide empty servers" @Success 200 {array} model.Server @Router /servers [get]
func (*API) ViewServer ¶
ViewServer godoc @Summary View server detail @Description Return detailed information for a specific server @Tags servers @Produce json @Success 200 {object} model.ServerDetail @Router /servers/:address [get]