api

package
v0.0.0-...-5230034 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: GPL-3.0 Imports: 36 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() *Api

func (*Api) Start

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

Start starts the Mux Service Listeners (API/Metrics)

type AuthController

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

AuthController is the Controller/Handler for ping routes

func NewAuthController

func NewAuthController(svc *service.Provider) *AuthController

NewAuthController creates a new OIDC controller

func (AuthController) Setup

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

Setup satisfies the EveController interface for setting up the

type Controller

type Controller interface {
	Setup(chi.Router)
}

type EveController

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

EveController for eve specific routes

func NewEveController

func NewEveController(svc *service.Provider) *EveController

NewEveController New creates a new eve controller (route handler)

func (EveController) Setup

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

Setup the routes

type PingController

type PingController struct {
}

PingController is the Controller/Handler for ping routes

func NewPingController

func NewPingController() *PingController

NewPingController creates a new ping controller

func (PingController) Setup

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

Setup satisfies the EveController interface for setting up the

type SlackController

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

SlackController for slack routes

func NewSlackController

func NewSlackController(svc *service.Provider, exe interfaces.CommandExecutor) *SlackController

NewSlackController creates a new slack controller (route handler)

func (SlackController) Setup

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

Setup the routes

type TokenResponse

type TokenResponse struct {
	AccessToken string
	Expiry      time.Time
	Claims      *json.RawMessage
}

Jump to

Keyboard shortcuts

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