pomerium/internal/contextkeys/contextkeys.go
2021-05-03 12:28:11 -04:00

15 lines
379 B
Go

// Package contextkeys defines common context keys shared between packages
package contextkeys
type contextKey int
const (
// DatabrokerConfigVersion identifies the uint64 databroker version of the config
DatabrokerConfigVersion contextKey = iota
)
func (x contextKey) String() string {
return map[contextKey]string{
DatabrokerConfigVersion: "db_config_version",
}[x]
}