remoteapi

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(config Config) *Client

func (*Client) Call

func (c *Client) Call(ctx context.Context, rpc RPCRequest) (domain.Projection, error)

func (*Client) Capabilities

func (c *Client) Capabilities(ctx context.Context) (domain.Projection, error)

func (*Client) Ping

func (c *Client) Ping(ctx context.Context) (domain.Projection, error)

type Config

type Config struct {
	BaseURL    string
	Token      string
	HTTPClient *http.Client
}

type RPCRequest

type RPCRequest struct {
	Method string         `json:"method"`
	Params map[string]any `json:"params,omitempty"`
}

Jump to

Keyboard shortcuts

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