config

package
v2.0.0-...-6b45633 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	LogLevel   string
	LogFile    string
	API        ApiConfig    `toml:"API"`
	VFS        vfsrw.Config `toml:"VFS"`
	DatabasePG *DatabasePG
}

func LoadApiConfig

func LoadApiConfig(cfgData []byte) (*Api, error)

type ApiConfig

type ApiConfig struct {
	Addr    string
	ExtAddr string
}

type DatabasePG

type DatabasePG struct {
	Addr       cfgutil.EnvString
	ServerCert cfgutil.EnvString
	ServerKey  cfgutil.EnvString
	Token      cfgutil.EnvString
	Postgres   *Postgres
}

type Ingest

type Ingest struct {
	LogLevel string
	LogFile  string
	Addr     string
	VFS      vfsrw.Config
}

func LoadIngestConfig

func LoadIngestConfig(cfgData []byte) (*Ingest, error)

type Postgres

type Postgres struct {
	Connection cfgutil.EnvString `json:"connection"`
	Schema     cfgutil.EnvString `json:"schema"`
}

type ServiceDatabasePG

type ServiceDatabasePG struct {
	LogLevel   cfgutil.EnvString
	LogFile    cfgutil.EnvString
	DatabasePG *DatabasePG
}

func LoadDatabasePGConfig

func LoadDatabasePGConfig(cfgData []byte) (*ServiceDatabasePG, error)

type ServiceMediaserver

type ServiceMediaserver struct {
	LogLevel   cfgutil.EnvString
	LogFile    cfgutil.EnvString
	DatabasePG *DatabasePG
	Api        *ApiConfig
}

func LoadMediaserverConfig

func LoadMediaserverConfig(cfgData []byte) (*ServiceMediaserver, error)

Jump to

Keyboard shortcuts

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