Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDXTTL ¶
IDXTTL holds the list of Signatures that need to expire at the given ExpiresAt
func (*IDXTTL) AddSignatures ¶
AddSignatures will add all the s to the list of signatures to expire on the ExpiresAt if they do not exists already
type Repository ¶
type Repository interface {
CreateOrReplace(ctx context.Context, ik *IDXTTL) error
// Filter will return all the IDXTTL older than ea
Filter(ctx context.Context, ea time.Time) ([]*IDXTTL, error)
Find(ctx context.Context, ea time.Time) (*IDXTTL, error)
Delete(ctx context.Context, ea time.Time) error
}
Repository is the interface that has to be fulfilled to interact with IDXTTL. All the 'ea' used as keys will be converted to RFC3339
Click to show internal directories.
Click to hide internal directories.