config

package
v0.0.0-...-3d483f6 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiConfig

type ApiConfig struct {
	Host    string
	Port    string
	Key     string
	SKey    string
	Verbose string
}

type Common

type Common struct {
	HistoryFile       string
	BaseDirectory     string
	ExportDirectory   string
	ConfigurationFile string
	ConfigurationJobs string
}

type Config

type Config struct {
	Api        ApiConfig
	Tracker    TrackerConfig
	Database   DataBase
	Common     Common
	Instagram  Network
	Twitter    Network
	PushDriver string
	Gate       ToGate
	Modules    map[string]map[string]string
}

func ParseConfig

func ParseConfig() (Config, error)

type DataBase

type DataBase struct {
	Name   string
	User   string
	Pass   string
	Host   string
	Driver string
	Port   string
}

type Network

type Network struct {
	Login    string
	Password string
	Api      ApiConfig
}

type ToGate

type ToGate struct {
	GateUrl    string
	GateMethod string
	GateTor    string
}

type TrackerConfig

type TrackerConfig struct {
	Host string
	Port string
}

Jump to

Keyboard shortcuts

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