Documentation ¶
Index ¶
- type AuthorizationCode
- type Client
- type ClientBase
- func (client *ClientBase) Confirm(code string) (AuthorizationCode, error)
- func (client *ClientBase) Forgot(code, password string) error
- func (client *ClientBase) GetAppId() string
- func (client *ClientBase) LogIn(info Credentials) (code AuthorizationCode, err error)
- func (client *ClientBase) Negotiate(code AuthorizationCode) (User, error)
- func (client *ClientBase) Recover(email string) error
- func (client *ClientBase) SetAppId(appId string)
- func (client *ClientBase) SignUp(info SignUp) (err error)
- type Credentials
- type FlatErrorList
- type IdError
- type MappedErrorList
- type SignUp
- type Token
- type User
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizationCode ¶
type AuthorizationCode struct {
Code string
}
type Client ¶
type Client interface { LogIn(credentials Credentials) (code AuthorizationCode, err error) SignUp(info SignUp) (err error) Negotiate(code AuthorizationCode) (user User, err error) Confirm(code string) (AuthorizationCode, error) Recover(email string) error Forgot(code, password string) error SetAppId(appId string) GetAppId() string }
type ClientBase ¶
type ClientBase struct {
// contains filtered or unexported fields
}
func (*ClientBase) Confirm ¶
func (client *ClientBase) Confirm(code string) (AuthorizationCode, error)
func (*ClientBase) Forgot ¶
func (client *ClientBase) Forgot(code, password string) error
func (*ClientBase) GetAppId ¶
func (client *ClientBase) GetAppId() string
func (*ClientBase) LogIn ¶
func (client *ClientBase) LogIn(info Credentials) (code AuthorizationCode, err error)
func (*ClientBase) Negotiate ¶
func (client *ClientBase) Negotiate(code AuthorizationCode) (User, error)
func (*ClientBase) Recover ¶
func (client *ClientBase) Recover(email string) error
func (*ClientBase) SetAppId ¶
func (client *ClientBase) SetAppId(appId string)
func (*ClientBase) SignUp ¶
func (client *ClientBase) SignUp(info SignUp) (err error)
type Credentials ¶
type FlatErrorList ¶
func (FlatErrorList) ToError ¶
func (messages FlatErrorList) ToError() *IdError
type IdError ¶
type IdError struct { FirstMessage string Messages FlatErrorList }
type MappedErrorList ¶
Click to show internal directories.
Click to hide internal directories.