configuration

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 4 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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