server

package
v0.0.0-...-9d6c436 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

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)
}

Directories

Path Synopsis
v3

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL