Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
func EndpointOf ¶
func EndpointOf(mount func(router chi.Router), opts ...EndpointOption) Endpoint
type EndpointOption ¶
type EndpointOption func(*Endpoint)
func AllowAnonymous ¶
func AllowAnonymous() EndpointOption
func UI ¶
func UI() EndpointOption
type Server ¶
type Server struct {
Store ports.SessionStore
HTTPCfg config.HTTP
SessionCfg config.SessionTokens
LoggingCfg *config.Logging
Router *chi.Mux
ApiEndpoints []Endpoint
UiEndpoints []Endpoint
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer( httpCfg config.HTTP, loggingCfg *config.Logging, sessionCfg config.SessionTokens, store ports.SessionStore, ) *Server
func (*Server) AddEndpoints ¶
Click to show internal directories.
Click to hide internal directories.