profile

package
v1.0.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Profile

type Profile struct {
	// Mode can be "prod" or "dev".
	Mode string
	// Port is the binding port for server.
	Port int
	// Data is the data directory.
	Data string
	// DSN points to where slash stores its own data.
	DSN string
	// Driver is the database driver. Supported drivers are sqlite, postgres.
	Driver string
	// Version is the current version of server.
	Version string
}

Profile is the configuration to start main server.

func (*Profile) IsDev

func (p *Profile) IsDev() bool

func (*Profile) Validate

func (p *Profile) Validate() error

Jump to

Keyboard shortcuts

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