Documentation
¶
Overview ¶
Package meta is a call's metadata: string pairs the product attaches to a hook call that travel with it — through the binding's run to every activity the run calls, on either runtime and either transport. An activity handler reads them from its context, and a hook it calls in turn carries them on. What they mean is the product's: a user, a tenant, a locale. Backplane does not read them.
ctx = meta.With(ctx, "user", userID, "tenant", tenant) out, err := ref.Call(ctx, in) // in an activity handler user := meta.Get(ctx, "user")
They are as trustworthy as the service that set them: backplane takes a hook call only from a service holding the internal secret and calls activities with it.
Index ¶
- func From(ctx context.Context) map[string]string
- func Get(ctx context.Context, k string) string
- func Merge(ctx context.Context, values map[string]string) context.Context
- func Replace(ctx context.Context, md map[string]string) context.Context
- func With(ctx context.Context, kv ...string) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.