Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
type ServerOption ¶
type ServerOption func(*Server)
func WithHandlers ¶
func WithHandlers(handlers ...HandleChainFunc) ServerOption
WithHandlers adds a handler on the http endpoint. If the handler is nil then an error will occur when executing the Listen() method.
func WithOptionalHandlers ¶ added in v0.10.0
func WithOptionalHandlers(handlers ...HandleChainFunc) ServerOption
WithOptionalHandlers adds a handler on the http endpoint. If the handler is nil it is ignored.
Click to show internal directories.
Click to hide internal directories.