user

package
v0.0.0-...-179f7ef Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserEnv

type UserEnv struct {
	Logger   goKitLog.Logger
	UserRepo UserRepositoryInterface
	Common   lib.CommonService
}

func (*UserEnv) GetAll

func (env *UserEnv) GetAll(w http.ResponseWriter, r *http.Request)

func (*UserEnv) GetAllBatch

func (env *UserEnv) GetAllBatch(w http.ResponseWriter, r *http.Request)

func (*UserEnv) GetBatchTask

func (env *UserEnv) GetBatchTask(w http.ResponseWriter, r *http.Request)

type UserRepository

type UserRepository struct {
	Db     *gorm.DB
	Logger log.Logger
}

func (*UserRepository) GetAll

func (repo *UserRepository) GetAll(limit string, offset string, orderby string, sort string) ([]*models.UserReduced, string, error)

func (*UserRepository) GetAllBatch

func (repo *UserRepository) GetAllBatch(limit string, offset string, orderby string, sort string) (string, error)

func (*UserRepository) GetBatchTask

func (repo *UserRepository) GetBatchTask(batchTaskId string) (*models.BatchTask, error)

type UserRepositoryInterface

type UserRepositoryInterface interface {
	GetAll(limit string, offset string, orderby string, sort string) ([]*models.UserReduced, string, error)
	GetAllBatch(limit string, offset string, orderby string, sort string) (string, error)
	GetBatchTask(batchTaskId string) (*models.BatchTask, error)
}

Jump to

Keyboard shortcuts

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