Documentation ¶
Index ¶
- func NewHop(opts ...Option) hop.IHop
- type Option
- func BypassOption(bp bypass.IBypass) Option
- func FileLoaderOption(fileLoader loader.Loader) Option
- func HTTPLoaderOption(httpLoader loader.Loader) Option
- func LoggerOption(logger logger.ILogger) 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.ISelector[*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.