Documentation ¶
Index ¶
- func CalculateRequestHash(r *Request, reqCert *certexp.CertificateExpressionRequestCertification) ([32]byte, error)
- func CalculateResponseHash(r *Response, respCert certexp.CertificateExpressionResponseCertification) ([32]byte, error)
- type Agent
- type CertificateHeader
- type ExpressionPath
- type HeaderField
- type Key
- type Request
- type Response
- type StreamingCallbackHttpResponse
- type StreamingCallbackToken
- type StreamingStrategy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateRequestHash ¶
func CalculateRequestHash(r *Request, reqCert *certexp.CertificateExpressionRequestCertification) ([32]byte, error)
func CalculateResponseHash ¶
func CalculateResponseHash(r *Response, respCert certexp.CertificateExpressionResponseCertification) ([32]byte, error)
Types ¶
type Agent ¶
type Agent struct { *agent.Agent // contains filtered or unexported fields }
func (*Agent) EnableLegacyMode ¶
func (a *Agent) EnableLegacyMode()
func (Agent) HttpRequestStreamingCallback ¶
func (a Agent) HttpRequestStreamingCallback(token StreamingCallbackToken) (**StreamingCallbackHttpResponse, error)
type CertificateHeader ¶
type CertificateHeader struct { Certificate certification.Certificate Tree hashtree.HashTree Version int ExprPath []hashtree.Label }
func ParseCertificateHeader ¶
func ParseCertificateHeader(header string) (*CertificateHeader, error)
type ExpressionPath ¶
func ParseExpressionPath ¶
func ParseExpressionPath(path []hashtree.Label) (*ExpressionPath, error)
func (ExpressionPath) GetPath ¶
func (e ExpressionPath) GetPath() []hashtree.Label
type HeaderField ¶
type Request ¶
type Request struct { Method string `ic:"method"` Url string `ic:"url"` Headers []HeaderField `ic:"headers"` Body []byte `ic:"body"` CertificateVersion *uint16 `ic:"certificate_version,omitempty"` }
type Response ¶
type Response struct { StatusCode uint16 `ic:"status_code"` Headers []HeaderField `ic:"headers"` Body []byte `ic:"body"` Upgrade *bool `ic:"upgrade,omitempty"` StreamingStrategy *StreamingStrategy `ic:"streaming_strategy,omitempty"` }
type StreamingCallbackHttpResponse ¶
type StreamingCallbackHttpResponse struct { Body []byte `ic:"body"` Token *StreamingCallbackToken `ic:"token,omitempty"` }
type StreamingCallbackToken ¶
type StreamingStrategy ¶
type StreamingStrategy struct { Callback *struct { Callback struct { } `ic:"callback"` Token StreamingCallbackToken `ic:"token"` } `ic:"Callback,variant"` }
Click to show internal directories.
Click to hide internal directories.