Documentation ¶
Index ¶
- type Mongo
- func (db Mongo) Close() error
- func (db Mongo) Create(ctx context.Context, token entity.Token) error
- func (db Mongo) Delete(ctx context.Context, id string) error
- func (db Mongo) EventHandlers() map[event.EventType][]event.Handler
- func (db Mongo) Get(ctx context.Context, opaqueToken string) (entity.Token, error)
- func (db Mongo) GetMultiple(ctx context.Context, query filter.Filter) ([]entity.Token, error)
- func (db Mongo) SignOutUsersOnDeletion() event.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mongo ¶
type Mongo struct {
// contains filtered or unexported fields
}
func (Mongo) GetMultiple ¶
func (Mongo) SignOutUsersOnDeletion ¶
SignOutUsersOnDeletion deletes all, both access and refresh tokens created for the deleted user.
Click to show internal directories.
Click to hide internal directories.