api

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPI

func NewAPI(addr string) func(NewAPIParam) *API

func Run

func Run() func(logger *lib.Logger, api *API) error

Types

type API

type API struct {
	*http.Server
}

type NewAPIParam

type NewAPIParam struct {
	fx.In

	Lifecycle fx.Lifecycle
	Logger    *lib.Logger
	Router    *router.Router
	URL       *url.Controller
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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