Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpServer ¶
type HttpServer struct {
// contains filtered or unexported fields
}
func New ¶
func New() HttpServer
func (*HttpServer) SetupHandlers ¶
func (s *HttpServer) SetupHandlers()
func (*HttpServer) Start ¶
func (s *HttpServer) Start(gCtx global.Context) (<-chan struct{}, error)
Start: set up the http server and begin listening on the configured port
func (*HttpServer) V3 ¶
func (s *HttpServer) V3(gCtx global.Context)
type Router ¶
type Router interface { ANY(path string, handler fasthttp.RequestHandler) CONNECT(path string, handler fasthttp.RequestHandler) DELETE(path string, handler fasthttp.RequestHandler) GET(path string, handler fasthttp.RequestHandler) Group(path string) *router.Group HEAD(path string, handler fasthttp.RequestHandler) Handle(method, path string, handler fasthttp.RequestHandler) OPTIONS(path string, handler fasthttp.RequestHandler) PATCH(path string, handler fasthttp.RequestHandler) POST(path string, handler fasthttp.RequestHandler) PUT(path string, handler fasthttp.RequestHandler) ServeFiles(path string, rootPath string) ServeFilesCustom(path string, fs *fasthttp.FS) TRACE(path string, handler fasthttp.RequestHandler) }
Click to show internal directories.
Click to hide internal directories.