Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxUsernameLength = 100 MaxPasswordLength = 20 MinPasswordLength = 8 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginResponse ¶
func PostUserLogin ¶
func PostUserLogin(username, password string) (*LoginResponse, error)
PostUserLogin 注册用户并得到token和id
func QueryUserLogin ¶
func QueryUserLogin(username, password string) (*LoginResponse, error)
QueryUserLogin 查询用户是否存在,并返回token和id
type PostUserLoginFlow ¶
type PostUserLoginFlow struct {
// contains filtered or unexported fields
}
func NewPostUserLoginFlow ¶
func NewPostUserLoginFlow(username, password string) *PostUserLoginFlow
func (*PostUserLoginFlow) Do ¶
func (q *PostUserLoginFlow) Do() (*LoginResponse, error)
type QueryUserLoginFlow ¶
type QueryUserLoginFlow struct {
// contains filtered or unexported fields
}
func NewQueryUserLoginFlow ¶
func NewQueryUserLoginFlow(username, password string) *QueryUserLoginFlow
func (*QueryUserLoginFlow) Do ¶
func (q *QueryUserLoginFlow) Do() (*LoginResponse, error)
Click to show internal directories.
Click to hide internal directories.