tns

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: BSD-3-Clause Imports: 34 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CacheFetchRetryWait       = 1 * time.Second
	MaximumCacheFetchInterval = 1 * time.Second
)

Functions

func New

func New(ctx context.Context, node peer.Node) (tns.Client, error)

Types

type Client

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

func (*Client) Close

func (c *Client) Close()

func (*Client) Database

func (*Client) Domain

func (*Client) Fetch

func (c *Client) Fetch(path tns.Path) (tns.Object, error)

***** FETCH ****** Fetch a key, does not watch nor cache value

func (*Client) Function

func (*Client) Library

func (*Client) List

func (c *Client) List(depth int) ([]string, error)

***** LIST ******

func (*Client) Lookup

func (c *Client) Lookup(query tns.Query) (interface{}, error)

***** FETCH ****** Fetch a key, does not watch nor cache value

func (*Client) Messaging

func (c *Client) Messaging() tns.StructureIface[*structureSpec.Messaging]

func (*Client) Peers added in v1.1.5

func (c *Client) Peers(pids ...peerCore.ID) tns.Client

func (*Client) Push

func (c *Client) Push(path []string, data interface{}) error

func (*Client) Service

func (*Client) Simple

func (c *Client) Simple() tns.SimpleIface

func (*Client) SmartOp

func (*Client) Stats added in v1.1.5

func (c *Client) Stats() iface.Stats

func (*Client) Storage

func (*Client) Website

type Stats added in v1.1.5

type Stats Client

func (*Stats) Database added in v1.1.5

func (h *Stats) Database() (kvdbIface.Stats, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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