config

package
v0.0.0-...-299512e Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Setup

func Setup()

Types

type Configuration

type Configuration struct {
	Runtime  Runtime  `json:"runtime"`
	Database Database `json:"database"`
	Logger   Logger   `json:"logger"`
}

func (*Configuration) Read

func (c *Configuration) Read()

type Database

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

type Logger

type Logger struct {
	BasePath   string `json:"base_path"`
	MaxSize    int    `json:"max_size"`
	MaxBackups int    `json:"max_backups"`
	MaxAge     int    `json:"max_age"`
	Compress   bool   `json:"compress"`
}

type Runtime

type Runtime struct {
	Project        string `json:"project"`
	RefreshSeconds int    `json:"refresh_seconds"`
	GeneratorUrl   string `json:"generator_url"`
}

Jump to

Keyboard shortcuts

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