config

package
v0.1.124 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBConfig

type DBConfig struct {
	Adapter           string
	User              string
	Password          string
	Host              string
	Port              int
	Name              string             `json:"db_name"`
	ConnectionOptions DBConnectionConfig `json:"connection_options"`
}

type DBConnectionConfig

type DBConnectionConfig struct {
	MaxOpenConnections int `json:"max_open_connections"`
	MaxIdleConnections int `json:"max_idle_connections"`
}

type ServerConfig

type ServerConfig struct {
	Port                   int
	CertificateFilePath    string `json:"certificate_file_path"`
	PrivateKeyFilePath     string `json:"private_key_file_path"`
	JwtVerificationKeyPath string `json:"jwt_verification_key_path"`
	Store                  string
	Database               DBConfig
}

func ParseConfig

func ParseConfig(filename string) (ServerConfig, error)

Jump to

Keyboard shortcuts

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