Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticateRequest ¶
type AuthenticateRequest struct { Username string `json:"username"` Password string `json:"password"` }
AuthenticateRequest specifies the data received by the Authenticate endpoint.
type AuthenticateResponse ¶
type AuthenticateResponse struct {
AccessToken string `json:"access_token"`
}
AuthenticateResponse specifies the data returned from the Authenticate endpoint.
type AuthenticationControllerConfig ¶
type AuthenticationControllerConfig struct { Type string SimpleDriver string SimpleDSN string MemoryUsers []*memory.User }
AuthenticationControllerConfig holds the configuration for an AuthenticationController.
type Config ¶
type Config struct { Server *config.Server General *GeneralConfig AuthenticationController *AuthenticationControllerConfig }
Config is a struct to contain all the needed configuration for our Service
type GeneralConfig ¶
GeneralConfig contains configuration parameters for general parts of the service.
type Service ¶
type Service struct { Config *Config AuthenticationController authenticationcontroller.AuthenticationController }
Service will implement server.Service and handle all requests to the server.
func (*Service) Endpoints ¶
func (s *Service) Endpoints() map[string]map[string]http.HandlerFunc
Endpoints is a listing of all endpoints available in the MixedService.
func (*Service) Middleware ¶
Middleware provides an http.Handler hook wrapped around all requests.
Click to show internal directories.
Click to hide internal directories.