registry

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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

EntityCore represents the minimal set of methods required for an entity

type IDSetter

type IDSetter interface {
	SetID(id string) error
}

IDSetter defines the interface for setting an entity's ID

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

type MetadataReader interface {
	Metadata() map[string]string
}

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

type NameSetter interface {
	SetName(name string) error
}

NameSetter defines the interface for setting an entity's name

type Nameable

type Nameable interface {
	Named
	NameSetter
}

Nameable combines name-related interfaces

type Named

type Named interface {
	Name() string
}

Named defines the interface for getting an entity's name

type Timestamped

type Timestamped interface {
	CreatedAt() time.Time
	UpdatedAt() time.Time
}

Timestamped defines the interface for timestamp-related operations

Jump to

Keyboard shortcuts

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