api

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("api",
	fx.Provide(
		fx.Private,
		api.New,
	),
	fx.Provide(
		rest.NewRouter,
	),
	fx.Provide(
		NewAPI,
	),
)

Functions

This section is empty.

Types

type API

type API struct{}

func NewAPI

func NewAPI(
	lc fx.Lifecycle,
	shutdowner fx.Shutdowner,
	router *gin.Engine,
	cfg config.Config,
	logger *zerolog.Logger,
) (*API, error)

Jump to

Keyboard shortcuts

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