Documentation ¶
Index ¶
- type Opt
- type Store
- func (s *Store) DeleteLinks(links []*url.URL) error
- func (s *Store) DeletePendingLinks(links []*url.URL) error
- func (s *Store) GetLinks(anchorHash string) ([]*url.URL, error)
- func (s *Store) GetProcessedAndPendingLinks(anchorHash string) ([]*url.URL, error)
- func (s *Store) HandleExpiredKeys(keys ...string) ([]string, error)
- func (s *Store) PutLinks(links []*url.URL) error
- func (s *Store) PutPendingLinks(links []*url.URL) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opt ¶
type Opt func(opts *options)
Opt is a link store option.
func WithPendingRecordLifespan ¶
WithPendingRecordLifespan sets the lifespan of an anchor reference in PENDING state, after which it will be deleted.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is implements an anchor link store.
func (*Store) DeleteLinks ¶
DeleteLinks deletes the given hash links.
func (*Store) DeletePendingLinks ¶
DeletePendingLinks deletes the given hash links if they are in PENDING status.
func (*Store) GetProcessedAndPendingLinks ¶
GetProcessedAndPendingLinks returns the links for the given anchor hash, including all pending links.
func (*Store) HandleExpiredKeys ¶
HandleExpiredKeys is invoked by the data expiration handler.
Click to show internal directories.
Click to hide internal directories.