tns

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: BSD-3-Clause Imports: 29 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) 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) Storage

func (*Client) Website

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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