config

package
v0.0.0-...-8e0a72f Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseConfig

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

func NewDatabaseConfig

func NewDatabaseConfig() *DatabaseConfig

func (*DatabaseConfig) ConnectionString

func (dc *DatabaseConfig) ConnectionString() string

type ServerConfig

type ServerConfig struct {
	Port           string
	Debug          bool
	AutoMigrations bool
	Environment    string
}

func NewServerConfig

func NewServerConfig() *ServerConfig

func (ServerConfig) BaseEndpoint

func (sc ServerConfig) BaseEndpoint() string

func (*ServerConfig) PortString

func (sc *ServerConfig) PortString() string

Jump to

Keyboard shortcuts

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