singleton

package
v0.0.0-...-5c7ffcf Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Holder

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

func NewHolder

func NewHolder(new func() (interface{}, error), destroy func(interface{})) *Holder

func (*Holder) Acquire

func (s *Holder) Acquire() (interface{}, error)

func (*Holder) Release

func (s *Holder) Release()

Jump to

Keyboard shortcuts

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