Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyPassword = errors.New("empty password") ErrPasswordTooLong = errors.New("password too long") ErrPasswordHasInvalidChar = errors.New("password has invalid char") ErrEmptyUserId = errors.New("empty user id") ErrEmptyUsername = errors.New("empty username") ErrUsernameTooLong = errors.New("username too long") ErrUsernameHasInvalidChar = errors.New("username has invalid char") )
View Source
var (
ErrInvalidMac = errors.New("invalid mac")
)
Functions ¶
Types ¶
type CreateUserReq ¶
type CreateUserReq user.CreateUserReq
func (*CreateUserReq) Validate ¶
func (r *CreateUserReq) Validate() error
type GetDeviceDetailReq ¶ added in v0.2.1
type GetDeviceDetailReq struct {
ID uint64 `form:"id" binding:"required"`
}
type GetDeviceDetailResp ¶ added in v0.2.1
type GetDeviceDetailResp struct {
*device.DeviceInfo
*device.DeviceLastSeen
}
type ListUserReq ¶
type ListUserReq user.ListUserReq
func (*ListUserReq) Validate ¶
func (r *ListUserReq) Validate() error
type LoginUserReq ¶
func (*LoginUserReq) Validate ¶
func (l *LoginUserReq) Validate() error
type RegisterDeviceReq ¶ added in v0.2.1
type RegisterDeviceReq device.RegisterDeviceReq
func (*RegisterDeviceReq) Validate ¶ added in v0.2.1
func (c *RegisterDeviceReq) Validate() error
type SetUserPasswordReq ¶
type SetUserPasswordReq struct {
Password string `json:"password"`
}
func (*SetUserPasswordReq) Validate ¶
func (s *SetUserPasswordReq) Validate() error
type SetUsernameReq ¶
type SetUsernameReq struct {
Username string `json:"username"`
}
func (*SetUsernameReq) Validate ¶
func (s *SetUsernameReq) Validate() error
Click to show internal directories.
Click to hide internal directories.