Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) BatchCallJsonRpc(b []api.BatchElem) error
- func (c *Client) CallJsonRpc(result interface{}, method string, args interface{}) error
- func (c *Client) Close() error
- func (c *Client) GetType() api.ClientType
- func (c *Client) RawCallHttp(method string, path string, body interface{}) (*api.HttpResponse, error)
- type Context
- type RawContext
- type Server
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoResult = errors.New("no result in JSON-RPC response")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
api.ClientAdapter
// contains filtered or unexported fields
}
func (*Client) CallJsonRpc ¶
func (*Client) GetType ¶
func (c *Client) GetType() api.ClientType
func (*Client) RawCallHttp ¶
type Context ¶
type Context struct {
ctx.ContextAdapter
// contains filtered or unexported fields
}
type RawContext ¶
type RawContext struct {
Context
}
func (*RawContext) Param ¶
func (r *RawContext) Param(key string) string
func (*RawContext) Query ¶
func (r *RawContext) Query(key string) string
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(option api.ServerOption) *Server
func (*Server) RegisterJsonRPC ¶
func (*Server) RegisterPath ¶
func (*Server) RegisterRawWs ¶
func (s *Server) RegisterRawWs(handle api.RawWsHandle) error
Click to show internal directories.
Click to hide internal directories.