Documentation ¶
Index ¶
- Variables
- type SqliteUserAggregate
- type SqliteUserEmailView
- type SqliteUserModel
- type SqliteUserTokenView
- type UserMemoryRepository
- func (r UserMemoryRepository) Create(ctx context.Context, user ua.User) (ua.User, error)
- func (r UserMemoryRepository) FindByEmail(ctx context.Context, email string) (ua.User, error)
- func (r UserMemoryRepository) FindById(ctx context.Context, id uuid.UUID) (ua.User, error)
- func (r UserMemoryRepository) Update(ctx context.Context, user ua.User) (ua.User, error)
- type UserSqliteRepository
- func (r *UserSqliteRepository) Connection(cnn *dbinfra.SqliteConnection)
- func (r *UserSqliteRepository) Create(ctx context.Context, user ua.User) (ua.User, error)
- func (r *UserSqliteRepository) FindByEmail(ctx context.Context, email string) (ua.User, error)
- func (r *UserSqliteRepository) FindById(ctx context.Context, id uuid.UUID) (ua.User, error)
- func (r *UserSqliteRepository) GetConnection() *dbinfra.SqliteConnection
- func (r *UserSqliteRepository) Update(ctx context.Context, user ua.User) (ua.User, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type SqliteUserAggregate ¶
type SqliteUserAggregate struct { UserID string `gorm:"primaryKey;not null"` ValueData SqliteUserModel `gorm:"serializer:json"` CreatedAt int64 `gorm:"autoCreateTime:milli"` UpdatedAt int64 `gorm:"autoUpdateTime:milli"` DeletedAt gorm.DeletedAt `gorm:"index"` }
func (SqliteUserAggregate) FromDbModelToDomainEntity ¶
func (dbm SqliteUserAggregate) FromDbModelToDomainEntity() ua.User
func (*SqliteUserAggregate) FromDomainEntityToDbModel ¶
func (dbm *SqliteUserAggregate) FromDomainEntityToDbModel(de ua.User)
func (SqliteUserAggregate) TableName ¶
func (SqliteUserAggregate) TableName() string
TableName overrides grom default table name
type SqliteUserEmailView ¶
type SqliteUserEmailView struct { UserID string `gorm:"primaryKey;not null"` Email string HasVerifiedEmail bool CreatedAt int64 `gorm:"autoCreateTime:milli"` UpdatedAt int64 `gorm:"autoUpdateTime:milli"` DeletedAt gorm.DeletedAt `gorm:"index"` }
func (SqliteUserEmailView) FromDbModelToDomainEntity ¶
func (dbm SqliteUserEmailView) FromDbModelToDomainEntity() ua.UserEmailView
func (*SqliteUserEmailView) FromDomainEntityToDbModel ¶
func (dbm *SqliteUserEmailView) FromDomainEntityToDbModel(de ua.User)
func (SqliteUserEmailView) TableName ¶
func (SqliteUserEmailView) TableName() string
TableName overrides grom default table name
type SqliteUserModel ¶
type SqliteUserTokenView ¶
type SqliteUserTokenView struct { UserID string `gorm:"primaryKey;not null"` VerificationToken string VerificationSalt string CreatedAt int64 `gorm:"autoCreateTime:milli"` UpdatedAt int64 `gorm:"autoUpdateTime:milli"` DeletedAt gorm.DeletedAt `gorm:"index"` }
func (SqliteUserTokenView) FromDbModelToDomainEntity ¶
func (dbm SqliteUserTokenView) FromDbModelToDomainEntity() ua.UserTokenView
func (*SqliteUserTokenView) FromDomainEntityToDbModel ¶
func (dbm *SqliteUserTokenView) FromDomainEntityToDbModel(de ua.User)
func (SqliteUserTokenView) TableName ¶
func (SqliteUserTokenView) TableName() string
TableName overrides grom default table name
type UserMemoryRepository ¶
func NewUserMemoryRepository ¶
func NewUserMemoryRepository(seedUserList []ua.User) UserMemoryRepository
func (UserMemoryRepository) FindByEmail ¶
type UserSqliteRepository ¶
type UserSqliteRepository struct {
// contains filtered or unexported fields
}
func (*UserSqliteRepository) Connection ¶
func (r *UserSqliteRepository) Connection(cnn *dbinfra.SqliteConnection)
func (*UserSqliteRepository) FindByEmail ¶
func (*UserSqliteRepository) GetConnection ¶
func (r *UserSqliteRepository) GetConnection() *dbinfra.SqliteConnection
Click to show internal directories.
Click to hide internal directories.