Documentation
¶
Overview ¶
Package directhttps provides the bounded HTTPS first-contact fallback. It is a carrier only: E2EE session authority and admission remain in the daemon.
Index ¶
Constants ¶
View Source
const ( RequestSchema = "tos.messaging.https-delivery.v1" AckSchema = "tos.messaging.https-delivery-ack.v1" IngressPath = "/v1/tos-messenger/messages" MaxBodyBytes = 2 << 20 MaxAckBytes = 64 << 10 MaxClockSkew = 5 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(config HandlerConfig) (http.Handler, error)
Types ¶
type Ack ¶
type Ack struct {
Schema string `json:"schema"`
EventID string `json:"event_id"`
SessionID string `json:"session_id"`
RecipientEndpointID string `json:"recipient_messaging_endpoint_id"`
RecipientDeviceID string `json:"recipient_device_id"`
CiphertextDigest string `json:"ciphertext_digest"`
Outcome string `json:"outcome"`
Code fault.Code `json:"code,omitempty"`
AcceptedAtUnix uint64 `json:"accepted_at_unix"`
SignatureHex string `json:"endpoint_signature_hex"`
}
type HandlerConfig ¶
type ReceiveResult ¶
Click to show internal directories.
Click to hide internal directories.