Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthorization ¶
Types ¶
type AuthorizationHandler ¶
type AuthorizationHandler interface { // Authorization Connect to the account system to verify the username and first name password and // return the authorization result. Authorization(username, password string) (*account.VerifyResponse, error) SetPublicKey(accountId uint, publicKey string) error // AddDevice Add a device to the device system. AddDevice(accountId int64, ua string) (*device.CreateResponse, error) }
type Auths ¶
Click to show internal directories.
Click to hide internal directories.