nodelocker

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeLock

type NodeLock struct {
	PeerID  string
	Expiry  time.Time
	Aquired bool
}

type NodeLocker

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

func NewNodeLocker

func NewNodeLocker() *NodeLocker

func (*NodeLocker) FetchLocks

func (snl *NodeLocker) FetchLocks(ctx context.Context) ([]NodeLock, error)

func (*NodeLocker) Lock

func (snl *NodeLocker) Lock(ctx context.Context, peerID, secret string) (NodeLock, error)

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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