config

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	YAML uint8 = 1 << iota
	JSON
	TOML
	XML
	Silent
)

Variables

This section is empty.

Functions

func Parse added in v0.5.2

func Parse[T any](
	ctx context.Context,
	flags flag,
	sources ...Source,
) (T, error)

Types

type Crontab added in v0.8.0

type Crontab = crontab.Config

type GRPC added in v0.4.0

type GRPC = grpc.Config

type Graceful added in v0.4.0

type Graceful = graceful.Config

type HTTP added in v0.4.0

type HTTP = http.Config

type Logger added in v0.1.3

type Logger = log.Config

type Parser added in v0.5.2

type Parser func(context.Context, []byte, any) error

type ParserFlags added in v0.5.2

type ParserFlags = bitset.BitSet[flag]

type Probes added in v0.5.0

type Probes = probes.Config

type SQL added in v0.6.0

type SQL = sql.Config

type Source

type Source func(context.Context) ([]byte, error)

func FromBytes added in v0.5.2

func FromBytes(content []byte) Source

func FromFile added in v0.5.2

func FromFile(filepath string, flags ...flag) Source

func FromVault added in v0.5.2

func FromVault(
	_ *vault.Client,
	_ string,
) Source

type Telegram added in v0.7.1

type Telegram = telegram.Config

type Trace added in v0.6.0

type Trace = trace.Config

type Vault

type Vault = vault.Config

Jump to

Keyboard shortcuts

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