apix

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package apix provide API-related helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx Ctx) (remoteIP string)

FromContext returns values describing request stored in ctx, if any.

Types

type Ctx

type Ctx = context.Context

func NewContextWithRemoteIP

func NewContextWithRemoteIP(ctx Ctx, remoteIP string) Ctx

NewContextWithRemoteIP creates and returns new context containing given remoteIP.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL