Documentation
¶
Index ¶
- type ActivationController
- type ActivationSetter
- type ActiveStatusChecker
- type Entity
- type EntityCore
- type IDSetter
- type Identifiable
- type Identifier
- type MetadataClearer
- type MetadataController
- type MetadataDeleter
- type MetadataReader
- type MetadataWriter
- type NameSetter
- type Nameable
- type Named
- type Timestamped
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivationController ¶
type ActivationController interface {
ActiveStatusChecker
ActivationSetter
}
ActivationController combines activation-related interfaces
type ActivationSetter ¶
type ActivationSetter interface {
SetActive(active bool)
}
ActivationSetter defines the interface for setting an entity's active status
type ActiveStatusChecker ¶
type ActiveStatusChecker interface {
IsActive() bool
}
ActiveStatusChecker defines the interface for checking if an entity is active
type Entity ¶
type Entity = EntityCore
Entity is the main interface that all registry entities must implement It's a composition of smaller, focused interfaces Deprecated: Use EntityCore for new code
type EntityCore ¶
type EntityCore interface {
Identifiable
Nameable
ActivationController
MetadataController
Timestamped
}
EntityCore represents the minimal set of methods required for an entity
type Identifiable ¶
type Identifiable interface {
Identifier
IDSetter
}
Identifiable combines identifier interfaces
type Identifier ¶
type Identifier interface {
ID() string
}
Identifier defines the interface for getting an entity's ID
type MetadataClearer ¶
type MetadataClearer interface {
ClearMetadata()
}
MetadataClearer defines the interface for clearing all metadata
type MetadataController ¶
type MetadataController interface {
MetadataReader
MetadataWriter
MetadataDeleter
MetadataClearer
}
MetadataController combines metadata-related interfaces
type MetadataDeleter ¶
type MetadataDeleter interface {
DeleteMetadata(key string)
}
MetadataDeleter defines the interface for deleting metadata
type MetadataReader ¶
MetadataReader defines the interface for reading metadata
type MetadataWriter ¶
type MetadataWriter interface {
SetMetadata(key, value string)
}
MetadataWriter defines the interface for writing metadata
type NameSetter ¶
NameSetter defines the interface for setting an entity's name
type Nameable ¶
type Nameable interface {
Named
NameSetter
}
Nameable combines name-related interfaces