This repository has been archived on 2023-02-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
flamenco-manager/websetup/documents.go
T
Sybren A. Stüvel 64c8ede727 Changed project file layout to be standard golang project layout
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.
2017-10-03 12:01:06 +02:00

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"`
}