api

package
v0.0.0-...-5e10106 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InfosHandler

func InfosHandler(ctx context.Context) http.Handler

InfosHandler will handle the infos route swagger:route GET /infos Miscellaneous infos

Return informations on the server

Produces:

  • application/json

Schemes: http, https

Responses:

default: GenericError
200: Infos

Types

type API

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

func New

func New(ctx context.Context, c Config) (*API, error)

func (*API) Run

func (s *API) Run() error

type Config

type Config struct {
	Host string `mapstructure:"host"`
	Port int    `mapstructure:"port"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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