config

package
v0.0.0-...-a179fe3 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2025 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFileExistsOrCreate

func CheckFileExistsOrCreate(filePath string) error

func GetDefaultConfigPath

func GetDefaultConfigPath() string

func GetDefaultFFprobeCachePath

func GetDefaultFFprobeCachePath() string

Types

type DmsConfig

type DmsConfig struct {
	Path                string `json:"path"`
	IfName              string `json:"ifname"`
	Http                string
	FriendlyName        string `json:"friendlyName"`
	DeviceIcon          string `json:"deviceIcon"`
	DeviceIconSizes     []string
	LogHeaders          bool
	FFprobeCachePath    string
	NoTranscode         bool
	ForceTranscodeTo    string
	NoProbe             bool
	StallEventSubscribe bool
	NotifyInterval      time.Duration
	IgnoreHidden        bool
	IgnoreUnreadable    bool
	IgnorePaths         []string
	AllowedIpNets       []*net.IPNet
	AllowDynamicStreams bool
	TranscodeLogPattern string
}

func (*DmsConfig) Load

func (config *DmsConfig) Load(configPath string)

func (*DmsConfig) Save

func (config *DmsConfig) Save() error

type FFprobeCache

type FFprobeCache struct {
	Cache *rrcache.RRCache
	sync.Mutex
}

func (*FFprobeCache) Get

func (fc *FFprobeCache) Get(key interface{}) (value interface{}, ok bool)

func (*FFprobeCache) Load

func (cache *FFprobeCache) Load(path string) error

func (*FFprobeCache) Save

func (cache *FFprobeCache) Save(path string) error

func (*FFprobeCache) Set

func (fc *FFprobeCache) Set(key interface{}, value interface{})

Jump to

Keyboard shortcuts

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