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 ¶
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
Click to show internal directories.
Click to hide internal directories.