Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddConfiguration ¶
func AddConfiguration(sc *dependencyinjection.ServiceCollection, objType interface{})
AddConfiguration 注入函数 用户API
func Configure ¶
func Configure[T any](services *dependencyinjection.ServiceCollection)
func LocalConfig ¶
func LocalConfig(configPath string) *abstractions.Configuration
Types ¶
type OptionsSnapshot ¶
type OptionsSnapshot[T any] struct { // contains filtered or unexported fields }
func (OptionsSnapshot[T]) CurrentValue ¶
func (options OptionsSnapshot[T]) CurrentValue() T
Click to show internal directories.
Click to hide internal directories.