setup

package
v5.3.3-pre12 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: AGPL-3.0 Imports: 21 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RegisterInstallSQL = config.RegisterInstallSQL
)

Functions

func License

func License(c echo.Context) error

License 获取商业授权

func OnInstalled

func OnInstalled(cb func(ctx echo.Context) error)

func Progress

func Progress(ctx echo.Context) error

func RegisterUpgradeSQL

func RegisterUpgradeSQL(project string, minNgingDBVer float64, upgradeSQL string)

func Setup

func Setup(ctx echo.Context) error

func Upgrade

func Upgrade() error

Upgrade 通过自动执行配置文件目录下的upgrade.sql来进行升级

Types

type ProgressInfo

type ProgressInfo struct {
	Finished  int64
	TotalSize int64
	Summary   string
	Timestamp int64
	// contains filtered or unexported fields
}

func (*ProgressInfo) Add added in v5.1.2

func (p *ProgressInfo) Add(n int64)

func (*ProgressInfo) Clone added in v5.1.2

func (p *ProgressInfo) Clone() ProgressInfo

func (*ProgressInfo) Done added in v5.1.2

func (p *ProgressInfo) Done(n int64)

func (*ProgressInfo) GetTs added in v5.1.2

func (p *ProgressInfo) GetTs() int64

func (*ProgressInfo) SetTs added in v5.1.2

func (p *ProgressInfo) SetTs(ts int64)

Jump to

Keyboard shortcuts

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