blob: 1ba274931d7ffa6ea59b67d8683f3c3d8b4e925c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package lib
import "time"
// SignRequest represents a signing request sent to the server.
type SignRequest struct {
Key string `json:"key"`
ValidUntil time.Time `json:"valid_until"`
}
// SignResponse is sent by the server.
// `Status' is "ok" or "error".
// `Response' contains a signed certificate or an error message.
type SignResponse struct {
Status string `json:"status"`
Response string `json:"response"`
}
|