aboutsummaryrefslogtreecommitdiff
path: root/lib/const.go
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2017-01-05 23:28:26 +0000
committerNiall Sheridan <nsheridan@gmail.com>2017-01-05 23:28:26 +0000
commit9e9a7d50970f1424245d88169de82988fd57e112 (patch)
tree25aca2f5e18fe3ff454af34d5d75f8c5204d81fb /lib/const.go
parent8066efd45861e7c024fc1daabc6d002266a527e7 (diff)
Move GetPublicKey to the shared `lib` package
Diffstat (limited to 'lib/const.go')
-rw-r--r--lib/const.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/const.go b/lib/const.go
deleted file mode 100644
index 1ba2749..0000000
--- a/lib/const.go
+++ /dev/null
@@ -1,17 +0,0 @@
-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"`
-}