Documentation
¶
Index ¶
- type BanOpts
- type ChangeLoginOpts
- type ChangeNameOpts
- type ChangePasswordOpts
- type CreateUserOpts
- type CreateUserResp
- type GetAllMySessionsResp
- type GetAllSessionsOpts
- type GetAllSessionsResp
- type GetMeResp
- type GetSessionOpts
- type GetSessionResp
- type GetUIdByUsernameOpts
- type GetUserOpts
- type GetUserResp
- type KillSessionOpts
- type LoginOpts
- type LoginResponse
- type RemoveUserOpts
- type Session
- type SetUsernameOpts
- type TestUsernameOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeLoginOpts ¶
func (*ChangeLoginOpts) Validate ¶
func (opts *ChangeLoginOpts) Validate() error
type ChangeNameOpts ¶
TODO
func (*ChangeNameOpts) Validate ¶
func (opts *ChangeNameOpts) Validate() error
type ChangePasswordOpts ¶
func (*ChangePasswordOpts) Validate ¶
func (opts *ChangePasswordOpts) Validate() error
type CreateUserOpts ¶
type CreateUserOpts struct { // User info Name string Login string Password string // Session info DeviceInfo string IpAddr string }
Options
func (*CreateUserOpts) Validate ¶
func (opts *CreateUserOpts) Validate() error
type CreateUserResp ¶
type CreateUserResp struct {
Token string
}
type GetAllMySessionsResp ¶
type GetAllSessionsOpts ¶
type GetAllSessionsResp ¶
type GetSessionOpts ¶
type GetSessionResp ¶
type GetUIdByUsernameOpts ¶
type GetUserOpts ¶
func (*GetUserOpts) Validate ¶
func (opts *GetUserOpts) Validate() error
type GetUserResp ¶
type GetUserResp struct { ID uuid.UUID Name string Username username.Username Banned bool CreatedAt time.Time }
Some fields may be nil or an empty string
type KillSessionOpts ¶
type LoginResponse ¶
type LoginResponse struct {
Token string
}
type RemoveUserOpts ¶
func (*RemoveUserOpts) Validate ¶
func (opts *RemoveUserOpts) Validate() error
type SetUsernameOpts ¶
func (*SetUsernameOpts) Validate ¶
func (opts *SetUsernameOpts) Validate() error
type TestUsernameOpts ¶
type TestUsernameOpts struct {
UsernameBase string
}
func (*TestUsernameOpts) Validate ¶
func (opts *TestUsernameOpts) Validate() error
Click to show internal directories.
Click to hide internal directories.