memorystore

package
v0.0.0-...-bda66fc Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryStore

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

MemoryStore is a in-memory tangle store

func (*MemoryStore) Add

func (m *MemoryStore) Add(s *site.Site) error

Add adds the record to the data section

func (*MemoryStore) Close

func (m *MemoryStore) Close()

Close does nothing

func (*MemoryStore) Get

func (m *MemoryStore) Get(h hash.Hash) *site.Site

Get returns the data

func (*MemoryStore) GetTips

func (m *MemoryStore) GetTips() []hash.Hash

GetTips returns the tips

func (*MemoryStore) Hashes

func (m *MemoryStore) Hashes() []hash.Hash

Hashes returns all stored hashes

func (*MemoryStore) Init

func (m *MemoryStore) Init(store.Options) error

Init initializes the maps

func (*MemoryStore) SetTips

func (m *MemoryStore) SetTips(add hash.Hash, del []*site.Site)

SetTips applies the delta

func (*MemoryStore) Size

func (m *MemoryStore) Size() int

Size returns the len of the data

Jump to

Keyboard shortcuts

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