trans

package
v0.0.0-...-3d82958 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoundHandler

type BoundHandler interface {
	OnRead(ch *channel.Channel, reader io.Reader) (err error)
	OnWrite(ch *channel.Channel, writer io.Writer, msg interface{}) error
}

type Option

type Option func(ops *options)

func AddInboundMiddleware

func AddInboundMiddleware(inbound ...less.Middleware) Option

func AddOnChannel

func AddOnChannel(onChannel ...less.OnChannel) Option

func AddOnChannelClosed

func AddOnChannelClosed(onChannelClosed ...less.OnChannelClosed) Option

func AddOutboundMiddleware

func AddOutboundMiddleware(outbound ...less.Middleware) Option

func Keepalive

func Keepalive(kp keepalive.ServerParameters) Option

func MaxChannelSize

func MaxChannelSize(size uint32) Option

func MaxReceiveMessageSize

func MaxReceiveMessageSize(size uint32) Option

func MaxSendMessageSize

func MaxSendMessageSize(size uint32) Option

func WithPacketCodec

func WithPacketCodec(codec codec.PacketCodec) Option

func WithPayloadCodec

func WithPayloadCodec(codec codec.PayloadCodec) Option

func WithRouter

func WithRouter(router router.Router) Option

type TransHandler

type TransHandler interface {
	transport.EventDriver
	BoundHandler
	transport.GracefulCloser
}

func NewTransHandler

func NewTransHandler(ops ...Option) TransHandler

Jump to

Keyboard shortcuts

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