context

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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