config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: MIT Imports: 9 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 {
	TelegramApiToken    string
	TelegramChannel     string
	TelegramPreviewLink bool
	BitLyEnabled        bool
	BitLyApiToken       string
	HackerNewsConfig    *HackerNewsConfig
	RSSChannels         []RSSChannel
	RedisClient         *redis.Client
	Port                int
	DryRun              bool
	RetryEnabled        bool
	RetryCount          int
}

func NewConfig

func NewConfig() *Config

type HackerNewsConfig

type HackerNewsConfig struct {
	Enabled         bool
	MinScore        int
	YcombinatorLink bool
}

type RSSChannel

type RSSChannel struct {
	Name            string
	URL             string
	TelegramChannel string `mapstructure:"telegram_channel" yaml:"telegram_channel"`
}

Jump to

Keyboard shortcuts

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