context

package
v3.35.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Copyright 2022 Molecula Corp (DBA FeatureBase). All rights reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OriginalIP

func OriginalIP(ctx context.Context) (originalIP string, ok bool)

OriginalIP gets the original IP from the context.

func RequestID

func RequestID(ctx context.Context) (userID string, ok bool)

func UserID

func UserID(ctx context.Context) (userID string, ok bool)

func WithOriginalIP

func WithOriginalIP(ctx context.Context, originalIP string) context.Context

WithOriginalIP makes a new context with the originalIP in the context.

func WithRequestID

func WithRequestID(ctx context.Context, userID string) context.Context

func WithUserID

func WithUserID(ctx context.Context, userID string) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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