Documentation ¶
Index ¶
- type Entry
- type Store
- func (s *Store) AddProof(anchorID string, witness *url.URL, p []byte) error
- func (s *Store) Delete(anchorID string) error
- func (s *Store) Get(anchorID string) ([]*proof.WitnessProof, error)
- func (s *Store) HandleExpiredKeys(keys ...string) error
- func (s *Store) Put(anchorID string, witnesses []*proof.Witness) error
- func (s *Store) UpdateWitnessSelection(anchorID string, witnesses []*url.URL, selected bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶ added in v1.0.0
type Entry struct { EntryType string `json:"entryType"` AnchorID string `json:"anchorID"` ExpiryTime int64 `json:"expiryTime"` }
Entry contains common data for witness-info and witness-proof.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is db implementation of anchor witness store.
func New ¶
func New(provider storage.Provider, expiryService *expiry.Service, expiryPeriod time.Duration) (*Store, error)
New creates new anchor witness store.
func (*Store) Get ¶
func (s *Store) Get(anchorID string) ([]*proof.WitnessProof, error)
Get retrieves witnesses for the given anchor id.
func (*Store) HandleExpiredKeys ¶ added in v1.0.0
HandleExpiredKeys is expired keys inspector/handler.
Click to show internal directories.
Click to hide internal directories.