patrick

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: BSD-3-Clause Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MinPeers                 = 0
	MaxPeers                 = 5
	DefaultGeoBeaconInterval = 5 * time.Minute
	ErrorGeoBeaconStoped     = errors.New("GeoBeacon Stopped")
)

Functions

func New

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

Types

type Client

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

func (*Client) Cancel

func (client *Client) Cancel(jid string, cid_log map[string]string) (interface{}, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) Done

func (client *Client) Done(jid string, cid_log map[string]string, assetCid map[string]string) error

func (*Client) Failed

func (client *Client) Failed(jid string, cid_log map[string]string, assetCid map[string]string) error

func (*Client) Get

func (client *Client) Get(jid string) (*iface.Job, error)

func (*Client) IsLocked

func (client *Client) IsLocked(jid string) (bool, error)

func (*Client) List

func (client *Client) List() ([]string, error)

func (*Client) Lock

func (client *Client) Lock(jid string, eta uint32) error

func (*Client) Timeout

func (client *Client) Timeout(jid string) error

func (*Client) Unlock

func (client *Client) Unlock(jid string) error

type Peer

type Peer struct {
	Client
	Id string
}

Jump to

Keyboard shortcuts

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