config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationConfig added in v0.0.3

type AuthenticationConfig struct {
	Key       string
	SecretKey string
	SaltKey   string
}

type Config

type Config struct {
	Database       DatabaseConfig
	Server         ServerConfig
	Authentication AuthenticationConfig
}

func LoadConfig

func LoadConfig(env string) (Config, error)

type DatabaseConfig

type DatabaseConfig struct {
	Host     string
	Port     int
	Name     string
	User     string
	Password string
}

type ServerConfig

type ServerConfig struct {
	Name         string
	Version      string
	RPCPort      string
	RESTPort     string
	Debug        bool
	Environment  string
	ReadTimeout  time.Duration
	WriteTimeout time.Duration
}

Jump to

Keyboard shortcuts

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