Documentation
¶
Index ¶
- func RevisionID(data []byte) string
- type Metadata
- type PeerAck
- type State
- type Store
- func (s *Store) Ancestors(projectID, revisionID string, limit int) ([]string, error)
- func (s *Store) Current(projectID string) (*State, error)
- func (s *Store) HasRevision(projectID, revisionID string) (bool, error)
- func (s *Store) LoadPeerAcks(projectID string) (map[string]PeerAck, error)
- func (s *Store) LoadRevision(projectID, revisionID string, key [32]byte) ([]byte, error)
- func (s *Store) MarkCurrent(projectID, revisionID string, data []byte) error
- func (s *Store) MarkPeerAck(projectID, fingerprint, revisionID string) error
- func (s *Store) Metadata(projectID, revisionID string) (*Metadata, error)
- func (s *Store) NearestCommonAncestor(projectID, currentRevisionID string, candidates []string) (string, error)
- func (s *Store) PeerAck(projectID, fingerprint string) (*PeerAck, error)
- func (s *Store) SaveRevision(projectID, revisionID, parentID string, data []byte, key [32]byte) (*Metadata, error)
- func (s *Store) SaveRevisionWithParents(projectID, revisionID string, parentIDs []string, data []byte, key [32]byte) (*Metadata, error)
- func (s *Store) SyncCurrent(projectID string, data []byte, key [32]byte) (*Metadata, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RevisionID ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) LoadPeerAcks ¶
func (*Store) LoadRevision ¶
func (*Store) MarkCurrent ¶
func (*Store) MarkPeerAck ¶
func (*Store) NearestCommonAncestor ¶
func (*Store) SaveRevision ¶
func (*Store) SaveRevisionWithParents ¶
Click to show internal directories.
Click to hide internal directories.