Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadAttachment ¶
Types ¶
type Attachment ¶
type DecryptedBody ¶
type DecryptedBody struct { Data struct { FormID string `json:"formId"` SubmissionID string `json:"submissionId"` DecryptedContent []Field `json:"decryptedContent"` Version int `json:"version"` Created time.Time `json:"created"` } `json:"data"` }
DecryptedBody
func Decrypt ¶
func Decrypt(encryptedBody EncryptedBody) (*DecryptedBody, error)
type EncryptedBody ¶
type EncryptedBody struct { Data struct { FormID string `json:"formId"` SubmissionID string `json:"submissionId"` EncryptedContent string `json:"encryptedContent"` Version int `json:"version"` Created time.Time `json:"created"` AttachmentDownloadUrls map[string]string `json:"attachmentDownloadUrls"` } `json:"data"` }
EncryptedBody is the JSON body sent to the /submissions endpoint from FormSG.
Click to show internal directories.
Click to hide internal directories.