ioc

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 11 Imported by: 3

README

kid-ioc

A go runtime IoC framework

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBeansByInterface

func GetBeansByInterface(a interface{}) []*meta.Meta

func GetBeansByInterfaceType

func GetBeansByInterfaceType(typ reflect.Type) []*meta.Meta

func GetComponentByName

func GetComponentByName(name string) *meta.Meta

func GetComponents

func GetComponents() []*meta.Meta

func Register

func Register(cs ...interface{})

func RemoveComponents

func RemoveComponents(name string)

func Run

func Run(ops ...SettingOption) error

func RunDebug

func RunDebug(ops ...SettingOption) error

func RunTest

func RunTest(t *testing.T, ops ...SettingOption)

Types

type SettingOption

type SettingOption func(s *setting)

func SetComponents

func SetComponents(c ...interface{}) SettingOption

func SetConfigPath

func SetConfigPath(path string) SettingOption

func SetConfigSrc

func SetConfigSrc(src []byte, configType string) SettingOption

func SetConfigStructure

func SetConfigStructure(v any) SettingOption

Directories

Path Synopsis
cmd
kioc module
util

Jump to

Keyboard shortcuts

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