Documentation ¶
Overview ¶
Package server contains the server functions
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrCertFileMissing is returned when https is enabled but no cert file is provided ErrCertFileMissing = errors.New("no cert file found") // ErrKeyFileMissing is returned when https is enabled but no key file is provided ErrKeyFileMissing = errors.New("no key file found") )
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(c config.Config, l *zap.SugaredLogger) *Server
NewServer returns a new Server configuration
func (*Server) AddHandler ¶
func (s *Server) AddHandler(r handler)
AddHandler provides the ability to add additional HTTP handlers that process requests. The handler that is provided should have a Routes(*echo.Group) function, which allows the routes to be added to the server.
Click to show internal directories.
Click to hide internal directories.