config

package
v0.0.0-...-caf4afc Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrokerConfig

type BrokerConfig struct {
	Username  string
	Password  string
	Host      string
	Port      int
	QueueName string
}

type Config

type Config struct {
	Server   ServerConfig
	Broker   BrokerConfig
	Database DatabaseConfig
	RPC      RpcServerConfig
}

func ReadConfig

func ReadConfig() *Config

type DatabaseConfig

type DatabaseConfig struct {
	Username      string
	Password      string
	Host          string
	Port          int
	Driver        string
	Database      string
	MigrationPath string
}

type RpcServerConfig

type RpcServerConfig struct {
	Host string
	Port int
}

type ServerConfig

type ServerConfig struct {
	Port int
}

Jump to

Keyboard shortcuts

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