Versions in this module Expand all Collapse all v0 v0.1.0 Sep 19, 2026 Changes in this version + var ErrAuthentication = &Error + var ErrClosed = &Error + var ErrConnection = &Error + var ErrIndeterminateWrite = &Error + var ErrInvalidInput = &Error + var ErrProtocol = &Error + var ErrServer = &Error + var ErrTimeout = &Error + var ErrVersionMismatch = &Error + type Client struct + func Dial(ctx context.Context, peers []string, options Options) (*Client, error) + func (c *Client) Close() error + func (c *Client) Get(ctx context.Context, id ID) (*Payload, error) + func (c *Client) GetJSON(ctx context.Context, id ID, dst any) (bool, error) + func (c *Client) GoString() string + func (c *Client) Health(ctx context.Context) (string, error) + func (c *Client) Put(ctx context.Context, ring string, data []byte) (ID, error) + func (c *Client) PutCodec(ctx context.Context, ring string, data []byte, codec Codec) (ID, error) + func (c *Client) PutJSON(ctx context.Context, ring string, value any) (ID, error) + func (c *Client) Query(ctx context.Context, id ID, selection string) (*Payload, error) + func (c *Client) QueryJSON(ctx context.Context, id ID, selection string, dst any) (bool, error) + func (c *Client) String() string + type Codec string + const BIF + const JSON + const NIF + const Raw + func (c Codec) Valid() bool + type Credentials struct + AuthToken string + Password string + SecretKey string + Username string + func (Credentials) MarshalJSON() ([]byte, error) + func (Credentials) String() string + func (c Credentials) GoString() string + type Error struct + func (e *Error) Error() string + func (e *Error) Is(target error) bool + func (e *Error) Unwrap() error + type ID struct + Epoch uint32 + Head float64 + Parent uint64 + Period float64 + Seq uint32 + TWrite float64 + func ParseID(s string) (ID, error) + func (id *ID) UnmarshalText(b []byte) error + func (id ID) MarshalText() ([]byte, error) + func (id ID) String() string + type Options struct + ConnectTimeout time.Duration + Credentials Credentials + DisableReadRetry bool + Galaxy string + MaxFrameBytes int + MaxRedirects int + ReadTimeout time.Duration + TLS *TLSOptions + WriteTimeout time.Duration + func (Options) MarshalJSON() ([]byte, error) + func (Options) String() string + func (o Options) GoString() string + type Payload struct + Codec Codec + Data []byte + type TLSOptions struct + CAFile string + InsecureSkipVerify bool + ServerName string