Documentation ¶
Index ¶
- func CreateRouter(server *HTTPServer) (*mux.Router, error)
- type DB
- type HTTPServer
- func (s *HTTPServer) GetCells(w http.ResponseWriter, r *http.Request, vars map[string]string) error
- func (s *HTTPServer) GetTile(w http.ResponseWriter, r *http.Request, vars map[string]string) error
- func (s *HTTPServer) GetWorldLayerInfo(w http.ResponseWriter, r *http.Request, vars map[string]string) error
- func (s *HTTPServer) GetWorlds(w http.ResponseWriter, r *http.Request, vars map[string]string) error
- type HttpApiFunc
- type World
- type WorldInfo
- type WorldLayerInfo
- type ZLevel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRouter ¶
func CreateRouter(server *HTTPServer) (*mux.Router, error)
Types ¶
type HTTPServer ¶
type HTTPServer struct { DB *DB // contains filtered or unexported fields }
func NewHTTPServer ¶
func NewHTTPServer(db *DB, tileRoot string) *HTTPServer
func (*HTTPServer) GetCells ¶
func (s *HTTPServer) GetCells(w http.ResponseWriter, r *http.Request, vars map[string]string) error
func (*HTTPServer) GetTile ¶
func (s *HTTPServer) GetTile(w http.ResponseWriter, r *http.Request, vars map[string]string) error
func (*HTTPServer) GetWorldLayerInfo ¶
func (s *HTTPServer) GetWorldLayerInfo(w http.ResponseWriter, r *http.Request, vars map[string]string) error
func (*HTTPServer) GetWorlds ¶
func (s *HTTPServer) GetWorlds(w http.ResponseWriter, r *http.Request, vars map[string]string) error
type HttpApiFunc ¶
type WorldLayerInfo ¶
type WorldLayerInfo struct { WorldID int `json:"worldId" db:"world_id"` LayerID int `json:"layerId" db:"layer_id"` MaxZ int `json:"maxz" db:"maxz"` Z int `json:"z" db:"z"` Type string `json:"type" db:"type"` WorldName string `json:"worldName" db:"world_name"` CharacterName null.String `json:"characterName" db:"character_name"` }
Click to show internal directories.
Click to hide internal directories.