Documentation ¶
Index ¶
- Constants
- func Dot(objects []*object.Object) (string, error)
- type Cayley
- func (s *Cayley) Children(hash string) ([]*object.Object, error)
- func (s *Cayley) Dump() ([]graphObject, error)
- func (s *Cayley) Get(hash string) (*object.Object, error)
- func (s *Cayley) Graph(hash string) ([]*object.Object, error)
- func (s *Cayley) Head(hash string) (*object.Object, error)
- func (s *Cayley) Heads() ([]*object.Object, error)
- func (s *Cayley) Put(v *object.Object) error
- func (s *Cayley) Tails(hash string) ([]*object.Object, error)
- type Store
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cayley ¶
type Cayley struct {
// contains filtered or unexported fields
}
Cayley object store
type Store ¶
type Store interface { Put(*object.Object) error Get(string) (*object.Object, error) Graph(string) ([]*object.Object, error) Children(string) ([]*object.Object, error) Head(string) (*object.Object, error) Heads() ([]*object.Object, error) Tails(string) ([]*object.Object, error) }
Store interface
func NewCayleyWithTempStore ¶
NewCayleyWithTempStore constructs a new object store with a temp bolt store NOTE: Cayley's in-memory store is not thread safe, please don't use it to replace this.
Click to show internal directories.
Click to hide internal directories.