Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ObjectsBasePath = []string{"tree", "data", "objects"}
Functions ¶
func ObjectReadPath ¶
func ObjectWritePath ¶
Types ¶
type ChaintreeObjectStorage ¶
type ChaintreeObjectStorage struct {
*Config
}
func (*ChaintreeObjectStorage) Chaintree ¶
func (s *ChaintreeObjectStorage) Chaintree() *chaintree.ChainTree
func (*ChaintreeObjectStorage) NewEncodedObject ¶
func (s *ChaintreeObjectStorage) NewEncodedObject() plumbing.EncodedObject
type ChaintreeObjectStorer ¶
type ChaintreeObjectStorer interface {
storer.EncodedObjectStorer
Chaintree() *chaintree.ChainTree
}
type Config ¶
type Config struct {
Ctx context.Context
Tupelo *tupelo.Client
ChainTree *consensus.SignedChainTree
PrivateKey *ecdsa.PrivateKey
}
type EncodedObjectIter ¶
type EncodedObjectIter struct {
storer.EncodedObjectIter
// contains filtered or unexported fields
}
func NewEncodedObjectIter ¶
func NewEncodedObjectIter(store ChaintreeObjectStorer, t plumbing.ObjectType) *EncodedObjectIter
func (*EncodedObjectIter) Close ¶
func (iter *EncodedObjectIter) Close()
func (*EncodedObjectIter) ForEach ¶
func (iter *EncodedObjectIter) ForEach(cb func(plumbing.EncodedObject) error) error
func (*EncodedObjectIter) Next ¶
func (iter *EncodedObjectIter) Next() (plumbing.EncodedObject, error)
Next returns the next object from the iterator. If the iterator has reached the end it will return io.EOF as an error. If the object is retreieved successfully error will be nil.
Click to show internal directories.
Click to hide internal directories.