Documentation ¶
Overview ¶
Access Nginx APIs.
Index ¶
- type Nginx
- func (n Nginx) GetCtxAny(k string) (interface{}, error)
- func (n Nginx) GetCtxFloat(k string) (float64, error)
- func (n Nginx) GetCtxInt(k string) (int, error)
- func (n Nginx) GetCtxString(k string) (string, error)
- func (n Nginx) GetSubsystem() (string, error)
- func (n Nginx) GetTLS1VersionStr() (string, error)
- func (n Nginx) GetVar(k string) (string, error)
- func (n Nginx) ReqStartTime() (float64, error)
- func (n Nginx) SetCtx(k string, v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Nginx ¶
Holds this module's functions. Accessible as `kong.Nginx`
func (Nginx) GetCtxAny ¶
kong.Nginx.GetCtxAny() returns a value from the `ngx.ctx` request context table.
func (Nginx) GetCtxFloat ¶
kong.Nginx.GetCtxFloat() returns a float value from the `ngx.ctx` request context table.
func (Nginx) GetCtxInt ¶ added in v0.5.0
kong.Nginx.GetCtxInt() returns an integer value from the `ngx.ctx` request context table.
func (Nginx) GetCtxString ¶
kong.Nginx.GetCtxString() returns a string value from the `ngx.ctx` request context table.
func (Nginx) GetSubsystem ¶ added in v0.3.1
kong.Nginx.GetSubsystem() returns the current Nginx subsystem this function is called from: “http” or “stream”.
func (Nginx) GetTLS1VersionStr ¶
func (Nginx) ReqStartTime ¶
kong.Nginx.ReqStartTime() returns the curent request's start time as a floating-point number of seconds. Equivalent to `ngx.req.start_time()`