boot

package
v0.0.0-...-9442cf9 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteMigrations

func ExecuteMigrations()

func LoadConfig

func LoadConfig()

Types

type ApplicationProperties

type ApplicationProperties struct {
	Name string `yaml:"name"`
	Env  string `yaml:"environment"`
}

type Configuration

type Configuration struct {
	Application ApplicationProperties `yaml:"app"`
	Data        DataProperties        `yaml:"data"`
	Server      ServerProperties      `yaml:"server"`
}
var CONFIG Configuration

type DataProperties

type DataProperties struct {
	JDBC       JDBCProperties       `yaml:"jdbc"`
	Datasource DatasourceProperties `yaml:"datasource"`
}

type DatasourceProperties

type DatasourceProperties struct {
	Postgres PostgresProperties `yaml:"postgres"`
}

type GormProperties

type GormProperties struct {
	Logger LoggerProperties `yaml:"logger"`
}

type JDBCProperties

type JDBCProperties struct {
	Gorm GormProperties `yaml:"gorm"`
}

type LoggerProperties

type LoggerProperties struct {
	Level string `yaml:"level"`
}

type PostgresProperties

type PostgresProperties struct {
	Host     string `yaml:"host"`
	Port     int    `yaml:"port"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	Database string `yaml:"database"`
}

type ServerProperties

type ServerProperties struct {
	Port         int           `yaml:"port"`
	ReadTimeout  time.Duration `yaml:"read-timeout"`
	WriteTimeout time.Duration `yaml:"write-timeout"`
}

Jump to

Keyboard shortcuts

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