Documentation ¶
Index ¶
- func NewGRPCPluginHostMapper(name string, addr string, opts ...plugin.Option) hosts.HostMapper
- func NewHTTPPluginHostMapper(name string, url string, opts ...plugin.Option) hosts.HostMapper
- func NewHostMapper(opts ...Option) hosts.HostMapper
- type Mapping
- type Option
- func FileLoaderOption(fileLoader loader.Loader) Option
- func HTTPLoaderOption(httpLoader loader.Loader) Option
- func LoggerOption(logger logger.Logger) Option
- func MappingsOption(mappings []Mapping) Option
- func PluginConnOption(c *grpc.ClientConn) Option
- func RedisLoaderOption(redisLoader loader.Loader) Option
- func ReloadPeriodOption(period time.Duration) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGRPCPluginHostMapper ¶
NewGRPCPluginHostMapper creates a HostMapper plugin based on gRPC.
func NewHTTPPluginHostMapper ¶
NewHTTPPluginHostMapper creates an HostMapper plugin based on HTTP.
func NewHostMapper ¶
func NewHostMapper(opts ...Option) hosts.HostMapper
Types ¶
type Option ¶
type Option func(opts *options)
func FileLoaderOption ¶
func HTTPLoaderOption ¶
func LoggerOption ¶
func MappingsOption ¶
func PluginConnOption ¶
func PluginConnOption(c *grpc.ClientConn) Option
func RedisLoaderOption ¶
func ReloadPeriodOption ¶
Click to show internal directories.
Click to hide internal directories.