core

package
v1.1.14 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2020 License: MIT Imports: 4 Imported by: 8

Documentation

Index

Constants

View Source
const SdkVersion = "1.1.3"

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

func WarpContext

func WarpContext(c context.Context) *Context

Deprecated, please use `WrapContext`

func WrapContext added in v1.1.8

func WrapContext(c context.Context) *Context

func (*Context) Deadline

func (c *Context) Deadline() (deadline time.Time, ok bool)

func (*Context) Done

func (c *Context) Done() <-chan struct{}

func (*Context) Err

func (c *Context) Err() error

func (*Context) Get

func (c *Context) Get(key string) (value interface{}, exists bool)

Get returns the value for the given key, ie: (value, true). If the value does not exists it returns (nil, false)

func (*Context) GetHTTPStatusCode

func (c *Context) GetHTTPStatusCode() int

func (*Context) GetRequestID

func (c *Context) GetRequestID() string

func (*Context) Set

func (c *Context) Set(key string, value interface{})

func (*Context) SetRequestID added in v1.1.7

func (c *Context) SetRequestID(logID, requestID string)

func (*Context) Value

func (c *Context) Value(key interface{}) interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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