Documentation
¶
Index ¶
- func CorrelationMiddlewareAdapter(logHealthCheck bool) controllers.Adapter
- func JsonContentMiddlewareAdapter() controllers.Adapter
- func LoggerMiddlewareAdapter(logHealthCheck bool) controllers.Adapter
- type DefaultHomepage
- type HttpListener
- func (l *HttpListener) AddController(c controllers.Controller, path string, methods ...string)
- func (l *HttpListener) AddDefaultHomepage() *HttpListener
- func (l *HttpListener) AddHealthCheck() *HttpListener
- func (l *HttpListener) AddJsonContent() *HttpListener
- func (l *HttpListener) AddLogger() *HttpListener
- func (l *HttpListener) GetApiPrefix() string
- func (c *HttpListener) Probe() controllers.Controller
- func (s *HttpListener) ShutdownHandler(w http.ResponseWriter, r *http.Request)
- func (l *HttpListener) Start()
- func (l *HttpListener) WaitAndShutdown()
- func (l *HttpListener) WithPublicUserRegistration() *HttpListener
- type HttpListenerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CorrelationMiddlewareAdapter ¶
func CorrelationMiddlewareAdapter(logHealthCheck bool) controllers.Adapter
func JsonContentMiddlewareAdapter ¶
func JsonContentMiddlewareAdapter() controllers.Adapter
func LoggerMiddlewareAdapter ¶
func LoggerMiddlewareAdapter(logHealthCheck bool) controllers.Adapter
Types ¶
type DefaultHomepage ¶
type HttpListener ¶
type HttpListener struct { Router *mux.Router Context *execution_context.Context Logger *log.LoggerService Options *HttpListenerOptions Controllers []controllers.Controller DefaultAdapters []controllers.Adapter Servers []*http.Server // contains filtered or unexported fields }
HttpListener HttpListener structure
func GetHttpListener ¶
func GetHttpListener() *HttpListener
func NewHttpListener ¶
func NewHttpListener() *HttpListener
NewHttpListener Creates a new controller
func (*HttpListener) AddController ¶
func (l *HttpListener) AddController(c controllers.Controller, path string, methods ...string)
func (*HttpListener) AddDefaultHomepage ¶
func (l *HttpListener) AddDefaultHomepage() *HttpListener
func (*HttpListener) AddHealthCheck ¶
func (l *HttpListener) AddHealthCheck() *HttpListener
func (*HttpListener) AddJsonContent ¶
func (l *HttpListener) AddJsonContent() *HttpListener
func (*HttpListener) AddLogger ¶
func (l *HttpListener) AddLogger() *HttpListener
func (*HttpListener) GetApiPrefix ¶ added in v0.0.8
func (l *HttpListener) GetApiPrefix() string
func (*HttpListener) Probe ¶
func (c *HttpListener) Probe() controllers.Controller
Login Generate a token for a valid user
func (*HttpListener) ShutdownHandler ¶
func (s *HttpListener) ShutdownHandler(w http.ResponseWriter, r *http.Request)
func (*HttpListener) Start ¶
func (l *HttpListener) Start()
func (*HttpListener) WaitAndShutdown ¶
func (l *HttpListener) WaitAndShutdown()
func (*HttpListener) WithPublicUserRegistration ¶ added in v0.0.6
func (l *HttpListener) WithPublicUserRegistration() *HttpListener
type HttpListenerOptions ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.