config

package
v0.0.0-...-67e434f Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type DatabaseConfig

type DatabaseConfig struct {
	Host     string `required:"true" split_words:"true"`
	Name     string `required:"true" split_words:"true"`
	Password string `required:"true" split_words:"true"`
	Port     int    `default:"5432" split_words:"true"`
	SSLMode  string `default:"disable" split_words:"true"`
	TimeZone string `default:"Etc/UTC" split_words:"true"`
	User     string `required:"true" split_words:"true"`
}

type ServerConfig

type ServerConfig struct {
	CertFilePath string `split_words:"true"`
	DataFilePath string `split_words:"true"`
	KeyFilePath  string `split_words:"true"`
	Port         int    `default:"50051" split_words:"true"`
	UsesTLS      bool   `default:"false" split_words:"true"`
}

Jump to

Keyboard shortcuts

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