Documentation
¶
Index ¶
- Constants
- Variables
- func Contains(slice []string, item string) bool
- func ErrorInformation(information string)
- func ErrorLogger(err error, place string)
- func GenerateDiscordMessage(information types.CommandInformation) *bytes.Buffer
- func GenerateEmailTemplate(information types.CommandInformation) (string, error)
- func GenerateHelp(version string) string
- func GreenPrinter(information string)
- func InformationLogger(information string)
- func PrintInformation(data *[]types.CommandInformation)
- func StatusPrinter(data *[]types.ConfigurationInformation)
- func Stba(input string) []byte
Constants ¶
View Source
const ( LocalBucket = "pigil_storage" ConfigBucket = "pigil_config" CliDb = "db" CliAuth = "auth" CliChannels = "channels" CliStatus = "status" CliLogout = "logout" CliHelp = "help" CliDiscord = "discord" DbFirstTime = "isFirst" DbDiscordUrl = "discord_url" DbFalse = "false" DbTrue = "true" DatabaseName = "pigil.database" UserEmail = "user_email" UserAT = "access_token" UserRT = "refresh_token" Discord = "discord" Email = "email" )
View Source
const ( Red = "\033[31m" Reset = "\033[0m" Green = "\033[32m" Yellow = "\033[33m" )
Variables ¶
View Source
var ( GoogleClientId = "" GoogleClientSecret = "" Channels = []string{Email, Discord} )
Functions ¶
func ErrorInformation ¶
func ErrorInformation(information string)
func ErrorLogger ¶
func GenerateDiscordMessage ¶ added in v0.2.0
func GenerateDiscordMessage(information types.CommandInformation) *bytes.Buffer
func GenerateEmailTemplate ¶
func GenerateEmailTemplate(information types.CommandInformation) (string, error)
func GenerateHelp ¶ added in v0.1.4
func GreenPrinter ¶
func GreenPrinter(information string)
func InformationLogger ¶
func InformationLogger(information string)
func PrintInformation ¶
func PrintInformation(data *[]types.CommandInformation)
func StatusPrinter ¶
func StatusPrinter(data *[]types.ConfigurationInformation)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.