config

package
v0.0.0-...-ddcb0c8 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Logger the app logger
	Logger *logrus.Logger

	//StaticFilesEmbedded embed the static asset files
	//go:embed web/static/*
	StaticFilesEmbedded embed.FS
	//TemplateFilesEmbedded embed the template files
	//go:embed web/templates/*
	TemplateFilesEmbedded embed.FS

	//CmdNameWebServer command name for starting the api
	CmdNameWebServer = "runApi"

	//App init app config from config struct
	App = Config{
		Meta: meta.App,
	}
)

Functions

func Init

func Init() (flagsProcessed bool)

Init the init method

Types

type Config

type Config struct {
	Meta   metaModel.AppMeta `json:"-"`
	Server ServerCfg         `json:"server"`
}

Config application config options

type ServerCfg

type ServerCfg struct {
	Port string `json:"port"`
}

ServerCfg the server configuration

Jump to

Keyboard shortcuts

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