Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 1.62 KB

File metadata and controls

37 lines (31 loc) · 1.62 KB

API Reference

简体中文 | Docs Index

This inventory is generated from go doc -short for the packages in this repository. It is a quick public-surface map; source files and tests remain the authority for exact semantics.

Packages

gnalloy.org/protocol

Package name: protocol

var ErrInvalidConfig = errors.New("gnalloy/protocol: invalid config") ...
func NewServerHandler(adapter ServerAdapter, handler Handler) channel.Handler
type Adapter interface{ ... }
type ChannelExchanger struct{ ... }
    func Datagram(group *transport.EventLoopGroup, transport bootstrap.ClientTransport) ChannelExchanger
    func Frame(group *transport.EventLoopGroup, transport bootstrap.ClientTransport) ChannelExchanger
    func Packet(group *transport.EventLoopGroup, transport bootstrap.ClientTransport) ChannelExchanger
    func Stream(group *transport.EventLoopGroup, transport bootstrap.ClientTransport) ChannelExchanger
type DatagramAdapter struct{}
type FrameAdapter struct{}
type Handler interface{ ... }
type HandlerFunc func(req Request, responder Responder) error
type PacketAdapter struct{}
type Request struct{ ... }
type RequestMeta struct{ ... }
type Responder interface{ ... }
type Server struct{ ... }
    func DatagramServer(bossGroup, workerGroup *transport.EventLoopGroup, ...) Server
    func FrameServer(bossGroup, workerGroup *transport.EventLoopGroup, ...) Server
    func PacketServer(bossGroup, workerGroup *transport.EventLoopGroup, ...) Server
    func StreamServer(bossGroup, workerGroup *transport.EventLoopGroup, ...) Server
type ServerAdapter interface{ ... }
type StreamAdapter struct{}