dev

package
v0.0.0-...-27647ab Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: BSD-3-Clause Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind() inj.Bindings

func Binders

func Binders() *inj.BinderRegistry

func DefaultTimeout

func DefaultTimeout() (context.Context, func())

func DoTestMain

func DoTestMain(m *testing.M, init func())

func Inject

func Inject(fn any) []any

func InjectOne

func InjectOne(fn any) any

func Injector

func Injector() *inj.Injector

func Provide

func Provide(o any) any

func ProvideArgs

func ProvideArgs(fn any) []any

func ProvideAs

func ProvideAs[T any](tags ...any) T

func Register

func Register(bs ...inj.Binder) *inj.BinderRegistry

func SetupInjector

func SetupInjector() (*inj.Injector, func() error)

func TryProvide

func TryProvide(o any) (any, bool)

func WithDefaultTimeout

func WithDefaultTimeout(ctx context.Context) (context.Context, func())

Types

type Config

type Config struct {
	DefaultTimeout time.Duration
}

func DefaultConfig

func DefaultConfig() Config

Directories

Path Synopsis
cmd
list2
TODO:
TODO:

Jump to

Keyboard shortcuts

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