Documentation ¶
Index ¶
- type ApiController
- func (c *ApiController) HandleEndGame(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (c *ApiController) HandleGetBattlesnake(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (c *ApiController) HandleMove(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (c *ApiController) HandleStartGame(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (c *ApiController) NewRouter() *httprouter.Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiController ¶
type ApiController struct {
// contains filtered or unexported fields
}
func New ¶
func New(s strategy.Strategy, c *types.BattlesnakeInfoResponse) *ApiController
func (*ApiController) HandleEndGame ¶
func (c *ApiController) HandleEndGame(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*ApiController) HandleGetBattlesnake ¶
func (c *ApiController) HandleGetBattlesnake(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*ApiController) HandleMove ¶
func (c *ApiController) HandleMove(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*ApiController) HandleStartGame ¶
func (c *ApiController) HandleStartGame(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*ApiController) NewRouter ¶
func (c *ApiController) NewRouter() *httprouter.Router
Click to show internal directories.
Click to hide internal directories.