config

package
v0.0.0-...-6a10bfd Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	App = AppType{
		Name:        "QK Server",
		Version:     "0.0.1",
		Author:      "Firdavs",
		UploadUrl:   "uploads/",
		AppHost:     "localhost",
		AppPort:     2595,
		MaxFileSize: 10 << 20,
	}
)
View Source
var (
	Database = DatabaseType{
		// contains filtered or unexported fields
	}
)

Functions

This section is empty.

Types

type AppType

type AppType struct {
	Name        string
	Version     string
	Author      string
	UploadUrl   string
	AppHost     string
	AppPort     int
	MaxFileSize int64
}

type DatabaseType

type DatabaseType struct {
	DB *gorm.DB
	// contains filtered or unexported fields
}

func (*DatabaseType) GetConnection

func (d *DatabaseType) GetConnection() string

func (*DatabaseType) GetHost

func (d *DatabaseType) GetHost() string

func (*DatabaseType) Init

func (d *DatabaseType) Init()

func (*DatabaseType) Set

func (d *DatabaseType) Set(db *DatabaseType)

Jump to

Keyboard shortcuts

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