route/vendor/github.com/twitchtv/twirp/internal/contextkeys/keys.go

16 lines
357 B
Go
Raw Normal View History

2018-01-21 15:22:13 +00:00
// Package contextkeys stores the keys to the context accessor
// functions, letting generated code safely set values in contexts
// without exposing the setters to the outside world.
package contextkeys
type contextKey int
const (
MethodNameKey contextKey = 1 + iota
ServiceNameKey
PackageNameKey
StatusCodeKey
RequestHeaderKey
ResponseWriterKey
)