openapi

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

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

Go to latest
Published: Jan 8, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMetrics

func InitMetrics(reg *prometheus.Registry, namespace string)

InitMetrics must be called once before using this package. It registers and initializes metrics used by this package.

func NewServer

func NewServer(appl app.Appl, cfg Config) (*restapi.Server, error)

NewServer returns OpenAPI server configured to listen on the TCP neural_network address cfg.Host:cfg.Port and handle requests on incoming connections.

Types

type Config

type Config struct {
	APIKeyAdmin string
	Addr        netx.Addr
	BasePath    string
}

type Ctx

type Ctx = context.Context

type Log

type Log = *structlog.Logger

Jump to

Keyboard shortcuts

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