Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseRequestHandler ¶
func ParseRequestHandler(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error)
ParseRequestHandler parses the nats_request directive. Syntax:
nats_request [serverAlias] subject { [timeout 1s] }
Types ¶
type Request ¶
type Request struct { Subject string `json:"subject,omitempty"` Timeout time.Duration `json:"timeout,omitempty"` ServerAlias string `json:"serverAlias,omitempty"` // contains filtered or unexported fields }
func (Request) CaddyModule ¶
func (Request) CaddyModule() caddy.ModuleInfo
Click to show internal directories.
Click to hide internal directories.