Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Named ¶
type Named interface {
Name() string
}
Named is a constraint for providers that can identify themselves by name.
type Registry ¶
type Registry[T Named] struct { // contains filtered or unexported fields }
Registry is a generic store for named providers. It is not safe for concurrent use; callers that need concurrency should add their own synchronisation.
Click to show internal directories.
Click to hide internal directories.