http

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module(
	"http",
	fx.Provide(
		fx.Annotate(
			New,
			fx.ParamTags(`group:"api-routes"`),
		),
	),
)

Functions

func AsApiHandler

func AsApiHandler(f any) any

func New

func New(apiHandlers []ApiHanlder, lc fx.Lifecycle) (*fiber.App, error)

Types

type ApiHanlder

type ApiHanlder interface {
	Register(app fiber.Router)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳