config

package
v0.0.0-...-f750f1c Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: Apache-2.0 Imports: 3 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 {
	ListenAddress        string `yaml:"address" default:":12002" env:"KOTO_LISTEN_ADDRESS"`
	ExternalAddress      string `yaml:"external_address" default:"http://localhost:12002" env:"KOTO_EXTERNAL_ADDRESS"`
	CentralServerAddress string `yaml:"central_address" env:"KOTO_CENTRAL_ADDRESS"`
	UserHubAddress       string `yaml:"user_hub_address" env:"KOTO_USER_HUB_ADDRESS"`
	PrivateKeyPath       string `yaml:"private_key_path" default:"message_hub.rsa" env:"KOTO_PRIVATE_KEY"`

	DB common.DatabaseConfig `yaml:"db"`
	S3 common.S3Config       `yaml:"s3"`
}

func Load

func Load(cfgPath string) (Config, error)

Jump to

Keyboard shortcuts

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