proto

package
v0.0.0-...-9fce2f1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(name string) interface{}

func Put

func Put(name string, v interface{})

func Register

func Register(name string, alloc Allocator)

func RegisterSeries

func RegisterSeries(series map[string]Allocator)

Types

type Allocator

type Allocator func() interface{}

type Pool

type Pool struct {
	sync.RWMutex
	// contains filtered or unexported fields
}
var DefaultPool Pool

func (*Pool) Get

func (p *Pool) Get(name string) interface{}

func (*Pool) Put

func (p *Pool) Put(name string, v interface{})

func (*Pool) Register

func (p *Pool) Register(name string, alloc Allocator)

func (*Pool) RegisterSeries

func (p *Pool) RegisterSeries(series map[string]Allocator)

Jump to

Keyboard shortcuts

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