Documentation ¶
Index ¶
- Variables
- type CliRpcServer
- func (this *CliRpcServer) Close()
- func (this *CliRpcServer) GetHandler(method string) func(req *common.CliRpcRequest, resp *common.CliRpcResponse)
- func (this *CliRpcServer) Handler(w http.ResponseWriter, r *http.Request)
- func (this *CliRpcServer) RegHandler(method string, ...)
- func (this *CliRpcServer) Start(port uint)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefCliRpcSvr = NewCliRpcServer()
Functions ¶
This section is empty.
Types ¶
type CliRpcServer ¶
type CliRpcServer struct {
// contains filtered or unexported fields
}
func NewCliRpcServer ¶
func NewCliRpcServer() *CliRpcServer
func (*CliRpcServer) Close ¶
func (this *CliRpcServer) Close()
func (*CliRpcServer) GetHandler ¶
func (this *CliRpcServer) GetHandler(method string) func(req *common.CliRpcRequest, resp *common.CliRpcResponse)
func (*CliRpcServer) Handler ¶
func (this *CliRpcServer) Handler(w http.ResponseWriter, r *http.Request)
func (*CliRpcServer) RegHandler ¶
func (this *CliRpcServer) RegHandler(method string, handler func(req *common.CliRpcRequest, resp *common.CliRpcResponse))
func (*CliRpcServer) Start ¶
func (this *CliRpcServer) Start(port uint)
Click to show internal directories.
Click to hide internal directories.