model

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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 Handshake

type Handshake struct {
	PublicKeyX string
	PublicKeyY string
}

ECC public key handshake (send/receive)

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) Write

func (r *ResponseRecorder) Write(b []byte) (int, error)

func (*ResponseRecorder) WriteHeader

func (r *ResponseRecorder) WriteHeader(statusCode int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL