client

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 18 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 {
	Connection client.Connection
	// contains filtered or unexported fields
}

func New

func New(serviceID ucan.Principal, options ...Option) (*Client, error)

func (*Client) AdminProviderDeregister

func (c *Client) AdminProviderDeregister(ctx context.Context, signer ucan.Signer, providerID did.DID, options ...delegation.Option) (provider.DeregisterOk, error)

func (*Client) AdminProviderList

func (c *Client) AdminProviderList(ctx context.Context, signer ucan.Signer, options ...delegation.Option) (provider.ListOk, error)

func (*Client) AdminProviderRegister

func (c *Client) AdminProviderRegister(ctx context.Context, signer ucan.Signer, endpoint string, proof delegation.Delegation, options ...delegation.Option) (provider.RegisterOk, error)

func (*Client) AdminProviderWeightSet

func (c *Client) AdminProviderWeightSet(ctx context.Context, signer ucan.Signer, providerID did.DID, weight int, replicationWeight int, options ...delegation.Option) (provider.WeightSetOk, error)

type Option

type Option func(*Client) error

func WithConnection

func WithConnection(conn client.Connection) Option

WithConnection configures the client connection to use for invocations.

func WithHTTPClient

func WithHTTPClient(httpClient *http.Client) Option

WithHTTPClient configures the HTTP client to use when sending invocation requests. Unused when WithConnection option is passed.

func WithServiceURL

func WithServiceURL(serviceURL string) Option

WithServiceURL configures the URL to use when sending invocations. Unused when WithConnection option is passed.

Jump to

Keyboard shortcuts

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