types

package
v0.0.0-...-ff7fbe2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	System     ConfigSystem      `yaml:"system"`
	RSSHub     ConfigRSSHubList  `yaml:"rsshub"`
	Translate  *ConfigTranslate  `yaml:"translate,omitempty"`
	ImageProxy *ConfigImageProxy `yaml:"image_proxy,omitempty"`
}

type ConfigImageProxy

type ConfigImageProxy struct {
	Path  string                          `yaml:"path"`
	Rules map[string]ConfigImageProxyRule `yaml:"rules"`
}

type ConfigImageProxyRule

type ConfigImageProxyRule struct {
	Origin  *string `yaml:"origin"`
	Referer *string `yaml:"referer"`
}

type ConfigRSSHub

type ConfigRSSHub struct {
	URL       string   `yaml:"url"`
	Platforms []string `yaml:"platforms,omitempty"`
	Fallback  bool     `yaml:"fallback"`
}

type ConfigRSSHubList

type ConfigRSSHubList []ConfigRSSHub

type ConfigSystem

type ConfigSystem struct {
	Debug bool `yaml:"debug"`
	Redis struct {
		URL         string        `yaml:"url"`
		Prefix      string        `yaml:"prefix"`
		CacheExpire time.Duration `yaml:"cache_expire"`
	} `yaml:"redis"`
	Listen         string        `yaml:"listen"`
	RequestTimeout time.Duration `yaml:"request_timeout"`
}

type ConfigTranslate

type ConfigTranslate struct {
	Provider    string `yaml:"provider"`
	DefaultLang string `yaml:"default_lang"`
	Settings    string `yaml:"settings"`
	HostBase    string `yaml:"host_base"`
}

Jump to

Keyboard shortcuts

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