config

package
v0.0.0-...-f7f6175 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Get = loadConfig()

Get configs

Functions

This section is empty.

Types

type App

type App struct {
	Activated bool
}

App config

type Command

type Command struct {
	Prefix     string
	Deactivate []string
}

Command config

type Configuration

type Configuration struct {
	App      App
	Command  Command
	Whatsapp Whatsapp
	Qrcode   Qrcode
	Database Database
}

Configuration data

type Database

type Database struct {
	Path           string
	SaveBackup     bool
	BackupPath     string
	MigrationsPath string
}

Database config

type Qrcode

type Qrcode struct {
	FileName    string
	Quality     string
	Size        uint
	GeneratePNG bool
	PrintOnCLI  bool
}

Qrcode config

type Whatsapp

type Whatsapp struct {
	TimeOutDuration time.Duration
	SessionPath     string
	LongClientName  string
	ShortClientName string
	ClientVersion   string
	RootNumber      string
	SendBDelay      time.Duration
}

Whatsapp config

Jump to

Keyboard shortcuts

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