Documentation
¶
Index ¶
- type AgentError
- type Conn
- func (c *Conn) Abandoned() int
- func (c *Conn) Call(op string, params map[string]any, timeout time.Duration) (*Msg, error)
- func (c *Conn) CallContext(ctx context.Context, op string, params map[string]any, timeout time.Duration) (*Msg, error)
- func (c *Conn) CallUnqueued(ctx context.Context, op string, params map[string]any, timeout time.Duration) (*Msg, error)
- func (c *Conn) Close() error
- func (c *Conn) Done() <-chan struct{}
- func (c *Conn) Err() error
- func (c *Conn) Hello() *Msg
- func (c *Conn) HelloVersion() string
- func (c *Conn) Seq() int64
- func (c *Conn) SettledSeq() int64
- func (c *Conn) Subscribe() chan *Msg
- func (c *Conn) Unsubscribe(ch chan *Msg)
- type Msg
- type ReplyTimeout
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentError ¶
func (*AgentError) Error ¶
func (e *AgentError) Error() string
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) CallContext ¶ added in v0.5.3
func (*Conn) CallUnqueued ¶ added in v0.5.3
func (*Conn) HelloVersion ¶
func (*Conn) SettledSeq ¶
func (*Conn) Unsubscribe ¶
type Msg ¶
type Msg struct {
ID int64 `json:"id,omitempty"`
OK bool `json:"ok,omitempty"`
Error string `json:"error,omitempty"`
Transient bool `json:"transient,omitempty"`
Ev string `json:"ev,omitempty"`
Seq int64 `json:"seq,omitempty"`
Bin int `json:"bin,omitempty"`
Raw json.RawMessage `json:"-"`
Data []byte `json:"-"`
}
type ReplyTimeout ¶ added in v0.5.0
func (*ReplyTimeout) Error ¶ added in v0.5.0
func (e *ReplyTimeout) Error() string
Click to show internal directories.
Click to hide internal directories.