Documentation ¶
Index ¶
Constants ¶
View Source
const ( UNKNOWN_USER_ERROR = 1000 INVALID_USER_ERROR = 1001 REPOSITORY_USER_ERROR = 1002 NOT_FOUND_ERROR = 1003 INVALID_USER_ID_ERROR = 1004 USER_DELETE_ERROR = 1005 )
Users' errors goes from 1000 to 1999
Variables ¶
This section is empty.
Functions ¶
func NewUserError ¶
Types ¶
type User ¶
type User struct { Id vo.Id FirstName FirstName LastName LastName Email Email CreatedAt vo.DateTime }
func (*User) GetCreatedAt ¶
func (*User) GetFirstName ¶
func (*User) GetLastName ¶
type UserRepository ¶
type UserRepository interface { Save(ctx *context.Context, u User) *errors.AppError Find(ctx *context.Context, id vo.Id) (User, *errors.AppError) FindByCriteria(ctx *context.Context, c criteria.Criteria, o criteria.SorterCriteria, p criteria.PaginatorCriteria) (collection.Collection, *errors.AppError) Delete(ctx *context.Context, id vo.Id) *errors.AppError }
Click to show internal directories.
Click to hide internal directories.