Documentation
¶
Index ¶
- func Dial(ctx context.Context, path string) (*websocket.Conn, error)
- func Proxy(ctx context.Context, down, up *websocket.Conn, ...)
- func SocketDir(dataDir string) string
- func UserAgentVersion(userAgent string) string
- type Client
- func (c *Client) Call(ctx context.Context, method string, params any) (json.RawMessage, error)
- func (c *Client) Close()
- func (c *Client) Connected() bool
- func (c *Client) Done() <-chan struct{}
- func (c *Client) Respond(ctx context.Context, id json.RawMessage, result any) error
- func (c *Client) ServerVersion() string
- type ClientInfo
- type Message
- type RPCError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UserAgentVersion ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ServerVersion ¶
type ClientInfo ¶
type Message ¶
type Message struct {
ID json.RawMessage `json:"id,omitempty"`
Method string `json:"method,omitempty"`
Params json.RawMessage `json:"params,omitempty"`
Result json.RawMessage `json:"result,omitempty"`
Error json.RawMessage `json:"error,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.