client

package
v0.11.0-rc0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 13 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Modules = map[string]interface{}{
	"share":  &client.Share.Internal,
	"state":  &client.State.Internal,
	"header": &client.Header.Internal,
	"fraud":  &client.Fraud.Internal,
	"das":    &client.DAS.Internal,
	"p2p":    &client.P2P.Internal,
	"node":   &client.Node.Internal,
	"blob":   &client.Blob.Internal,
}

Functions

This section is empty.

Types

type Client

type Client struct {
	Fraud  fraud.API
	Header header.API
	State  state.API
	Share  share.API
	DAS    das.API
	P2P    p2p.API
	Node   node.API
	Blob   blob.API
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, addr string, token string) (*Client, error)

NewClient creates a new Client with one connection per namespace with the given token as the authorization token.

func NewPublicClient added in v0.6.2

func NewPublicClient(ctx context.Context, addr string) (*Client, error)

NewPublicClient creates a new Client with one connection per namespace.

func (*Client) Close

func (c *Client) Close()

Close closes the connections to all namespaces registered on the client.

Jump to

Keyboard shortcuts

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