Documentation
¶
Index ¶
- func InterfaceInt(i interface{}) (int, error)
- func InterfaceMap(i interface{}) map[string]interface{}
- func InterfaceSlice(slice interface{}) []interface{}
- type Server
- func (s *Server) CreatePlayer(w http.ResponseWriter, r *http.Request)
- func (s *Server) DeletePlayer(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetPlayer(w http.ResponseWriter, r *http.Request)
- func (s *Server) GetPlayers(w http.ResponseWriter, r *http.Request)
- func (s *Server) InitializeRoutes()
- func (s *Server) SyncPlayers(w http.ResponseWriter, r *http.Request)
- func (s *Server) UpdatePlayer(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InterfaceInt ¶
func InterfaceMap ¶
func InterfaceMap(i interface{}) map[string]interface{}
func InterfaceSlice ¶
func InterfaceSlice(slice interface{}) []interface{}
borrowed from https://stackoverflow.com/questions/12753805/type-converting-slices-of-interfaces
Types ¶
type Server ¶
func (*Server) CreatePlayer ¶
func (s *Server) CreatePlayer(w http.ResponseWriter, r *http.Request)
func (*Server) DeletePlayer ¶
func (s *Server) DeletePlayer(w http.ResponseWriter, r *http.Request)
func (*Server) GetPlayers ¶
func (s *Server) GetPlayers(w http.ResponseWriter, r *http.Request)
func (*Server) InitializeRoutes ¶
func (s *Server) InitializeRoutes()
func (*Server) SyncPlayers ¶
func (s *Server) SyncPlayers(w http.ResponseWriter, r *http.Request)
func (*Server) UpdatePlayer ¶
func (s *Server) UpdatePlayer(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.