Documentation ¶
Overview ¶
Package relay contains the basic implementation of the Relay application. Currently, this is simply a thin wrapper around the core code. In the future, it may contain additional logic that is not included in the Enterprise application (for instance, an endpoint handler that is replaced by a different handler in Enterprise).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientFactoryFunc ¶
ClientFactoryFunc is a function that can be used with NewRelay to specify custom behavior when Relay needs to create a Go SDK client instance.
type Relay ¶
Relay relays endpoints to and from the LaunchDarkly service
func NewRelay ¶
func NewRelay(c config.Config, loggers ldlog.Loggers, clientFactory ClientFactoryFunc) (*Relay, error)
NewRelay creates a new Relay given a configuration and a method to create a client.
If any metrics exporters are enabled in c.MetricsConfig, it also registers those in OpenCensus.
The clientFactory parameter can be nil and is only needed if you want to customize how Relay creates the Go SDK client instance.