install

package
v1.1.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PagePath = "/install"
	APIPath  = "/api/install"
)

Variables

This section is empty.

Functions

func IsRequired

func IsRequired(db *gorm.DB) (bool, error)

IsRequired reports whether the instance still needs the first-run install guide: true as long as no user account has been created yet.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(db *gorm.DB) *Controller

func (*Controller) Activate

func (c *Controller) Activate()

func (*Controller) Deactivate

func (c *Controller) Deactivate()

func (*Controller) Done

func (c *Controller) Done() <-chan struct{}

func (*Controller) Register

func (c *Controller) Register(r *gin.Engine)

type Status

type Status struct {
	State    string `json:"state"`
	Required bool   `json:"required"`
}

Jump to

Keyboard shortcuts

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