aboutsummaryrefslogtreecommitdiff
path: root/lib/proto.go
blob: f3d7115605265e9a789d72a911f393c4ab7a3a2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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.
type SignResponse struct {
	Status   string `json:"status"`   // Status will be "ok" or "error".
	Response string `json:"response"` // Response will contain either the signed certificate or the error message.
}