inits

package
v0.0.0-...-f15f0a0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 License: GPL-3.0 Imports: 6 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Config  configs.GigamonoConfig
	Secrets secrets.Manager
	Filestore
	DB   database.DB
	Kind ServiceKind
}

App represents states common to every Gigamono service.

func NewApp

func NewApp(serviceKind ServiceKind) (App, error)

NewApp is a common initialiser for Gigamono services.

type Filestore

type Filestore struct {
	Project   filestore.Manager
	Extension filestore.Manager
	Image     filestore.Manager
}

Filestore holds the different filestore managers.

type ServiceKind

type ServiceKind string

ServiceKind represents the different types of Gigamono services.

const (
	API                                ServiceKind = "API"
	Auth                               ServiceKind = "Auth"
	AutomationEngineMainServer         ServiceKind = "WorkflowEngineMainServer"
	AutomationEngineAPIService         ServiceKind = "WorkflowEngineAPIService"
	AutomationEngineRunnableSupervisor ServiceKind = "WorkflowEngineRunnableSupervisor"
	BaseEngineMainServer               ServiceKind = "BaseEngineMainServer"
)

...

func (*ServiceKind) DatabaseKind

func (kind *ServiceKind) DatabaseKind() string

DatabaseKind gets the database kind supported by service.

Jump to

Keyboard shortcuts

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