Documentation
¶
Index ¶
- type MessageHandler
- func (h MessageHandler) HandleActive(ctx netty.ActiveContext)
- func (h MessageHandler) HandleException(ctx netty.ExceptionContext, ex netty.Exception)
- func (h MessageHandler) HandleInactive(ctx netty.InactiveContext, ex netty.Exception)
- func (h MessageHandler) HandleRead(ctx netty.InboundContext, message netty.Message)
- type Server
- type ServerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageHandler ¶
type MessageHandler struct {
// contains filtered or unexported fields
}
func (MessageHandler) HandleActive ¶
func (h MessageHandler) HandleActive(ctx netty.ActiveContext)
func (MessageHandler) HandleException ¶
func (h MessageHandler) HandleException(ctx netty.ExceptionContext, ex netty.Exception)
func (MessageHandler) HandleInactive ¶
func (h MessageHandler) HandleInactive(ctx netty.InactiveContext, ex netty.Exception)
func (MessageHandler) HandleRead ¶
func (h MessageHandler) HandleRead(ctx netty.InboundContext, message netty.Message)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is an TCP server wrapper.
func NewServer ¶
func NewServer(ctx *transport.Context, codec []codec.Codec, codec2 vulcanus.Codec, handler vulcanus.DataHandler, opts ...ServerOption) *Server
NewServer creates a TCP server by options.
type ServerOption ¶
type ServerOption func(*Server)
Click to show internal directories.
Click to hide internal directories.