Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler interface {
Registrations() []HandlerRegistration
}
type HandlerRegistration ¶
type HttpServer ¶
type HttpServer struct {
// contains filtered or unexported fields
}
func NewHttpServer ¶
func NewHttpServer(logger zerolog.Logger, addr string) HttpServer
func (HttpServer) RegisterHandlers ¶
func (h HttpServer) RegisterHandlers(handlers ...Handler)
func (HttpServer) Start ¶
func (h HttpServer) Start() error
func (HttpServer) Stop ¶
func (h HttpServer) Stop() error
type ParseError ¶
type ParseError struct {
Message string
}
func NewParseError ¶
func NewParseError(format string, a ...interface{}) ParseError
func (ParseError) Error ¶
func (e ParseError) Error() string
Click to show internal directories.
Click to hide internal directories.