Skip to content
Snippets Groups Projects
Select Git revision
4 results Searching

proto.go

Blame
    • Niall Sheridan's avatar
      87ae7c73
      Add version string · 87ae7c73
      Niall Sheridan authored
      Add `lib.Version` to get updated at build time.
      Add --version flags to cashier and cashierd
      Send client version in the signing request
      Send server version in http response headers and in signing response
      Set version at build time
      87ae7c73
      History
      Add version string
      Niall Sheridan authored
      Add `lib.Version` to get updated at build time.
      Add --version flags to cashier and cashierd
      Send client version in the signing request
      Send server version in http response headers and in signing response
      Set version at build time
    proto.go 561 B
    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"`
    	Message    string    `json:"message"`
    	Version    string    `json:"version"`
    }
    
    // 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.
    	Version  string `json:"version"`
    }