Documentation ¶ Index ¶ func FromContext(ctx context.Context) (net.IP, bool) func FromRequest(req *http.Request) (net.IP, error) func NewContext(ctx context.Context, userIp net.IP) context.Context Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func FromContext ¶ func FromContext(ctx context.Context) (net.IP, bool) func FromRequest ¶ func FromRequest(req *http.Request) (net.IP, error) func NewContext ¶ func NewContext(ctx context.Context, userIp net.IP) context.Context Types ¶ This section is empty. Source Files ¶ View all Source files userip.go Click to show internal directories. Click to hide internal directories.