Documentation ¶
Overview ¶
Package discovery provides service discovery basics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consul ¶ added in v0.0.2
type Consul struct { Client *api.Client Service string Datacenter string // Consul datacenter (dc param) Filter string // Consul filter expression (filter param) }
Consul service discovery backend
func NewConsul ¶ added in v0.0.2
NewConsul creates a new service discovery provider for Solana cluster
func NewConsulFromConfig ¶ added in v0.0.2
func NewConsulFromConfig(config *types.ConsulSDConfig) (*Consul, error)
NewConsulFromConfig invokes NewConsul using typed config.
type Discoverer ¶
Discoverer returns a list of host:port combinations for all targets.
func NewFromConfig ¶ added in v0.0.2
func NewFromConfig(t *types.TargetGroup) (Discoverer, error)
NewFromConfig attempts to create a discoverer from config.
Click to show internal directories.
Click to hide internal directories.