scope_manager

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del added in v0.12.12

func Del(name string)

func Set added in v0.12.12

func Set(name string, value interface{}, ss ...string)

Types

type IProxy

type IProxy[T any] interface {
	Set(values ...T)
	IProxyOutput[T]
}

type IProxyOutput

type IProxyOutput[T any] interface {
	List() []T
}

func Auto added in v0.12.12

func Auto[T any](requireId string, scope string) IProxyOutput[T]

func Get added in v0.12.12

func Get[T any](scopeName string) IProxyOutput[T]

func NewProxy

func NewProxy[T any](t ...T) IProxyOutput[T]

type Proxy

type Proxy[T any] struct {
	// contains filtered or unexported fields
}

func (*Proxy[T]) List

func (p *Proxy[T]) List() []T

func (*Proxy[T]) Set

func (p *Proxy[T]) Set(values ...T)

type StaticProxy added in v0.12.12

type StaticProxy[T any] struct {
	// contains filtered or unexported fields
}

func (*StaticProxy[T]) List added in v0.12.12

func (s *StaticProxy[T]) List() []T

Jump to

Keyboard shortcuts

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