accp

package
v0.0.0-...-d879545 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetByName

func GetByName(ctx context.Context, name string) interface{}

func RegistrateByName

func RegistrateByName(ctx context.Context, name string, val interface{}) context.Context

Types

type IProvider

type IProvider interface {
	Start() error
	Shutdown() error
}

type Item

type Item string
const (
	ProvidersItem Item = "providers"
)

type Providers

type Providers struct {
	sync.Map
}

func Create

func Create(ctx context.Context) (context.Context, *Providers)

func Get

func Get(ctx context.Context) *Providers

Jump to

Keyboard shortcuts

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