Documentation ¶
Index ¶
Constants ¶
View Source
const ( NatsServer string = "nats-server" // NatsServer specifies the Nats server Address NatsSubject string = "nats-subject" // NatsSubject specifies the NATs subject ActorSystemName = "actor_system_name" // ActorSystemName specifies the actor system name ApplicationName = "app_name" // ApplicationName specifies the application name. This often matches the actor system name Timeout = "timeout" // Timeout specifies the discovery timeout. The default value is 1 second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discovery ¶
type Discovery struct {
// contains filtered or unexported fields
}
Discovery represents the kubernetes discovery
func NewDiscovery ¶
NewDiscovery returns an instance of the kubernetes discovery provider
func (*Discovery) Deregister ¶
Deregister removes this node from a service discovery directory.
func (*Discovery) DiscoverPeers ¶
DiscoverPeers returns a list of known nodes.
func (*Discovery) Initialize ¶
Initialize initializes the plugin: registers some internal data structures, clients etc.
type Option ¶
type Option interface { // Apply sets the Option value of a config. Apply(disco *Discovery) }
Option is the interface that applies a configuration option.
type OptionFunc ¶
type OptionFunc func(disco *Discovery)
OptionFunc implements the Option interface.
func (OptionFunc) Apply ¶
func (f OptionFunc) Apply(disco *Discovery)
Apply applies the Cluster's option
Click to show internal directories.
Click to hide internal directories.