Documentation
¶
Index ¶
Constants ¶
View Source
const (
PortRandom = -1
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type BreadcrumbProvider ¶
type BreadcrumbProvider interface {
CurrentBreadcrumb() *snapcache.Breadcrumb
}
type Config ¶
type Config struct {
Port int
MaxMessageSize int
MaxFallBehind time.Duration
MinBatchingAgeThreshold time.Duration
PingInterval time.Duration
PongTimeout time.Duration
DropInterval time.Duration
MaxConns int
HealthAggregator *health.HealthAggregator
KeyFile string
CertFile string
CAFile string
ClientCN string
ClientURISAN string
}
func (*Config) ApplyDefaults ¶
func (c *Config) ApplyDefaults()
func (*Config) ListenPort ¶
type Server ¶
func New ¶
func New(caches map[syncproto.SyncerType]BreadcrumbProvider, config Config) *Server
func (*Server) SetMaxConns ¶
Click to show internal directories.
Click to hide internal directories.