sctx

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHost

func GetHost(ctx context.Context) string

GetHost gets the request host from the context

func GetTag

func GetTag(ctx context.Context) uint32

GetTag gets the tag unique identifier from the context

func SetHost

func SetHost(ctx context.Context, domain string) context.Context

SetHost sets the http request host in the context

func SetTag

func SetTag(ctx context.Context, tagId uint32) context.Context

SetTag sets the tag unique identifier in the context

Types

type HTTPRequestIDKey

type HTTPRequestIDKey struct{}

Jump to

Keyboard shortcuts

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