aboutsummaryrefslogtreecommitdiff
path: root/resource.go
blob: b38cbca28e110b54ffa569947b315af1f7871e8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package acme

type ResourceValue interface {
	Value() string
}

type NewReg struct {
	Contact []string `json:"contact"`
}

type RecoverReg struct{}
type NewAuthz struct{}
type NewCert struct{}
type RevokeCert struct{}
type Register struct{}
type Authz struct{}
type Challenge struct{}
type Cert struct{}

func (NewReg) Value() string     { return "new-reg" }
func (RecoverReg) Value() string { return "recover-reg" }
func (NewAuthz) Value() string   { return "new-authz" }
func (NewCert) Value() string    { return "new-cert" }
func (RevokeCert) Value() string { return "revoke-cert" }
func (Register) Value() string   { return "reg" }
func (Authz) Value() string      { return "authz" }
func (Challenge) Value() string  { return "challenge" }
func (Cert) Value() string       { return "cert" }