Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunUserScheduler ¶
func RunUserScheduler( ctx context.Context, wg *sync.WaitGroup, mutexProvider mutex.MutexProvider, userRepository repository.UserRepository, userCenterClient usercenterproto.UserCenterClient, )
Types ¶
type CreateCommand ¶
type GetByUsernameCommand ¶
type GetByUsernameCommand struct {
Username string
}
type GetCommand ¶
type GetCommand struct {
UID uint32
}
type ListCommand ¶
type ListCommand struct {
pagination.Request
}
type SearchCommand ¶
type UserService ¶
type UserService interface { List(ctx context.Context, cmd ListCommand) (pagination.Pagination, []model.User, error) Search(ctx context.Context, cmd SearchCommand) (map[uint32]model.User, error) Get(ctx context.Context, cmd GetCommand) (model.User, error) GetByUsername(ctx context.Context, cmd GetByUsernameCommand) (model.User, error) Create(ctx context.Context, cmd CreateCommand) (uid uint32, err error) ValidatePassword(ctx context.Context, cmd ValidatePasswordCommand) error }
func NewUserService ¶
func NewUserService(mutexProvider mutex.MutexProvider, userRepository repository.UserRepository, userCenterClient usercenterproto.UserCenterClient) UserService
type ValidatePasswordCommand ¶
Click to show internal directories.
Click to hide internal directories.