https

package
v0.2.10-46 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMaxBodyBytes = 256 * 1024

DefaultMaxBodyBytes is the maximum allowed size of a request body in bytes.

Variables

This section is empty.

Functions

func Handler

func Handler[Req any, Rsp any](hh func(ctx context.Context, req *Req) (rsp *Rsp, err error)) func(ctx *fiber.Ctx) error

func New

func New() lava.Service

func RegParserType

func RegParserType(customType interface{}, converter func(string) reflect.Value)

Types

type Config

type Config struct {
	Http       *fiber_builder2.Config `yaml:"http"`
	Ws         *fiber_builder2.WsCfg  `yaml:"ws"`
	PrintRoute bool                   `yaml:"print-route"`
	PathPrefix string                 `yaml:"path-prefix"`
}

func DefaultCfg

func DefaultCfg() Config

Jump to

Keyboard shortcuts

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