Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidIPAddress = errors.New(
"invalid IP address")
)
Errors
Functions ¶
This section is empty.
Types ¶
type CloseCallback ¶
type CloseCallback func(error)
CloseCallback will be called when the server has closed
type HandlerBuilder ¶
type HandlerBuilder func( commonCfg configuration.Common, cfg configuration.Server, logger log.Logger) http.Handler
HandlerBuilder builds a HTTP handler
type HandlerBuilderBuilder ¶
type HandlerBuilderBuilder func(command.Commands) HandlerBuilder
HandlerBuilderBuilder builds HandlerBuilder
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents a server
func (Server) Serve ¶
func (s Server) Serve( commonCfg configuration.Common, serverCfg configuration.Server, closeCallback CloseCallback, handlerBuilder HandlerBuilder, ) *Serving
Serve starts serving
Click to show internal directories.
Click to hide internal directories.