config

package
v0.0.0-...-631e93d Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "1.0.0"

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Config   Config
	Logger   *log.Logger
	TGBot    *tgbotapi.BotAPI
	InstaBot *goinsta.Instagram
	BoltDB   *bolt.DB
}

Application struct to hold the dependencies for our application.

type Config

type Config struct {
	InstagramUsername string
	InstagramPassword string
	InstagramChannel  string
	TelegramBotToken  string
	TelegramChannel   int64
	DatabasePath      string // boltDB location
	TempMediaPath     string // temporary photo/video storage location
	ReRunInterval     int64  // in minutes
}

Config struct to hold all the configuration settings for our application.

func GetConfig

func GetConfig() Config

GetConfig from command line flags

Jump to

Keyboard shortcuts

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