config

package
v0.0.0-...-fad18c3 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 8 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 {
	HTTP                    Endpoint          `yaml:"http"`
	RequestAggregationDelay time.Duration     `yaml:"request_aggregation_delay"`
	Provider                string            `yaml:"provider,omitempty"`
	Engine                  string            `yaml:"engine,omitempty"`
	PageSize                *int              `yaml:"page_size,omitempty"`
	SSL                     *SSL              `yaml:"ssl,omitempty"`
	CredsPath               *string           `yaml:"credentials_path,omitempty"`
	FwdSvcURL               *string           `yaml:"forward_service_url,omitempty"`
	Env                     map[string]string `yaml:"env"`

	// derived
	Credentials map[string]string
}

func NewFromFile

func NewFromFile(fname string) (*Config, error)

func (*Config) UpdateEnv

func (cfg *Config) UpdateEnv() (err error)

type Endpoint

type Endpoint struct {
	Port int  `yaml:"port"`
	SSL  bool `yaml:"ssl"`
}

type SSL

type SSL struct {
	Cert   string `yaml:"cert"`
	Key    string `yaml:"key"`
	CaCert string `yaml:"ca_cert"`
}

Jump to

Keyboard shortcuts

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