longbridge

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2025 License: Apache-2.0, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultWriteQueueSize = 16
	DefaultReadBufferSize = 4096
	DefaultReadQueueSize  = 16
	DefaultMinGzipSize    = 1024
	DefaultDialTimeout    = time.Second * 5
	DefaultAuthTimeout    = time.Second * 10
)

Functions

This section is empty.

Types

type Option

type Option func(*Options)

Option

func WithAuthTimeout

func WithAuthTimeout(timeout time.Duration) Option

func WithMinGzipSize

func WithMinGzipSize(size int) Option

func WithReadBufferSize

func WithReadBufferSize(size int) Option

func WithReadQueueSize

func WithReadQueueSize(size int) Option

func WithTimeout

func WithTimeout(timeout time.Duration) Option

func WithWriteQueueSize

func WithWriteQueueSize(size int) Option

type Options

type Options struct {
	AuthTimeout    time.Duration
	Timeout        time.Duration
	WriteQueueSize int
	ReadQueueSize  int
	ReadBufferSize int
	MinGzipSize    int
}

func NewOptions

func NewOptions(opt ...Option) *Options

Jump to

Keyboard shortcuts

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