Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface { // Put inserts or updates a voucher from a satellite Put(context.Context, *pb.Voucher) error // GetExpiring retrieves all vouchers that are expired or about to expire GetExpiring(context.Context, time.Duration) ([]storj.NodeID, error) // GetValid returns one valid voucher from the list of approved satellites GetValid(context.Context, []storj.NodeID) (*pb.Voucher, error) }
DB implements storing and retrieving vouchers
Click to show internal directories.
Click to hide internal directories.