cleosrv

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: CC-BY-4.0, MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultConfigFileName = "cleosrv"
View Source
const DefaultConfigFileType = "yml"
View Source
const EnvPrefix = "CLEOSRV"

Variables

This section is empty.

Functions

func DefaultDatabasePath added in v0.2.0

func DefaultDatabasePath() string

Types

type App added in v0.2.0

type App struct {
	Out    io.Writer
	Err    io.Writer
	Config *Config
}

func NewApp added in v0.2.0

func NewApp() *App

func (*App) InitDB added in v0.2.0

func (a *App) InitDB() (*gorm.DB, error)

func (*App) Start added in v0.2.0

func (a *App) Start() error

func (*App) Version added in v0.2.0

func (a *App) Version() error

type Config added in v0.2.0

type Config struct {
	ConfigFile string
	Address    string
	Database   string
	Frontend   struct {
		FooterText string
	}
}

func (*Config) LoadWithViper added in v0.2.0

func (c *Config) LoadWithViper(v *viper.Viper) error

LoadWithViper initializes or overwrites the Config by using the 'viper' library (thereby reading in config files, ENV variables etc.). You should probably not call it.

Jump to

Keyboard shortcuts

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