Documentation ¶ Index ¶ type Option func WithPort(port int) Option func WithReadHeaderTimeout(timeout time.Duration) Option type Server func NewServer(opts ...Option) *Server func (s *Server) Shutdown(ctx context.Context) error func (s *Server) Start(cb func(router *mux.Router) error) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Option ¶ type Option func(*Server) func WithPort ¶ func WithPort(port int) Option func WithReadHeaderTimeout ¶ func WithReadHeaderTimeout(timeout time.Duration) Option type Server ¶ type Server struct { // contains filtered or unexported fields } func NewServer ¶ func NewServer(opts ...Option) *Server func (*Server) Shutdown ¶ func (s *Server) Shutdown(ctx context.Context) error func (*Server) Start ¶ func (s *Server) Start(cb func(router *mux.Router) error) error Source Files ¶ View all Source files options.goserver.gotelemetry.go Directories ¶ Show internal Expand all Path Synopsis middlewares internal util Click to show internal directories. Click to hide internal directories.