Documentation
¶
Index ¶
- type Handler
- func (h *Handler) Base(handle func(bit.Control)) func(bit.Control)
- func (h *Handler) Health(c bit.Control)
- func (h *Handler) Info(c bit.Control)
- func (h *Handler) NotFound(c bit.Control)
- func (h *Handler) PlayerDetails(c bit.Control)
- func (h *Handler) PlayerFund(c bit.Control)
- func (h *Handler) PlayerTake(c bit.Control)
- func (h *Handler) Ready(c bit.Control)
- func (h *Handler) Reset(c bit.Control)
- func (h *Handler) Root(c bit.Control)
- func (h *Handler) TournamentAnnounce(c bit.Control)
- func (h *Handler) TournamentDetails(c bit.Control)
- func (h *Handler) TournamentJoin(c bit.Control)
- func (h *Handler) TournamentResult(c bit.Control)
- type Requests
- type Runtime
- type State
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler defines common part for all handlers
func (*Handler) PlayerDetails ¶ added in v0.3.0
PlayerDetails shows player information
func (*Handler) PlayerFund ¶ added in v0.3.0
PlayerFund funds existing player or create new one
func (*Handler) PlayerTake ¶ added in v0.3.0
PlayerTake takes points from existing player
func (*Handler) TournamentAnnounce ¶ added in v0.3.0
TournamentAnnounce announce existing tournament with specified deposit
func (*Handler) TournamentDetails ¶ added in v0.3.0
TournamentDetails shows tournament information
func (*Handler) TournamentJoin ¶ added in v0.3.0
TournamentJoin joins players and backers if necessary
func (*Handler) TournamentResult ¶ added in v0.3.0
TournamentResult finishes the tournament with winners result
type Runtime ¶
type Runtime struct { CPU int `json:"cpu"` Memory string `json:"memory"` Goroutines int `json:"goroutines"` }
Runtime defines runtime part of service information
type Status ¶
type Status struct { Host string `json:"host"` Version string `json:"version"` Commit string `json:"commit"` Repo string `json:"repo"` Compiler string `json:"compiler"` Runtime Runtime `json:"runtime"` State State `json:"state"` Requests Requests `json:"requests"` }
Status contains detailed information about service
Click to show internal directories.
Click to hide internal directories.