| 1 |
package expctxkeys |
| 2 |
|
| 3 |
// EnableSnapshotterKey is a context key to indicate that snapshotting should be enabled. |
| 4 |
// The context.Context passed to a exported function invocation should have this key set |
| 5 |
// to a non-nil value, and host functions will be able to retrieve it using SnapshotterKey. |
| 6 |
type EnableSnapshotterKey struct{} |
| 7 |
|
| 8 |
// SnapshotterKey is a context key to access a Snapshotter from a host function. |
| 9 |
// It is only present if EnableSnapshotter was set in the function invocation context. |
| 10 |
type SnapshotterKey struct{} |