scope

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enter

func Enter(ctx context.Context, name string) context.Context

Types

type Scope

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

func Retrieve

func Retrieve(ctx context.Context, name string) *Scope

func (*Scope) Close

func (s *Scope) Close() error

func (*Scope) Ensure

func (s *Scope) Ensure(t reflect.Type, fv func() reflect.Value) reflect.Value

func (*Scope) Get

func (s *Scope) Get(t reflect.Type) (reflect.Value, bool)

func (*Scope) Insert

func (s *Scope) Insert(t reflect.Type, v reflect.Value)

Jump to

Keyboard shortcuts

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