forked from TrueCloudLab/lego
Merge pull request #26 from zakjan/regr-json-tags
Add JSON tags to RegistrationResource as used in official client
This commit is contained in:
commit
54df9812c7
1 changed files with 4 additions and 4 deletions
|
@ -45,10 +45,10 @@ type Registration struct {
|
||||||
// RegistrationResource represents all important informations about a registration
|
// RegistrationResource represents all important informations about a registration
|
||||||
// of which the client needs to keep track itself.
|
// of which the client needs to keep track itself.
|
||||||
type RegistrationResource struct {
|
type RegistrationResource struct {
|
||||||
Body Registration
|
Body Registration `json:"body,omitempty"`
|
||||||
URI string
|
URI string `json:"uri,omitempty"`
|
||||||
NewAuthzURL string
|
NewAuthzURL string `json:"new_authzr_uri,omitempty"`
|
||||||
TosURL string
|
TosURL string `json:"terms_of_service,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type authorizationResource struct {
|
type authorizationResource struct {
|
||||||
|
|
Loading…
Reference in a new issue