db

package
v0.1.0-alpha.0...-0b1224c Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2019 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Config  *Config
	Updates []*update.Update

	// Ready indicates whether or not the Agent is ready to accept
	// and process new commands. The Agent is only in a not-ready
	// state when it is closing.
	Ready bool

	// Channels holds the state of all open channels. Closed channels
	// are deleted. (Their history is still available in Updates.)
	Channels map[string]*fsm.Channel

	Messages map[string]*message.Message

	EncryptedSeed    []byte
	NextKeypathIndex uint32
	PrimaryAcct      *fsm.AccountID
	Wallet           *fsm.WalletAcct
}

Agent is the db layout for a Starlight agent.

type Config

type Config struct {
	HorizonURL string
	Username   string

	// PwType records which hashing function was used for PwHash.
	// Currently, it's always "bcrypt".
	PwType string
	PwHash []byte

	MaxRoundDurMins   int64
	FinalityDelayMins int64
	ChannelFeerate    int64
	HostFeerate       int64

	KeepAlive bool
	Public    bool
}

Config is the db layout for Starlight agent-level configuration.

type Root

type Root struct {
	Agent *Agent
}

Root is the type of the root bucket, as required by genbolt.

Jump to

Keyboard shortcuts

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