twirp: github.com/twitchtv/twirp/internal/contextkeys Index | Files

package contextkeys

import "github.com/twitchtv/twirp/internal/contextkeys"

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.

Index

Package Files

keys.go

Constants

const (
    MethodNameKey contextKey = 1 + iota
    ServiceNameKey
    PackageNameKey
    StatusCodeKey
    RequestHeaderKey
    ResponseWriterKey
)

Package contextkeys is imported by 8 packages. Updated 2018-01-29. Refresh now. Tools for package owners.