transfer

package
v0.0.0-...-249e25c Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NilID = ID{}

Functions

This section is empty.

Types

type Control

type Control interface {
	peer.PeerHandler
	Run()
	Add(swarm *ppspp.Swarm, salt []byte) ID
	Find(swarm ppspp.SwarmID, salt []byte) (ID, *ppspp.Swarm, bool)
	Remove(id ID)
	List() []*transferv1.Transfer
	Publish(id ID, networkKey []byte)
	IsPublished(id ID, networkKey []byte) bool
}

func NewControl

func NewControl(
	ctx context.Context,
	logger *zap.Logger,
	vpn *vpn.Host,
	store dao.Store,
	observers *event.Observers,
) Control

NewControl ...

type ID

type ID [sha256.Size]byte

func NewID

func NewID(swarmID []byte, salt []byte) ID

func ParseID

func ParseID(b []byte) (id ID, err error)

func (ID) IsNil

func (i ID) IsNil() bool

Jump to

Keyboard shortcuts

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