config

package
v0.0.0-...-112638b Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: BSD-3-Clause-Clear Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DB      db.Config     `yaml:"db"`
	OPA     opa.Config    `yaml:"opa"`
	Server  server.Config `yaml:"server"`
	OpenTDF OpenTDFConfig `yaml:"services" mapstructure:"services"`
	Logger  logger.Config `yaml:"logger"`
}

func LoadConfig

func LoadConfig() (*Config, error)

Load config with viper.

type Error

type Error string
const (
	ErrLoadingConfig Error = "error loading config"
)

func (Error) Error

func (e Error) Error() string

type OpenTDFConfig

type OpenTDFConfig struct {
}

Jump to

Keyboard shortcuts

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