store

package
v2.0.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2016 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdvancedUnInterlaceURI

func AdvancedUnInterlaceURI(rv []string, frontD []string, backD []string) []string

Given an interlaced string and some _remaining_ *D. Construct the uninterlaced string

func ExistsDChain

func ExistsDChain(hash []byte) bool

func ExistsDOT

func ExistsDOT(hash []byte) bool

func ExistsEntity

func ExistsEntity(vk []byte) bool

func GetDChain

func GetDChain(hash []byte) (*objects.DChain, bool)

func GetDOT

func GetDOT(hash []byte) (*objects.DOT, bool)

RetreiveDOT gets a DOT from the DB

func GetEntity

func GetEntity(vk []byte) (*objects.Entity, bool)

func GetExactMessage

func GetExactMessage(topic string) ([]byte, bool)

func GetMatchingMessage

func GetMatchingMessage(uri string, handle chan SM)

func Initialize

func Initialize(dbname string)

func InterlaceURI

func InterlaceURI(uri []string) []string

func IsDummy

func IsDummy(value []byte) bool

func ListChildren

func ListChildren(uri string, handle chan string)

func PutDChain

func PutDChain(v *objects.DChain)

StoreDChain puts a DChain into the DB. This must be an elaborated DChain, otherwise it panics (no point in storing a standard dchain)

func PutDOT

func PutDOT(v *objects.DOT)

StoreDOT puts a DOT into the DB

func PutEntity

func PutEntity(v *objects.Entity)

func PutMessage

func PutMessage(topic string, payload []byte)

a/b/c/d a/d/b/c PutMessage inserts a message into the database. Note that the topic must be well formed and complete (no wildcards etc)

func UnInterlaceURI

func UnInterlaceURI(rv []string) []string

Types

type SM

type SM struct {
	URI  string
	Body []byte
}

func MakeSMFromParts

func MakeSMFromParts(uriparts []string, body []byte) SM

Jump to

Keyboard shortcuts

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