Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface { GetValid(ctx context.Context) ([]EntityService, error) // UpdateBulk bulk update UpdateBulk(ctx context.Context, writeModels []mongodriver.WriteModel) error }
Adapter is an interface that provides methods for database queries regarding services and their dependencies.
func NewAdapter ¶
type ChangeEntityMessage ¶
type ChangeEntityMessage struct { ID string Name string Component string // IsToggled is true if entity is disabled or enabled. IsToggled bool EntityType string // IsPatternChanged defines should service's context graph and state be recomputed. IsServicePatternChanged bool // Resources are used only when component entity is toggled to toggle dependent resources Resources []string }
type EntityService ¶
type EntityService struct { types.Entity `bson:",inline"` OutputTemplate string `bson:"output_template" json:"output_template"` savedpattern.EntityPatternFields `bson:",inline"` }
func (*EntityService) GetMongoQueries ¶
type EventPublisher ¶
type EventPublisher interface {
Publish(ctx context.Context, ch <-chan ChangeEntityMessage)
}
EventPublisher is used to send event to engines' event flow to notify about entity changes.
type IdleSinceService ¶
func NewService ¶
type ServicesIdleSinceMap ¶
type ServicesIdleSinceMap struct {
// contains filtered or unexported fields
}
func NewServicesIdleSinceMap ¶
func NewServicesIdleSinceMap() ServicesIdleSinceMap
Click to show internal directories.
Click to hide internal directories.