context

package
v0.0.0-...-bc6c5c1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kontext

type Kontext struct {
	Context gocontext.Context
	Logger  *zap.Logger
}

func Background

func Background(env string) Kontext

func Request

func Request(req *http.Request) Kontext

func WithCancel

func WithCancel(k Kontext) (Kontext, func())

func WithTimeout

func WithTimeout(k Kontext, d time.Duration) (Kontext, func())

func WithValue

func WithValue(k Kontext, key, val interface{}) Kontext

func (Kontext) Debug

func (k Kontext) Debug(msg string, fields ...zapcore.Field)

func (Kontext) Info

func (k Kontext) Info(msg string, fields ...zapcore.Field)

func (Kontext) Value

func (k Kontext) Value(key interface{}) interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL