Documentation ¶
Index ¶
- type Bet
- type Handlers
- func (h *Handlers) Create(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func (h *Handlers) ModSignBet(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func (h *Handlers) PersonSignBet(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func (h *Handlers) Query(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func (h *Handlers) QueryByID(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func (h *Handlers) SetWinner(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- type Player
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bet ¶
type Bet struct { ID string `json:"id"` Status string `json:"status"` Players []Player `json:"players"` Moderator string `json:"moderator"` Description string `json:"description"` Terms string `json:"terms"` ExpirationDate time.Time `json:"expirationDate"` Amount int `json:"amount"` }
Bet struct type
type Handlers ¶
Handlers manages the set of user endpoints.
func (*Handlers) ModSignBet ¶
ModSignBet handles the mod signing. Returns the httpStatusCode
func (*Handlers) PersonSignBet ¶
PersonSignBet handles the users signing. Returns the httpStatusCode
Click to show internal directories.
Click to hide internal directories.