store

package
v0.0.0-...-2b5131d Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(uri string) bool

Connect ... Connect to mongodb via uri

func SetState

func SetState(newState State)

SetState ... Update main state

Types

type State

type State struct {
	Address  string `bson:"address" json:"address"`
	Mnemonic string `bson:"mnemonic" json:"mnemonic"`
	HdPath   string `bson:"hdPath" json:"hdPath"`
	ChainID  string `bson:"chainID" json:"chainID"`
	Node     string `bson:"node" json:"node"`
}

State ... Main instance state

func GetState

func GetState() State

GetState ... Returns app state from db

Jump to

Keyboard shortcuts

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