Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncryptedMessage ¶
type EncryptedMessage struct {
Rx string `json:"rx"` // Ephemeral public key R.X
Ry string `json:"ry"` // Ephemeral public key R.Y
Ciphertext string `json:"ciphertext"` // Encrypted message
}
EncryptedMessage contains the ephemeral public key R and encrypted data
type ResponseRecorder ¶
type ResponseRecorder struct {
// contains filtered or unexported fields
}
ResponseRecorder captures the response body and headers
func NewResponseRecorder ¶
func NewResponseRecorder() *ResponseRecorder
func (*ResponseRecorder) BodyBytes ¶
func (r *ResponseRecorder) BodyBytes() []byte
func (*ResponseRecorder) Header ¶
func (r *ResponseRecorder) Header() http.Header
func (*ResponseRecorder) WriteHeader ¶
func (r *ResponseRecorder) WriteHeader(statusCode int)
Click to show internal directories.
Click to hide internal directories.