config

package
v0.0.0-...-b326c59 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDBConnection

func NewDBConnection(conf YamlConfig) *gorm.DB

Types

type Admin

type Admin struct {
	Emails []string `yaml:"emails"`
}

type Application

type Application struct {
	Server Server `yaml:"Server"`
	Client Client `yaml:"Client"`
}

type BaseConfig

type BaseConfig struct {
	DBConnection *gorm.DB
	YamlConfig   YamlConfig
}

func NewBaseConfig

func NewBaseConfig() BaseConfig

type Client

type Client struct {
	ServerEndpoint string `yaml:"ServerEndpoint"`
	UserEmail      string `yaml:"UserEmail"`
	UserPassword   string `yaml:"UserPassword"`
}

type MySQL

type MySQL struct {
	Host string `yaml:"host"`
	User string `yaml:"user"`
	Pass string `yaml:"pass"`
	Port string `yaml:"port"`
	Db   string `yaml:"db"`
}

type Server

type Server struct {
	Admin Admin `yaml:"admin"`
}

type YamlConfig

type YamlConfig struct {
	Application Application `yaml:"Application"`
	MySQL       MySQL       `yaml:"MySQL"`
}

Jump to

Keyboard shortcuts

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