api

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SwaggerAssets embed.FS
View Source
var TypedocAssets embed.FS

Functions

This section is empty.

Types

type Api

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

Api ...

func NewApi

func NewApi(controllers *controllers.Controllers,
	echoFilter *rbacEcho.EchoAccessFilter,
	cfg Config,
	eventBus bus.Bus,
	adaptors *adaptors.Adaptors) (api *Api)

NewApi ...

func (*Api) Echo

func (a *Api) Echo() *echo.Echo

func (*Api) Shutdown

func (a *Api) Shutdown(ctx context.Context) (err error)

Shutdown ...

func (*Api) Start

func (a *Api) Start() (err error)

Start ...

type Config

type Config struct {
	HttpPort  int
	HttpsPort int
	Swagger   bool
	Debug     bool
	Pprof     bool
	Gzip      bool
}

Config ...

Directories

Path Synopsis
Package Swagger
Package Swagger

Jump to

Keyboard shortcuts

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