webserver

package
v0.0.0-...-860769c Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseURL

type BaseURL string

func (BaseURL) EnforceTrailingSlash

func (b BaseURL) EnforceTrailingSlash() BaseURL

EnforceTrailingSlash ensures that the base URL has a trailing slash.

func (BaseURL) String

func (b BaseURL) String() string

String returns the base URL as a string.

type Stats

type Stats struct {
	SonarrSubmissions uint64        `json:"sonarrSubmissions"`
	RadarrSubmissions uint64        `json:"radarrSubmissions"`
	LidarrSubmissions uint64        `json:"lidarrSubmissions"`
	FilesChecked      uint64        `json:"filesChecked"`
	HashMatches       uint64        `json:"hashMatches"`
	HashMismatches    uint64        `json:"hashMismatches"`
	VideoFiles        uint64        `json:"videoFiles"`
	AudioFiles        uint64        `json:"audioFiles"`
	UnknownFileCount  uint64        `json:"unknownFileCount"`
	NonVideo          uint64        `json:"nonVideo"`
	Running           bool          `json:"running"`
	Diff              time.Duration `json:"timeDiff"`
}

type Webserver

type Webserver struct {
	Port    int
	BaseURL BaseURL

	DB *bolt.DB
	// contains filtered or unexported fields
}

func (*Webserver) AddScehduler

func (w *Webserver) AddScehduler(cron *cron.Cron, entryid cron.EntryID)

func (*Webserver) FromConfig

func (w *Webserver) FromConfig(conf *viper.Viper, c chan []string, checkrr *check.Checkrr)

func (*Webserver) Run

func (w *Webserver) Run()

Jump to

Keyboard shortcuts

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