Documentation ¶
Index ¶
- func NewAccessTokenDatabaseDs(queries *database.Queries) domain.AccessTokenDatabaseDs
- func NewAccessTokenTokenCacheDs(redis *redis.Client) domain.AccessTokenCacheDs
- func NewBcryptHashDatasource() domain.HashDatasource
- func NewNoteCacheDs(redis *redis.Client) domain.NoteCacheDs
- func NewNoteDatabaseDs(queries *database.Queries) domain.NoteDatabaseDs
- func NewRefreshTokenCacheDs(redis *redis.Client) domain.RefreshTokenCacheDs
- func NewRefreshTokenDatabaseDs(queries *database.Queries) domain.RefreshTokenDatabaseDs
- func NewUserCacheDs(redis *redis.Client) domain.UserCacheDs
- func NewUserDatabaseDs(queries *database.Queries) domain.UserDatabaseDs
- type AccessToken
- type Note
- type RefreshToken
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAccessTokenDatabaseDs ¶
func NewAccessTokenDatabaseDs(queries *database.Queries) domain.AccessTokenDatabaseDs
func NewAccessTokenTokenCacheDs ¶
func NewAccessTokenTokenCacheDs(redis *redis.Client) domain.AccessTokenCacheDs
func NewBcryptHashDatasource ¶
func NewBcryptHashDatasource() domain.HashDatasource
func NewNoteCacheDs ¶
func NewNoteCacheDs(redis *redis.Client) domain.NoteCacheDs
func NewNoteDatabaseDs ¶
func NewNoteDatabaseDs(queries *database.Queries) domain.NoteDatabaseDs
func NewRefreshTokenCacheDs ¶
func NewRefreshTokenCacheDs(redis *redis.Client) domain.RefreshTokenCacheDs
func NewRefreshTokenDatabaseDs ¶
func NewRefreshTokenDatabaseDs(queries *database.Queries) domain.RefreshTokenDatabaseDs
func NewUserCacheDs ¶
func NewUserCacheDs(redis *redis.Client) domain.UserCacheDs
func NewUserDatabaseDs ¶
func NewUserDatabaseDs(queries *database.Queries) domain.UserDatabaseDs
Types ¶
type AccessToken ¶
type AccessToken struct { Id string `redis:"id"` RefreshTokenId string `redis:"refresh_token_id"` UserId string `redis:"user_id"` CreateTime time.Time `redis:"create_time"` UpdateTime time.Time `redis:"update_time"` }
func (*AccessToken) ParseToDomain ¶
func (u *AccessToken) ParseToDomain() (*domain.AccessToken, error)
type RefreshToken ¶
type RefreshToken struct { Id string `redis:"id"` UserId string `redis:"user_id"` CreateTime time.Time `redis:"create_time"` UpdateTime time.Time `redis:"update_time"` }
func (*RefreshToken) ParseToDomain ¶
func (u *RefreshToken) ParseToDomain() *domain.RefreshToken
Click to show internal directories.
Click to hide internal directories.