Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DisableLogging bool
DisableLogging set up logging. default is false (logging)
View Source
var TrustedHeaderField string
TrustedHeaderField is a header field that developer trusted in their env. e.g. Upstream proxy server's special header that only server can setup need to avoid use common forgry-able header fields.
Functions ¶
func CIDR ¶
func CIDR(CIDRs string) gin.HandlerFunc
CIDR is a middleware that check given CIDR rules and return 403 Forbidden when user is not coming from allowed source. CIDRs accepts a list of CIDRs, separated by comma. (e.g. 127.0.0.1/32, ::1/128 )
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.