https

package
v0.2.10-3 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "service"
)

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() service.Service

func RegParserType

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

Types

type Cfg

type Cfg struct {
	Http       *fiber_builder.Cfg   `yaml:"http"`
	Ws         *fiber_builder.WsCfg `yaml:"ws"`
	PrintRoute bool                 `yaml:"print-route"`
	BasePrefix string               `yaml:"base-prefix"`
}

Jump to

Keyboard shortcuts

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