remoteapi

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Adapt added in v0.3.0

func Adapt(projection pinaxclient.Projection, callErr error) (domain.Projection, error)

Adapt converts the public wire projection and typed client error into the legacy domain projection/error contract used by existing CLI renderers.

Types

type Client

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

Client is a compatibility facade over pkg/pinaxclient. It intentionally keeps the old constructor and domain.Projection surface while delegating all transport, redirect, size, timeout and credential policy to the public SDK.

func NewClient

func NewClient(config Config) *Client

func (*Client) Call

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

func (*Client) CallMutation added in v0.3.0

func (c *Client) CallMutation(ctx context.Context, request RPCRequest, identity MutationIdentity) (domain.Projection, error)

CallMutation retains the compatibility facade while exposing the public SDK's no-blind-retry operation recovery behavior to legacy callers.

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
	TokenFile  string
	HTTPClient *http.Client
}

Config is the legacy internal facade configuration. New callers should use pinaxclient.Config directly; these fields remain additive and source compatible while existing Pinax integrations migrate.

type MutationIdentity added in v0.3.0

type MutationIdentity = pinaxclient.MutationIdentity

type RPCRequest

type RPCRequest = pinaxclient.RPCRequest

Jump to

Keyboard shortcuts

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