Documentation ¶
Index ¶
- func EncodeResponse(code string, status string, data interface{}, w http.ResponseWriter, ...) error
- func ParseForm(body string, form HTTPForm) error
- func ReadAll(r io.ReadCloser) (string, error)
- func VerifyAndDecrypt(request *Request, recipientPrivateKeyPem string, ...) (string, string, error)
- type HTTPForm
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeResponse ¶
func EncodeResponse(code string, status string, data interface{}, w http.ResponseWriter, fail2banData *utils.Fail2BanData) error
func VerifyAndDecrypt ¶
func VerifyAndDecrypt(request *Request, recipientPrivateKeyPem string, cryptoStorage *cryptoutils.CryptoStorage) (string, string, error)
Types ¶
type Request ¶
type Request struct { Response string `json:"response"` Signature string `json:"signature"` NonceResponse string `json:"nonceResponse"` ID string `json:"id"` IDSignature string `json:"idSignature"` NonceID string `json:"nonceID"` Key string `json:"key"` PublicKey string `json:"publicKey"` }
func SignAndEncryptResponse ¶
func (*Request) InputValidation ¶
Click to show internal directories.
Click to hide internal directories.