config

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultCacheSize = "500MB"

Variables

This section is empty.

Functions

func BaseDir

func BaseDir() string

func MountsDir

func MountsDir() string

func ParseByteSize added in v0.0.7

func ParseByteSize(raw string) (int64, error)

Types

type MountConfig

type MountConfig struct {
	Mountpoint  string
	Daemon      bool
	CacheDir    string
	CacheSize   string
	MetadataTTL int
	LogFile     string
	LogLevel    string
	ReadOnly    bool
	Domains     string
	LarkCLIPath string
}

func (MountConfig) ContentCacheSizeBytes added in v0.0.7

func (c MountConfig) ContentCacheSizeBytes() (int64, error)

func (*MountConfig) EnabledDomains

func (c *MountConfig) EnabledDomains() []string

func (*MountConfig) Resolve

func (c *MountConfig) Resolve() error

type ServeConfig

type ServeConfig struct {
	Port        int
	Addr        string
	Daemon      bool
	CacheDir    string
	CacheSize   string
	LogLevel    string
	ReadOnly    bool
	Domains     string
	LarkCLIPath string
}

Jump to

Keyboard shortcuts

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