Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Serializable ¶
type Serializable interface { Hash() (hash.Hash, error) Serialize() ([]byte, error) Deserialize([]byte) error Type() string JSON() error ReInit() error }
Serializable allows for the storage of any kind of data
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is responsible for storing the actual data on the tangle
func (*Store) Get ¶
func (s *Store) Get(dest Serializable, h hash.Hash) error
Get retrieves the serialized object
func (*Store) Put ¶
func (s *Store) Put(e Serializable) error
Put stores the serialized element in the database
Click to show internal directories.
Click to hide internal directories.