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"`
	Logger  Logger  `json:"logger"`
}

func (*Configuration) Read

func (c *Configuration) Read()

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"`
	Port    int    `json:"port"`
	Host    string `json:"host"`
}

Jump to

Keyboard shortcuts

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