seed

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSeedGrpcPort         = ports.SeedGrpcListenPort
	DefaultConfigServerAddr     = "config-server"
	DefaultConfigServerGrpcPort = ports.ConfigServerGrpcListenPort
	DefaultLruSize              = 10000
)
View Source
const (
	Susceptible = iota
	Infected
	Removed
)

Variables

View Source
var Options options

Functions

func AddFlags

func AddFlags(flags *flag.FlagSet)

func NewSeed

func NewSeed(logger *zap.Logger, opts ...Option) gossip.Seed

Types

type Flags

type Flags struct {
	SeedGrpcPort         int
	ConfigServerAddress  string
	ConfigServerGrpcPort int
	LruSize              int
}

func (*Flags) InitFromViper

func (f *Flags) InitFromViper(v *viper.Viper) *Flags

type Option

type Option func(opts *options)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL