appkeeper

package
v0.0.0-...-bc78c8b Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppKeeper

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

AppKeeper manages algorithm applications state by starting and stopping them

func NewAppKeeper

func NewAppKeeper(db *mongo.Database, krakenAPI *krakenapi.KrakenAPI, applicationRepo domain.ApplicationRepository) *AppKeeper

NewAppKeeper returns an instance of AppKeeper

func (*AppKeeper) Initialize

func (ak *AppKeeper) Initialize()

Initialize starts events listener that helps AppKeeper to keep applications state consistent with database

func (*AppKeeper) SetAppEnv

func (ak *AppKeeper) SetAppEnv(appEnv string)

SetAppEnv sets the application environment variable that decides whether the broker API should be mocked

func (*AppKeeper) StartApplication

func (ak *AppKeeper) StartApplication(metadata *domain.Application) error

StartApplication starts application with metadata passed by argument

func (*AppKeeper) StartApplications

func (ak *AppKeeper) StartApplications(applications *[]domain.Application) error

StartApplications starts applications with metadata passed by argument

Jump to

Keyboard shortcuts

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