Documentation ¶
Overview ¶
Package jsonrpc2net provides net(tcp, udp) implement of jsonrpc2(https://godoc.org/github.com/tnmproject/go-jsonrpc2), the fast jsonrpc 2.0 message encoding and decoding
Visit repo https://godoc.org/github.com/tnmproject/go-jsonrpc2 and get example
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonRpcHandler ¶
type JsonRpcHandler interface {
Handle(*jsonrpc2.JsonRpcMessage) *jsonrpc2.JsonRpcMessage
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(config ServerConfig) (*Server, error)
func (*Server) RegisterJsonRpcHandleFunc ¶
func (*Server) RegisterJsonRpcHandler ¶
func (s *Server) RegisterJsonRpcHandler(method string, handler JsonRpcHandler)
type ServerConfig ¶
type SimpleLogger ¶
type SimpleLogger struct{}
func (*SimpleLogger) Debug ¶
func (logger *SimpleLogger) Debug(args ...interface{})
func (*SimpleLogger) Error ¶
func (logger *SimpleLogger) Error(args ...interface{})
Click to show internal directories.
Click to hide internal directories.