config

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Baidu

type Baidu struct {
	Cookie string `yaml:"cookie"`
}

type Config

type Config struct {
	Server  Server  `yaml:"server"`
	ReShare ReShare `yaml:"reshare"`
	Baidu   Baidu   `yaml:"baidu"`
	Notify  Notify  `yaml:"notify"`
}

func Load

func Load() *Config

type Notify added in v1.1.1

type Notify struct {
	Cron           string         `yaml:"cron"`
	Enable         bool           `yaml:"enable"`
	SctConfig      SctConfig      `yaml:"sct"`
	PushPlusConfig PushPlusConfig `yaml:"push-plus"`
}

type PushPlusConfig added in v1.1.1

type PushPlusConfig struct {
	Enable  bool   `yaml:"enable"`
	Token   string `yaml:"token"`
	Channel string `yaml:"channel"`
}

type ReShare

type ReShare struct {
	Enable     bool    `yaml:"enable"`
	Ignore     []int64 `yaml:"ignore"`
	Interval   int     `yaml:"interval"`
	ErrorEetry int     `yaml:"errorretry"`
}

type SctConfig added in v1.1.1

type SctConfig struct {
	Enable  bool   `yaml:"enable"`
	Key     string `yaml:"key"`
	Channel string `yaml:"channel"`
}

type Server

type Server struct {
	Host string `yaml:"host"`
	Port int    `yaml:"port"`
}

Jump to

Keyboard shortcuts

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