Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActivateEntities ¶
func ActivateEntities(collection Collection, conf *config.Configuration, log *zerolog.Logger) error
ActivateEntities activates the given entities.
Types ¶
type Collection ¶
type Collection interface {
// Entities returns a vector of entities within the collection.
Entities() []Entity
}
Collection is an interface for entity collections.
type Entity ¶
type Entity interface {
// GetID returns the ID of the entity.
GetID() string
// GetName returns the display name of the entity.
GetName() string
// Activate activates the entity.
Activate(conf *config.Configuration, log *zerolog.Logger) error
}
Entity is the base interface for all Mentix entities.
type Registry ¶
Registry represents a simple id->entity map.
func (*Registry) FindEntities ¶
FindEntities returns all entities matching the provided IDs. If an entity with a certain ID doesn't exist and mustExist is true, an error is returned.
Click to show internal directories.
Click to hide internal directories.