Documentation ¶
Index ¶
Constants ¶
View Source
const ( UIDKey = "uid" UIDPrefixKey = "uid:" UserKey = "user" UserPrefixKey = "user:" )
UIDKey and other redis params
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserRepo ¶
type UserRepo interface { Create(ctx context.Context, req models.User) (string, error) Update(ctx context.Context, req models.User) (string, error) Delete(ctx context.Context, req models.IDRequest) error Search(ctx context.Context, req models.UserSearchRequest) (interface{}, error) Get(ctx context.Context, req models.IDRequest) (models.User, error) Find(ctx context.Context, req models.UserFindRequest) (models.User, error) }
UserRepo interface declaration
func NewUserMgoRepo ¶
Click to show internal directories.
Click to hide internal directories.