config

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Overview

Package config holds configuration global data to be initialized.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Database Database
	Server   Server
}

Config - holds global configs

func Load

func Load() Config

Load - loads configurations data

func (*Config) GetServerAddress added in v0.0.2

func (c *Config) GetServerAddress() string

GetServerAddress - returns server address based on Server configs

type Database

type Database struct {
	Address        string
	Name           string
	MigrationsPath string
}

Database - database related config data

type Server

type Server struct {
	Host string
	Port string
}

Server - server related config data

Jump to

Keyboard shortcuts

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