api

package
v1.0.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: LGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cors

func Cors(next http.Handler) http.Handler

Types

type API

type API struct {
	// contains filtered or unexported fields
}

API provides rest api.

func New

func New(cfg config.Config) *API

New API.

func (*API) Run

func (api *API) Run(listener net.Listener) error

Run API.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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