sctx

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2019 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 added in v1.9.0

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 added in v1.9.0

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