db

package
v0.0.0-...-edb10b3 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddressBook = []byte("AddressBook")
View Source
var MySettings = []byte("MySettings")

Functions

func GetAllNodes

func GetAllNodes() []*pb.Node

func GetSettings

func GetSettings(key []byte) []byte

func Init

func Init() error

func SaveNode

func SaveNode(node *pb.Node) error

func SetSettings

func SetSettings(key []byte, val []byte) error

Types

type InMemoryNodes

type InMemoryNodes struct {
	// contains filtered or unexported fields
}

func NewInMamoryNodes

func NewInMamoryNodes() *InMemoryNodes

func (*InMemoryNodes) Save

func (store *InMemoryNodes) Save(node *pb.Node) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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