wire

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentError

type AgentError struct {
	Op        string
	Msg       string
	Transient bool
}

func (*AgentError) Error

func (e *AgentError) Error() string

type Conn

type Conn struct {
	// contains filtered or unexported fields
}

func Dial

func Dial(addr string, timeout time.Duration) (*Conn, error)

func (*Conn) Abandoned added in v0.5.3

func (c *Conn) Abandoned() int

func (*Conn) Call

func (c *Conn) Call(op string, params map[string]any, timeout time.Duration) (*Msg, error)

func (*Conn) CallContext added in v0.5.3

func (c *Conn) CallContext(ctx context.Context, op string, params map[string]any, timeout time.Duration) (*Msg, error)

func (*Conn) CallUnqueued added in v0.5.3

func (c *Conn) CallUnqueued(ctx context.Context, op string, params map[string]any, timeout time.Duration) (*Msg, error)

func (*Conn) Close

func (c *Conn) Close() error

func (*Conn) Done

func (c *Conn) Done() <-chan struct{}

func (*Conn) Err

func (c *Conn) Err() error

func (*Conn) Hello

func (c *Conn) Hello() *Msg

func (*Conn) HelloVersion

func (c *Conn) HelloVersion() string

func (*Conn) Seq

func (c *Conn) Seq() int64

func (*Conn) SettledSeq

func (c *Conn) SettledSeq() int64

func (*Conn) Subscribe

func (c *Conn) Subscribe() chan *Msg

func (*Conn) Unsubscribe

func (c *Conn) Unsubscribe(ch chan *Msg)

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:"-"`
}

func (*Msg) Decode

func (m *Msg) Decode(v any) error

type ReplyTimeout added in v0.5.0

type ReplyTimeout struct {
	Op     string
	After  time.Duration
	Queued bool
}

func (*ReplyTimeout) Error added in v0.5.0

func (e *ReplyTimeout) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL