Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiTokenRepository ¶
type ApiTokenRepository interface { CreateApiToken(apiToken *entities.ApiToken) error GetApiTokensByUserID(userID string) ([]entities.ApiToken, error) DeleteApiToken(token string) error }
ApiTokenRepository holds the mongo database implementation of the Service
func NewApiTokenRepo ¶
func NewApiTokenRepo(collection *mongo.Collection) ApiTokenRepository
NewApiTokenRepo creates a new instance of this repository
type RevokedTokenRepository ¶
type RevokedTokenRepository interface { RevokeToken(token *entities.RevokedToken) error IsTokenRevoked(encodedToken string) bool }
RevokedTokenRepository holds the mongo database implementation of the Service
func NewRevokedTokenRepo ¶
func NewRevokedTokenRepo(collection *mongo.Collection) RevokedTokenRepository
NewRevokedTokenRepo creates a new instance of this repository
Click to show internal directories.
Click to hide internal directories.