Documentation ¶
Overview ¶
Package client ...
Index ¶
- type Channel
- type Client
- func (p *Client) Close() bool
- func (p *Client) OnConnClose(_ *adapter.StreamConn)
- func (p *Client) OnConnError(streamConn *adapter.StreamConn, err *base.Error)
- func (p *Client) OnConnOpen(streamConn *adapter.StreamConn)
- func (p *Client) OnConnReadStream(streamConn *adapter.StreamConn, stream *rpc.Stream)
- func (p *Client) Send(timeout time.Duration, target string, args ...interface{}) (interface{}, *base.Error)
- func (p *Client) Subscribe(nodePath string, message string, fn func(value rpc.Any)) *Subscription
- type Config
- type SendItem
- type Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client ...
func NewClient ¶ added in v0.0.2
func NewClient( network string, addr string, tlsConfig *tls.Config, rBufSize int, wBufSize int, onError func(err *base.Error), ) *Client
NewClient ...
func (*Client) OnConnError ¶
func (p *Client) OnConnError(streamConn *adapter.StreamConn, err *base.Error)
OnConnError ...
func (*Client) OnConnOpen ¶
func (p *Client) OnConnOpen(streamConn *adapter.StreamConn)
OnConnOpen ...
func (*Client) OnConnReadStream ¶
func (p *Client) OnConnReadStream( streamConn *adapter.StreamConn, stream *rpc.Stream, )
OnConnReadStream ...
type Subscription ¶
type Subscription struct {
// contains filtered or unexported fields
}
Subscription ...
Click to show internal directories.
Click to hide internal directories.