api

package
v0.0.0-...-7bb76c6 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Branch     = version.Branch
	SHA        = version.SHA
	ShortSHA   = version.ShortSHA
	Author     = version.Author
	BuildHost  = version.BuildHost
	Version    = version.Version
	Date       = version.Date
	Prerelease = version.Prerelease
)

Functions

This section is empty.

Types

type Api

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

func NewApi

func NewApi(controllers []Controller, c config.Config) *Api

func (*Api) Start

func (a *Api) Start(onShutdown ...func())

Start starts the Mux Service Listeners (API/Metrics)

type CallbackController

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

func NewCallbackController

func NewCallbackController(manager *callback.Manager) *CallbackController

func (CallbackController) Setup

func (c CallbackController) Setup(r chi.Router)

type Controller

type Controller interface {
	Setup(chi.Router)
}

func InitializeControllers

func InitializeControllers(cm *callback.Manager) ([]Controller, error)

type PingController

type PingController struct {
}

func NewPingController

func NewPingController() *PingController

func (PingController) Setup

func (c PingController) Setup(r chi.Router)

Jump to

Keyboard shortcuts

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