Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(opts *Store)
Option is an option for registered store.
func WithCheckStatusAfterTime ¶
WithCheckStatusAfterTime sets optional check status interval.
func WithPolicyHandler ¶
func WithPolicyHandler(ph policyHandler) Option
WithPolicyHandler sets optional policy handler.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is db implementation of anchor index status store.
func New ¶
func New(provider storage.Provider, expiryService *expiry.Service, maxWitnessDelay time.Duration, opts ...Option) (*Store, error)
New creates new anchor event status store.
func (*Store) AddStatus ¶
func (s *Store) AddStatus(anchorID string, status proof.AnchorIndexStatus) error
AddStatus adds verifiable credential proof collecting status.
func (*Store) CheckInProcessAnchors ¶
func (s *Store) CheckInProcessAnchors()
CheckInProcessAnchors will be invoked to check for incomplete (not processed) anchors.
Click to show internal directories.
Click to hide internal directories.