Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseStoreBodyToJetstream ¶
func ParseStoreBodyToJetstream(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error)
ParseStoreBodyToJetstream parses the store_body_to_jetstream directive. Syntax:
store_body_to_jetstream [<matcher>] [bucketName] { [ttl 5m] }
Types ¶
type StoreBodyToJetStream ¶
type StoreBodyToJetStream struct { Bucket string `json:"bucket,omitempty"` TTL time.Duration `json:"ttl,omitempty"` // in which NATS server should the request body be stored? ServerAlias string `json:"serverAlias,omitempty"` // contains filtered or unexported fields }
func (StoreBodyToJetStream) CaddyModule ¶
func (StoreBodyToJetStream) CaddyModule() caddy.ModuleInfo
func (*StoreBodyToJetStream) Provision ¶
func (sb *StoreBodyToJetStream) Provision(ctx caddy.Context) error
func (*StoreBodyToJetStream) ServeHTTP ¶
func (sb *StoreBodyToJetStream) ServeHTTP(writer http.ResponseWriter, request *http.Request, handler caddyhttp.Handler) error
Click to show internal directories.
Click to hide internal directories.