settings

package
v1.0.202409242236 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvSettingsSource

type EnvSettingsSource[t any] struct {
	// contains filtered or unexported fields
}

func NewEnvSettingsSource

func NewEnvSettingsSource[t any](prefix string, fileName string) *EnvSettingsSource[t]

func (*EnvSettingsSource[t]) GetItem

func (f *EnvSettingsSource[t]) GetItem(key string) string

func (*EnvSettingsSource[t]) GetSettings

func (f *EnvSettingsSource[t]) GetSettings() *t

func (*EnvSettingsSource[t]) InitSettings

func (f *EnvSettingsSource[t]) InitSettings() error

type Source

type Source[t any] interface {
	InitSettings() error
	GetSettings() *t
	GetItem(key string) string
}

Jump to

Keyboard shortcuts

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