Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
Enabled bool
}
Options struct which represents realIp plugin from chi options.
func NewOptions ¶
NewOptions returns options from config file or environment vars.
func NewOptionsWithPath ¶
NewOptionsWithPath returns options from config path.
type RealIP ¶
type RealIP struct {
// contains filtered or unexported fields
}
RealIP struct which represents a realIP plugin
func NewRealIPWithConfigPath ¶
NewRealIPWithConfigPath returns realIP plugin with options from config path.
func NewRealIPWithOptions ¶
NewRealIPWithOptions returns realIP plugin with options.
Click to show internal directories.
Click to hide internal directories.