Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
func NewTcpServerHandler ¶
func NewTcpServerHandler(callback JsonRPCHandler) Handler
type JsonRPCHandler ¶
type JsonRPCHandler func(route *formatter.JsonRPCRoute, packet *roc.Packet, server *TcpServer) (any, exception.ExceptionInterface)
type TcpServer ¶
type TcpServer struct {
Address string
Handler Handler
Packer roc.PackerInterface
Serializer serializer.SerializerInterface
}
func NewTcpServer ¶
Click to show internal directories.
Click to hide internal directories.