refreshtokenrecord

package
v1.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2025 License: MIT Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL