config

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 24, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFont

func LoadFont(filename string) (*truetype.Font, error)

Types

type Config

type Config struct {
	Dialector gorm.Dialector
	Token     string
	Font      *truetype.Font
}

func New

func New(path string) (*Config, error)

type DatabaseDriver

type DatabaseDriver string
const (
	DatabaseDriverMySQL    DatabaseDriver = "mysql"
	DatabaseDriverPostgres DatabaseDriver = "postgres"
	DatabaseDriverSQLite   DatabaseDriver = "sqlite"
)

func (DatabaseDriver) IsValid

func (d DatabaseDriver) IsValid() bool

Jump to

Keyboard shortcuts

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