config

package
v0.0.0-...-77f4496 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server     Server     `json:"server"`
	Repository Repository `json:"repository"`
	Database   Database   `json:"database"`
}

func NewConfiguration

func NewConfiguration() (*Config, error)

type Database

type Database struct {
	Driver   string `json:"driver"`
	Name     string `json:"name"`
	Username string `json:"username"`
	Password string `json:"password"`
	Protocol string `json:"protocol"`
	Host     string `json:"host"`
	Port     string `json:"port"`
}

type Repository

type Repository struct {
	Path string `json:"path"`
}

type Server

type Server struct {
	Host string `json:"host"`
	Port string `json:"port"`
}

Jump to

Keyboard shortcuts

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