config

package
v0.0.0-...-26077b1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultConfigFile = "config.yaml"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Grpc       *grpc.GrpcConfig `yaml:"grpc"`
	BucketName string           `yaml:"bucket_name"`
	S3Region   string           `yaml:"region"`
	DBURL      string           `yaml:"db"`
}

func LoadConfig

func LoadConfig(log *jsonlog.Logger, ctx context.Context) (*Config, error)

LoadConfig loads the configuration from a YAML file.

Jump to

Keyboard shortcuts

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