Documentation ¶
Index ¶
- type BoundHandler
- type Option
- func AddInboundMiddleware(inbound ...less.Middleware) Option
- func AddOnChannel(onChannel ...less.OnChannel) Option
- func AddOnChannelClosed(onChannelClosed ...less.OnChannelClosed) Option
- func AddOutboundMiddleware(outbound ...less.Middleware) Option
- func Keepalive(kp keepalive.ServerParameters) Option
- func MaxChannelSize(size uint32) Option
- func MaxReceiveMessageSize(size uint32) Option
- func MaxSendMessageSize(size uint32) Option
- func WithPacketCodec(codec codec.PacketCodec) Option
- func WithPayloadCodec(codec codec.PayloadCodec) Option
- func WithRouter(router router.Router) Option
- type TransHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoundHandler ¶
type Option ¶
type Option func(ops *options)
func AddInboundMiddleware ¶
func AddInboundMiddleware(inbound ...less.Middleware) Option
func AddOnChannel ¶
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 MaxReceiveMessageSize ¶
func MaxSendMessageSize ¶
func WithPacketCodec ¶
func WithPacketCodec(codec codec.PacketCodec) Option
func WithPayloadCodec ¶
func WithPayloadCodec(codec codec.PayloadCodec) Option
func WithRouter ¶
type TransHandler ¶
type TransHandler interface { transport.EventDriver BoundHandler transport.GracefulCloser }
func NewTransHandler ¶
func NewTransHandler(ops ...Option) TransHandler
Click to show internal directories.
Click to hide internal directories.