internal

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: BSD-2-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const MinimumVMStorageSize = 1024 * 1024 * 128

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

type APIResponse[T any] struct {
	Status  string `json:"status"`
	Message string `json:"message"`
	Data    T      `json:"data"`
	Error   string `json:"error"`
}

type AuthConfig added in v0.2.1

type AuthConfig struct {
	EnablePAM bool `json:"enablePAM"`
}

type BTT added in v0.1.0

type BTT struct {
	RPC BTTRPC    `json:"rpc"`
	DHT DHTConfig `json:"dht"`
}

type BTTRPC added in v0.1.0

type BTTRPC struct {
	Enabled bool   `json:"enabled"`
	Address string `json:"address"`
	Port    int    `json:"port"`
}

type BaseConfigAdmin

type BaseConfigAdmin struct {
	Email              string `json:"email"`
	Password           string `json:"password"`
	ForcePasswordReset bool   `json:"forcePasswordReset"`
}

type BulkDeleteRequest added in v0.3.0

type BulkDeleteRequest struct {
	IDs []int `json:"ids" binding:"required"`
}

type BulkUpdateRulesRequest added in v0.3.0

type BulkUpdateRulesRequest struct {
	IDs            []int `json:"ids" binding:"required"`
	UIEnabled      *bool `json:"uiEnabled"`
	NtfyEnabled    *bool `json:"ntfyEnabled"`
	EmailEnabled   *bool `json:"emailEnabled"`
	DiscordEnabled *bool `json:"discordEnabled"`
}

type DHTConfig added in v0.1.0

type DHTConfig struct {
	Port    int  `json:"port"`
	Enabled bool `json:"enabled"`
}

type Environment added in v0.1.0

type Environment string
const (
	Development Environment = "development"
	Production  Environment = "production"
	Debug       Environment = "debug"
)

type JailsConfig added in v0.3.0

type JailsConfig struct {
	DisableDevFS bool `json:"disableDevFS"`
}

type NoteRequest added in v0.3.0

type NoteRequest struct {
	Title   string `json:"title" binding:"required,min=3,max=128"`
	Content string `json:"content" binding:"required,min=3"`
}

type Raft added in v0.1.0

type Raft struct {
	Reset bool `json:"reset"`
}

type SylveConfig

type SylveConfig struct {
	Environment    Environment     `json:"environment"`
	ProxyToVite    bool            `json:"proxyToVite"`
	Profile        bool            `json:"profile"`
	IP             string          `json:"ip"`
	Port           int             `json:"port"`
	HTTPPort       int             `json:"httpPort"`
	LogLevel       int8            `json:"logLevel"`
	WANInterfaces  []string        `json:"wanInterfaces"`
	Admin          BaseConfigAdmin `json:"admin"`
	DataPath       string          `json:"dataPath"`
	TLS            *TLSConfig      `json:"tlsConfig,omitempty"`
	Raft           Raft            `json:"raft"`
	BTT            BTT             `json:"btt"`
	Auth           AuthConfig      `json:"auth"`
	Jails          JailsConfig     `json:"jails"`
	ZFS            ZFSConfig       `json:"zfs"`
	Uploads        UploadsConfig   `json:"uploads"`
	TrustedProxies []string        `json:"trustedProxies"`
}

type TLSConfig

type TLSConfig struct {
	CertFile string `json:"certFile"`
	KeyFile  string `json:"keyFile"`
}

type UploadsConfig added in v0.3.0

type UploadsConfig struct {
	MaxFileBytes           int64 `json:"maxFileBytes"`
	MaxConcurrentTransfers int64 `json:"maxConcurrentTransfers"`
}

type ZFSConfig added in v0.3.0

type ZFSConfig struct {
	Tune bool `json:"tune"`
}

Jump to

Keyboard shortcuts

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