Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
func NewHTTPServer ¶
func (*HTTPServer) Init ¶
func (s *HTTPServer) Init() error
func (*HTTPServer) Run ¶
func (s *HTTPServer) Run(ctx context.Context) error
Run loads a new http server
func (*HTTPServer) ServeHTTP ¶
func (s *HTTPServer) ServeHTTP(w http.ResponseWriter, req *http.Request)
type Option ¶
type Option func(*Options)
Option is a functional option.
func WithContext ¶
WithContext overrides context instance.
Click to show internal directories.
Click to hide internal directories.