Versions in this module Expand all Collapse all v1 v1.1.0 May 21, 2018 Changes in this version + func DefaultTicket() string + func ReqContext(req *http.Request) netcontext.Context + func SetTestEnv() func() v1.0.0 Sep 29, 2016 Changes in this version + var ErrConcurrentTransaction = errors.New("internal: concurrent transaction") + var NamespaceMods = make(map[string]func(m proto.Message, namespace string)) + func AppID(c netcontext.Context) string + func BackgroundContext() netcontext.Context + func Call(ctx netcontext.Context, service, method string, in, out proto.Message) error + func ContextForTesting(req *http.Request) netcontext.Context + func Datacenter(ctx netcontext.Context) string + func DefaultVersionHostname(ctx netcontext.Context) string + func FullyQualifiedAppID(ctx netcontext.Context) string + func IncomingHeaders(ctx netcontext.Context) http.Header + func InstanceID() string + func IsDevAppServer() bool + func Logf(ctx netcontext.Context, level int64, format string, args ...interface{}) + func Main() + func ModuleName(_ netcontext.Context) string + func NamespaceFromContext(ctx netcontext.Context) string + func NamespacedContext(ctx netcontext.Context, namespace string) netcontext.Context + func RegisterErrorCodeMap(service string, m map[int32]string) + func RegisterTestRequest(req *http.Request, apiURL *url.URL, ...) func() + func RegisterTimeoutErrorCode(service string, code int32) + func RegisterTransactionSetter(f interface{}) + func RequestID(ctx netcontext.Context) string + func RunTransactionOnce(c netcontext.Context, f func(netcontext.Context) error, xg bool) error + func ServerSoftware() string + func VersionID(_ netcontext.Context) string + func WithAppIDOverride(ctx netcontext.Context, appID string) netcontext.Context + func WithCallOverride(ctx netcontext.Context, f CallOverrideFunc) netcontext.Context + func WithContext(parent netcontext.Context, req *http.Request) netcontext.Context + func WithLogOverride(ctx netcontext.Context, f logOverrideFunc) netcontext.Context + type APIError struct + Code int32 + Detail string + Service string + func (e *APIError) Error() string + func (e *APIError) IsTimeout() bool + type CallError struct + Code int32 + Detail string + Timeout bool + func (e *CallError) Error() string + func (e *CallError) IsTimeout() bool + type CallOverrideFunc func(ctx netcontext.Context, service, method string, in, out proto.Message) error