globals

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 4 Imported by: 16

Documentation

Index

Constants

View Source
const (
	CONTEXTVALUE_REGION = "region"
)

Variables

This section is empty.

Functions

func GetContextConfig

func GetContextConfig(ctx context.Context) *configV2.MultiRegionConfig

func GetContextRegion

func GetContextRegion(ctx context.Context) string

func GetContextStringValue

func GetContextStringValue(ctx context.Context, key string) string

func NewContextFromConfig added in v0.1.4

func NewContextFromConfig(mrc *configV2.MultiRegionConfig, timeout time.Duration) (ctx context.Context, cancelFunc context.CancelFunc, err error)

func NewContextWithConfig

func NewContextWithConfig(configFile string, timeout time.Duration) (ctx context.Context, cancelFunc context.CancelFunc, err error)

func SetContextRegion

func SetContextRegion(ctx context.Context, value string) context.Context

func SetContextStringValue

func SetContextStringValue(ctx context.Context, key, value string) context.Context

Types

type ContextValueType

type ContextValueType string

Jump to

Keyboard shortcuts

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