repository

package
v0.0.0-...-160c400 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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) Create

func (r UserRepository) Create(ctx context.Context, data map[string]interface{}) (user entity.User, err error)

func (UserRepository) Delete

func (r UserRepository) Delete(ctx context.Context, id int64) error

func (UserRepository) ItemByEmail

func (r UserRepository) ItemByEmail(ctx context.Context, email string) (e entity.User, err error)

func (UserRepository) ItemByID

func (r UserRepository) ItemByID(ctx context.Context, id int64) (e entity.User, err error)

func (UserRepository) ItemsByCursor

func (r UserRepository) ItemsByCursor(ctx context.Context, cursor, size int64) (e []entity.User, err error)

func (UserRepository) ItemsByCursorReverse

func (r UserRepository) ItemsByCursorReverse(ctx context.Context, cursor, size int64) (e []entity.User, err error)

func (UserRepository) Migration

func (r UserRepository) Migration()

func (UserRepository) Update

func (r UserRepository) Update(ctx context.Context, id int64, data map[string]interface{}) error

Jump to

Keyboard shortcuts

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