Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenRepository ¶
type TokenRepository interface { Create(ctx context.Context, token *go_nuntio.Token) error Block(ctx context.Context, token *go_nuntio.Token) error IsBlocked(ctx context.Context, token *go_nuntio.Token) (bool, error) UpdateUsedAt(ctx context.Context, token *go_nuntio.Token) error GetTokens(ctx context.Context, token *go_nuntio.Token) ([]*models.Token, error) Get(ctx context.Context, token *go_nuntio.Token) (*models.Token, error) BuildIndexes(ctx context.Context) error }
func New ¶
func New(collection *mongo.Collection, crypto cryptox.Crypto) TokenRepository
Click to show internal directories.
Click to hide internal directories.