Documentation ¶
Overview ¶
Package server provides a HTTP listener for handling requests from either a game server or any form of interface to the data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App stores and controls program state
func Initialise ¶
Initialise performs all the necessary actions to bootstrap the application into a runnable state ready for starting with app.Start
func (*App) Authenticator ¶
Authenticator is a middleware layer for requests that require authentication
type Config ¶
type Config struct { Temporary bool `default:"true"` Bind string `default:"0.0.0.0:7788"` Auth string `default:"cunning_fox"` MongoHost string `split_words:"true" required:"false"` MongoPort string `split_words:"true" required:"false"` MongoName string `split_words:"true" required:"false"` MongoUser string `split_words:"true" required:"false"` MongoPass string `split_words:"true" required:"false"` }
Config stores static configuration
type EndpointHandler ¶
EndpointHandler wraps a HTTP handler function with app-specific args/returns
func (EndpointHandler) ServeHTTP ¶
func (f EndpointHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements the necessary chaining functionality for HTTP middleware
Click to show internal directories.
Click to hide internal directories.