Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RefreshTokenRecordMapping ¶
type RefreshTokenRecordMapping interface {
// ToRefreshTokenRecord maps a RefreshToken database row to a RefreshTokenRecord domain model.
// Parameters:
// - refreshToken: A pointer to a RefreshToken representing the database row.
//
// Returns:
// - A pointer to a RefreshTokenRecord containing the mapped data, including
// ID, UserID, Token, and ExpiredAt, CreatedAt, and UpdatedAt.
ToRefreshTokenRecord(refreshToken *db.RefreshToken) *record.RefreshTokenRecord
// ToRefreshTokensRecord maps a slice of RefreshToken database rows to a slice of RefreshTokenRecord
// domain models.
//
// Parameters:
// - refreshTokens: A slice of pointers to RefreshToken representing the database rows.
//
// Returns:
// - A slice of pointers to RefreshTokenRecord containing the mapped data, including
// ID, UserID, Token, and ExpiredAt, CreatedAt, and UpdatedAt.
ToRefreshTokensRecord(refreshTokens []*db.RefreshToken) []*record.RefreshTokenRecord
}
RefreshTokenRecordMapping defines a mapping function from a RefreshToken database row to a RefreshTokenRecord domain model.
func NewRefreshTokenRecordMapper ¶
func NewRefreshTokenRecordMapper() RefreshTokenRecordMapping
NewRefreshTokenRecordMapper returns a new instance of refreshTokenRecordMapper which provides methods to map RefreshToken database rows to RefreshTokenRecord domain models.
Click to show internal directories.
Click to hide internal directories.