snow

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliasLookup

type AliasLookup interface {
	Lookup(alias string) (ids.ID, error)
	PrimaryAlias(id ids.ID) (string, error)
}

AliasLookup ...

type Callable

type Callable interface {
	Call(writer http.ResponseWriter, method, base, endpoint string, body io.Reader, headers map[string]string) error
}

Callable ...

type Context

type Context struct {
	NetworkID           uint32
	ChainID             ids.ID
	NodeID              ids.ShortID
	Log                 logging.Logger
	DecisionDispatcher  *triggers.EventDispatcher
	ConsensusDispatcher *triggers.EventDispatcher
	Lock                sync.RWMutex
	HTTP                Callable
	Keystore            Keystore
	SharedMemory        SharedMemory
	BCLookup            AliasLookup
}

Context is information about the current execution. [NetworkID] is the ID of the network this context exists within. [ChainID] is the ID of the chain this context exists within. [NodeID] is the ID of this node

func DefaultContextTest

func DefaultContextTest() *Context

DefaultContextTest ...

type Keystore

type Keystore interface {
	GetDatabase(username, password string) (database.Database, error)
}

Keystore ...

type SharedMemory

type SharedMemory interface {
	GetDatabase(id ids.ID) database.Database
	ReleaseDatabase(id ids.ID)
}

SharedMemory ...

Directories

Path Synopsis
consensus
engine
avalanche/state
Package state manages the meta-data required by consensus for an avalanche dag.
Package state manages the meta-data required by consensus for an avalanche dag.

Jump to

Keyboard shortcuts

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