context

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

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

func New

func New(L *lua.LState, global *Global, releasePool *libpool.ReleasePool, asyncPool *libpool.AsyncPool, logger *zap.Logger) *Context

func (*Context) AsyncPool

func (c *Context) AsyncPool() *libpool.AsyncPool

func (*Context) Enter

func (c *Context) Enter(name string, tagKeyValues ...string) *Context

func (*Context) Exit

func (c *Context) Exit()

func (*Context) Global

func (c *Context) Global() *Global

func (*Context) Logger

func (c *Context) Logger() *zap.Logger

func (*Context) ReleasePool

func (c *Context) ReleasePool() *libpool.ReleasePool

func (*Context) Scope

func (c *Context) Scope() string

func (*Context) ScopeName

func (c *Context) ScopeName() string

func (*Context) Tags

func (c *Context) Tags() map[string]string

type Global

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

func NewGlobal

func NewGlobal(reporter stat.Reporter) *Global

func (*Global) Report

func (g *Global) Report(stats ...*stat.Stat)

func (*Global) Unique

func (g *Global) Unique(name string, do func() interface{}) interface{}

Jump to

Keyboard shortcuts

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