cosmos-sdk/core/context/context.go

20 lines
439 B
Go

package context
type contextKey uint8
type (
execModeKey struct{}
cometInfoKey struct{}
environmentKey struct{}
)
var (
ExecModeKey = execModeKey{}
CometInfoKey = cometInfoKey{}
// EnvironmentContextKey is the context key for the environment.
// A caller should not assume the environment is available in each context.
// ref: https://github.com/cosmos/cosmos-sdk/issues/19640
EnvironmentContextKey = environmentKey{}
)