app

package
v0.0.0-...-f3888fe Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run() error

Run starts the server.

func RunWithConfig

func RunWithConfig(config *Config, password, dataDirPath string) error

Types

type Config

type Config struct {
	BaseURL       string
	Port          int
	Feeds         []feed.Feed
	ReleaseTimes  []int
	FetchInterval time.Duration
}

type JSONConfig

type JSONConfig struct {
	BaseURL              string                     `json:"base_url"`
	Password             string                     `json:"password"`
	Port                 int                        `json:"port"`
	Feeds                map[string]json.RawMessage `json:"feeds"`
	ReleaseTimes         []int                      `json:"release_times"`
	UpdateTimes          []int                      `json:"update_times"`
	FetchIntervalMinutes int                        `json:"fetch_interval_minutes"`
}

type TypedConfig

type TypedConfig struct {
	Type string `json:"type"`
}

Jump to

Keyboard shortcuts

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