Documentation ¶
Index ¶
- Variables
- func GetBrokerKey(ctx context.Context) (*config.CellTenantKey, error)
- func GetTargetKey(ctx context.Context) (*config.TargetKey, error)
- func WithBrokerKey(ctx context.Context, key *config.CellTenantKey) context.Context
- func WithTargetKey(ctx context.Context, key *config.TargetKey) context.Context
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTargetKeyNotPresent = errors.New("target key not present in the context") ErrBrokerKeyNotPresent = errors.New("broker key not present in the context") )
Functions ¶
func GetBrokerKey ¶
func GetBrokerKey(ctx context.Context) (*config.CellTenantKey, error)
GetBrokerKey gets the broker key from the context.
func GetTargetKey ¶ added in v0.15.0
GetTargetKey gets a target key from the context.
func WithBrokerKey ¶
WithBrokerKey sets a broker key in the context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.