config

package
v0.0.0-...-721bd20 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBilibiliVideoSource

func GetBilibiliVideoSource() string

func GetCronTab

func GetCronTab() string

func GetDescriptionLengthLimit

func GetDescriptionLengthLimit() int

func GetEmailReceiversForMessager

func GetEmailReceiversForMessager() []string

func Init

func Init(path string)

Init 读配置文件, 获取配置信息

func IsDebug

func IsDebug() bool

IsDebug 判断是不是debug环境

func IsIgnoreEmptyMessage

func IsIgnoreEmptyMessage() bool

func IsImmediate

func IsImmediate() bool

Types

type BilibiliVideoTarget

type BilibiliVideoTarget struct {
	Uid      string `yaml:"uid"`
	Category string `yaml:"category"`
}

func GetBilibiliVideoTargets

func GetBilibiliVideoTargets() []BilibiliVideoTarget

type EmailSender

type EmailSender struct {
	Nickname string
	Host     string
	Port     int
	Username string
	Password string
}

func GetEmailSenderForMessager

func GetEmailSenderForMessager() EmailSender

type RssAdapterTarget

type RssAdapterTarget struct {
	Url      string `yaml:"url"`
	Source   string `yaml:"source"`
	Category string `yaml:"category"`
}

func GetRssAdapterTargets

func GetRssAdapterTargets() []RssAdapterTarget

Jump to

Keyboard shortcuts

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