Documentation ¶
Index ¶
- Constants
- func GetContextConfig(ctx context.Context) *configV2.MultiRegionConfig
- func GetContextRegion(ctx context.Context) string
- func GetContextStringValue(ctx context.Context, key string) string
- func NewContextFromConfig(mrc *configV2.MultiRegionConfig, timeout time.Duration) (ctx context.Context, cancelFunc context.CancelFunc, err error)
- func NewContextWithConfig(configFile string, timeout time.Duration) (ctx context.Context, cancelFunc context.CancelFunc, err error)
- func SetContextRegion(ctx context.Context, value string) context.Context
- func SetContextStringValue(ctx context.Context, key, value string) context.Context
- type ContextValueType
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 NewContextFromConfig ¶ added in v0.1.4
func NewContextFromConfig(mrc *configV2.MultiRegionConfig, timeout time.Duration) (ctx context.Context, cancelFunc context.CancelFunc, err error)
func NewContextWithConfig ¶
Types ¶
type ContextValueType ¶
type ContextValueType string
Click to show internal directories.
Click to hide internal directories.