Documentation ¶
Index ¶
- type UserRepository
- func (r UserRepository) Create(ctx context.Context, data map[string]interface{}) (user entity.User, err error)
- func (r UserRepository) Delete(ctx context.Context, id int64) error
- func (r UserRepository) ItemByEmail(ctx context.Context, email string) (e entity.User, err error)
- func (r UserRepository) ItemByID(ctx context.Context, id int64) (e entity.User, err error)
- func (r UserRepository) ItemsByCursor(ctx context.Context, cursor, size int64) (e []entity.User, err error)
- func (r UserRepository) ItemsByCursorReverse(ctx context.Context, cursor, size int64) (e []entity.User, err error)
- func (r UserRepository) Migration()
- func (r UserRepository) Update(ctx context.Context, id int64, data map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserRepository ¶
type UserRepository struct {
xdb.Repository
}
func NewUserRepository ¶
func NewUserRepository(db conn.NirvanaDB) *UserRepository
func (UserRepository) ItemByEmail ¶
func (UserRepository) ItemsByCursor ¶
func (UserRepository) ItemsByCursorReverse ¶
func (UserRepository) Migration ¶
func (r UserRepository) Migration()
Click to show internal directories.
Click to hide internal directories.