Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRegistryType ¶
AddRegistryType adds a new registry type
Types ¶
type Registry ¶
type Registry interface {
Config() RegistryConfig
}
func GetRegistryType ¶
GetRegistryType gets the added registry type
type RegistryConfig ¶
type RegistryConfig interface { // The configuration is defined as a protobuf message ProtoReflect() protoreflect.Message // This method is generated by protoc-gen-validate. We can override it to provide custom validation Validate() error }
RegistryConfig represents the configuration used by the registry
func ParseConfig ¶
func ParseConfig(reg Registry, data []byte) (RegistryConfig, error)
ParseConfig parses the given data and returns the configuration according to the registry
Click to show internal directories.
Click to hide internal directories.