serve

package
v0.0.0-...-80595d0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupCommand

func SetupCommand() *cobra.Command

Types

type CORSConfig

type CORSConfig struct {
	Enabled bool     `koanf:"enabled"`
	Origins []string `koanf:"origins"`
}

type Config

type Config struct {
	Host        string       `koanf:"host"`
	Port        int          `koanf:"port"`
	PublinkPath string       `koanf:"publinkpath"`
	WebDAV      WebDAVConfig `koanf:"webdav"`
	CORS        CORSConfig   `koanf:"cors"`
	Debug       bool         `koanf:"debug"`
	LogBody     bool         `koanf:"logbody"`
}
var Cfg Config

type WebDAVConfig

type WebDAVConfig struct {
	Enabled bool   `koanf:"enabled"`
	Path    string `koanf:"path"`
}

Jump to

Keyboard shortcuts

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