Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements storage for unpublished operation.
func New ¶
func New(provider storage.Provider, unpublishedOperationLifespan time.Duration, expiryService *expiry.Service, metrics metricsProvider, ) (*Store, error)
New returns a new instance of an unpublished operation store. This method will also register the unpublished operation store with the given expiry service which will then take care of deleting expired data automatically. Note that it's the caller's responsibility to start the expiry service. unpublishedOperationLifespan defines how long unpublished operations can stay in the store before being flagged for deletion.
func (*Store) Delete ¶
func (s *Store) Delete(op *operation.AnchoredOperation) error
Delete will delete unpublished operation for suffix.
func (*Store) DeleteAll ¶
func (s *Store) DeleteAll(ops []*operation.AnchoredOperation) error
DeleteAll deletes all operations for suffixes.
Click to show internal directories.
Click to hide internal directories.