Documentation ¶
Index ¶
- func NewHop(opts ...Option) hop.Hop
- type Option
- func BypassOption(bp bypass.Bypass) Option
- func FileLoaderOption(fileLoader loader.Loader) Option
- func HTTPLoaderOption(httpLoader loader.Loader) Option
- func LoggerOption(logger logger.Logger) Option
- func NameOption(name string) Option
- func NodeOption(nodes ...*chain.Node) Option
- func RedisLoaderOption(redisLoader loader.Loader) Option
- func ReloadPeriodOption(period time.Duration) Option
- func SelectorOption(s selector.Selector[*chain.Node]) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*options)
func BypassOption ¶
func FileLoaderOption ¶
func HTTPLoaderOption ¶
func LoggerOption ¶
func NameOption ¶
func NodeOption ¶
func RedisLoaderOption ¶
func ReloadPeriodOption ¶
Click to show internal directories.
Click to hide internal directories.