Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config configures a registry.
func ParseConfig ¶
ParseConfig translates Config file values into a Config struct for consumers.
type Node ¶
type Node interface { // Address where the given node is running. Address() string // metadata is used in order to differentiate services implementations. For instance an AuthProvider Service could // have multiple implementations, basic, bearer ..., metadata would be used to select the Service type depending on // its implementation. Metadata() map[string]string // ID returns the node ID. ID() string }
Node defines nodes on a service.
type Registry ¶
type Registry interface { // Add registers a Service on the memoryRegistry. Repeated names is allowed, services are distinguished by their metadata. Add(Service) error // GetService retrieves a Service and all of its nodes by Service name. It returns []*Service because we can have // multiple versions of the same Service running alongside each others. GetService(string) (Service, error) }
Registry provides with means for dynamically registering services.
Click to show internal directories.
Click to hide internal directories.