transport

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterServerTransportFunc

func RegisterServerTransportFunc(network string, fn serverTransportFunc)

Types

type Operator

type Operator interface {
	OnRequest(conn *tcpConnection)
}

type ServerTransport

type ServerTransport interface {
	ListenAndServe() error
	Close()
}

func NewServerTransport

func NewServerTransport(address, network, protocol string, opts ...ServerTransportOption) ServerTransport

type ServerTransportOption

type ServerTransportOption func(*ServerTransportOptions)

func WithCoreSize

func WithCoreSize(coreSize int) ServerTransportOption

type ServerTransportOptions

type ServerTransportOptions struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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