adload

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: Unlicense Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Magic = "load"
	Len   = adproto.Len + 1
)

Variables

This section is empty.

Functions

func Splice

func Splice(s *splice.Splice, id nonce.ID, key *crypto.Pub,
	load byte, expiry time.Time)

Types

type Ad struct {
	adproto.Ad
	Load byte
}

Ad stores a specification for the fee rate and existence of a peer.

func New

func New(id nonce.ID, key *crypto.Prv, load byte,
	expiry time.Time) (sv *Ad)

New ...

func (*Ad) Decode

func (x *Ad) Decode(s *splice.Splice) (e error)

func (*Ad) Encode

func (x *Ad) Encode(s *splice.Splice) (e error)

func (*Ad) GetOnion

func (x *Ad) GetOnion() interface{}

func (*Ad) Len

func (x *Ad) Len() int

func (*Ad) Magic

func (x *Ad) Magic() string

func (*Ad) Splice

func (x *Ad) Splice(s *splice.Splice)

func (*Ad) SpliceNoSig

func (x *Ad) SpliceNoSig(s *splice.Splice)

func (*Ad) Validate

func (x *Ad) Validate() (valid bool)

Jump to

Keyboard shortcuts

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