clienturlctx

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package clienturlctx allows the setting of a client url in the context of the request

Index

Constants

View Source
const (

	// UnixURLScheme - scheme for unix urls
	UnixURLScheme = "unix"
)

Variables

This section is empty.

Functions

func ClientURL

func ClientURL(ctx context.Context) *url.URL

ClientURL -

Returns the ClientURL

func ClientURLs added in v1.5.0

func ClientURLs(ctx context.Context) []url.URL

ClientURLs -

Returns list of URLs

func WithClientURL

func WithClientURL(parent context.Context, clientURL *url.URL) context.Context

WithClientURL -

Wraps 'parent' in a new Context that has the ClientURL

func WithClientURLs added in v1.5.0

func WithClientURLs(parent context.Context, urls []url.URL) context.Context

WithClientURLs -

Wraps 'parent' in a new Context that has list of passed URLs

Types

This section is empty.

Jump to

Keyboard shortcuts

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