directbalance

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MagicString = "db"
	Len         = magicbytes.Len + nonce.IDLen
)

Variables

View Source
var (
	Magic = slice.Bytes(MagicString)
)

Functions

This section is empty.

Types

type Layer

type Layer struct {
	nonce.ID
	types.Onion
}

Layer getbalance messages are a request to return the sats balance of the session the message is embedded in.

func (*Layer) Decode

func (x *Layer) Decode(b slice.Bytes, c *slice.Cursor) (e error)

func (*Layer) Encode

func (x *Layer) Encode(b slice.Bytes, c *slice.Cursor)

func (*Layer) Inner

func (x *Layer) Inner() types.Onion

func (*Layer) Insert

func (x *Layer) Insert(o types.Onion)

func (*Layer) Len

func (x *Layer) Len() int

Jump to

Keyboard shortcuts

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