Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNatsSubscribeVarsToReplacer ¶
func AddNatsSubscribeVarsToReplacer(repl *caddy.Replacer, msg *nats.Msg)
func NatsMsgForHttpRequest ¶
NatsMsgForHttpRequest creates a nats.Msg from an existing http.Request: the HTTP Request Body is transferred to the NATS message Data, and the headers are transferred as well.
Three special headers are added for the request method, URL path, and raw query.
Types ¶
type ExtraNatsMsgHeaders ¶
func ExtraNatsMsgHeadersFromContext ¶
func ExtraNatsMsgHeadersFromContext(ctx context.Context) ExtraNatsMsgHeaders
func (ExtraNatsMsgHeaders) StoreInCtx ¶
func (h ExtraNatsMsgHeaders) StoreInCtx(ctx context.Context) context.Context
type NatsHandler ¶
type NoopResponseWriter ¶
type NoopResponseWriter struct {
// contains filtered or unexported fields
}
func (NoopResponseWriter) Header ¶
func (n NoopResponseWriter) Header() http.Header
func (NoopResponseWriter) WriteHeader ¶
func (NoopResponseWriter) WriteHeader(statusCode int)
Click to show internal directories.
Click to hide internal directories.