rest

package
v0.0.0-...-6d36bb5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(gctx global.Context) error

Types

type HttpServer

type HttpServer struct {
	// contains filtered or unexported fields
}

func (*HttpServer) SetupHandlers

func (s *HttpServer) SetupHandlers()

func (*HttpServer) V2

func (s *HttpServer) V2(gCtx global.Context)

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
v2
docs
Code generated by swaggo/swag.
Code generated by swaggo/swag.
v3
docs
Code generated by swaggo/swag.
Code generated by swaggo/swag.

Jump to

Keyboard shortcuts

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