app

package
v0.0.0-...-c463dc4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func Application

func Application() *App

func (*App) Register

func (app *App) Register(serviceName string, ctor interface{}, ifacePtr interface{})

func (*App) Services

func (app *App) Services() map[string]ServiceRegistry

type Container

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

func GetContainer

func GetContainer() Container

func (Container) Invoke

func (c Container) Invoke(f interface{}) ([]reflect.Value, error)

func (Container) Register

func (c Container) Register(val interface{}, ifacePtr interface{})

type ServiceRegistry

type ServiceRegistry struct {
	Ctor     interface{}
	IfacePtr interface{}
}

Jump to

Keyboard shortcuts

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