config

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFromData

func LoadFromData[C Config](data []byte) (*C, error)

Loads the application config from a byte slice.

func LoadFromFile

func LoadFromFile[C Config](path string) (*C, error)

Loads the application config from a file at the specified path.

func LoadFromS3

func LoadFromS3[C Config](client *s3.Client, bucket, key string) (*C, error)

Loads the application config from an S3 bucket.

Types

type Config

type Config interface {
	Validate() error
}

Jump to

Keyboard shortcuts

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