Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type MongoIterator ¶
func (*MongoIterator[T]) Err ¶
func (i *MongoIterator[T]) Err() error
type ProcessTokens ¶
type Store ¶
type Store interface { // CreateToken creates a new token. If the token already exists, it will throw an error. CreateToken(ctx context.Context, owner string, token *pb.Token) (*pb.Token, error) // GetTokens loads tokens from the database. GetTokens(ctx context.Context, owner string, query *pb.GetTokensRequest, p ProcessTokens) error // DeleteTokens deletes blacklisted expired tokens from the database. DeleteBlacklistedTokens(ctx context.Context, now time.Time) error // Delete or set tokens as blacklisted DeleteTokens(ctx context.Context, owner string, req *pb.DeleteTokensRequest) (*pb.DeleteTokensResponse, error) Close(ctx context.Context) error }
Click to show internal directories.
Click to hide internal directories.