serviceoption

package
v1.8.0-rc2 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: Apache-2.0 Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = Options{
	SendBufferSize: 10,
}

Default serves only as reference point for default values.

Functions

This section is empty.

Types

type Option

type Option func(o *Options)

Option customizes then configuration of the peer service.

func WithSendBufferSize

func WithSendBufferSize(size int) Option

WithSendBufferSize sets the size of the send buffer. When the send buffer is full, for example due to errors in the transport, the server disconnects the corresponding client. The send buffer is per connected client.

type Options

type Options struct {
	SendBufferSize int
}

Options stores all the configuration values for the peer service.

Jump to

Keyboard shortcuts

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