Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SignRequest ¶
func UnmarshalSigned ¶
Types ¶
type ContainsClientID ¶
type ContainsClientID interface {
GetClientID() string
}
type SignedRequest ¶
type SignedRequest[PayloadType ContainsClientID] struct { // The data needed to cancel a running job on the network Payload PayloadType `json:"payload" validate:"required"` // A base64-encoded signature of the data, signed by the client: ClientSignature string `json:"signature" validate:"required"` // The base64-encoded public key of the client: ClientPublicKey string `json:"client_public_key" validate:"required"` }
A strongly-typed signed request. We use this type only in our documentation to allow clients to understand the correct type of the payload.
Click to show internal directories.
Click to hide internal directories.