config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: MPL-2.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 Config

type Config struct {
	InstanceId             uint8             `json:"instance_id"`
	Migrations             *bool             `json:"migrations"`
	DBCleanFrequency       *uint16           `json:"db_clean_frequency"`
	ProjectUpdateFrequency *uint16           `json:"project_update_frequency"`
	MultiTenancy           bool              `json:"multi_tenancy"`
	HTTP                   HTTP              `json:"http"`
	TOTP                   *TOTP             `json:"totp"`
	Ticket                 *Ticket           `json:"ticket"`
	LoginLog               *LoginLog         `json:"login_log"`
	Log                    log.Config        `json:"log"`
	Storage                storage.Config    `json:"storage"`
	Validation             validation.Config `json:"validation"`
}

func Configure

func Configure(filePath string) (Config, error)

type HTTP

type HTTP struct {
	Listen string `json:"listen"`
}

type LoginLog added in v0.0.2

type LoginLog struct {
	Max              int `json:"max"`
	MaxPayloadLength int `json:"max_payload_length"`
}

type TOTP

type TOTP struct {
	Max          int    `json:"max"`
	Issuer       string `json:"issuer"`
	SetupTTL     int    `json:"setup_ttl"`
	SecretLength int    `json:"secret_length"`
}

type Ticket added in v0.0.2

type Ticket struct {
	Max              int `json:"max"`
	MaxPayloadLength int `json:"max_payload_length"`
}

Jump to

Keyboard shortcuts

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