Documentation ¶
Index ¶
Constants ¶
View Source
const (
PortRandom = -1
)
Variables ¶
View Source
var ( ErrReadFailed = errors.New("Failed to read from client") ErrUnexpectedClientMsg = errors.New("Unexpected message from client") )
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 }
func (*Config) ApplyDefaults ¶
func (c *Config) ApplyDefaults()
func (*Config) ListenPort ¶
type Server ¶
func New ¶
func New(cache BreadcrumbProvider, config Config) *Server
func (*Server) SetMaxConns ¶
Click to show internal directories.
Click to hide internal directories.