64c8ede727
This means a bit more adjustment on the part of developers that aren't familiar with how Go does things, but it makes it more consistent and easier to work with when on multiple Go projects.
32 lines
769 B
Go
32 lines
769 B
Go
package websetup
|
|
|
|
type keyExchangeRequest struct {
|
|
KeyHex string `json:"key"`
|
|
}
|
|
type keyExchangeResponse struct {
|
|
Identifier string `json:"identifier"`
|
|
}
|
|
|
|
type linkRequiredResponse struct {
|
|
Required bool `json:"link_required"`
|
|
ServerURL string `json:"server_url,omitempty"`
|
|
}
|
|
type linkStartResponse struct {
|
|
Location string `json:"location"`
|
|
}
|
|
|
|
type authTokenResetRequest struct {
|
|
ManagerID string `json:"manager_id"`
|
|
Identifier string `json:"identifier"`
|
|
Padding string `json:"padding"`
|
|
HMAC string `json:"hmac"`
|
|
}
|
|
type authTokenResetResponse struct {
|
|
Token string `json:"token"`
|
|
ExpireTime string `json:"expire_time"` // ignored for now, so left as string and not parsed.
|
|
}
|
|
|
|
type errorMessage struct {
|
|
Message string `json:"_message"`
|
|
}
|