helpers

package
v0.0.0-...-5046716 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MenuHeader = `` /* 1339-byte string literal not displayed */

	LipStandardStyle       = lipgloss.NewStyle().Foreground(lipgloss.Color("231")).Bold(true)
	LipHeaderStyle         = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("127"))
	LipConfigStyle         = lipgloss.NewStyle().Foreground(lipgloss.Color("112"))
	LipConfigSettingsStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("111"))
	LipConfigSMTPStyle     = lipgloss.NewStyle().Foreground(lipgloss.Color("184"))
	LipErrorStyle          = lipgloss.NewStyle().Foreground(lipgloss.Color("231")).Background(lipgloss.Color("196")) //231 white
	LipFooterStyle         = lipgloss.NewStyle().Foreground(lipgloss.Color("240"))
)

Functions

func ClearTerminalScreen

func ClearTerminalScreen()

func GetLocalIP

func GetLocalIP() string

func GetLogFileName

func GetLogFileName() string

func InstallPlaywright

func InstallPlaywright() (bool, string)

func IsPortOpen

func IsPortOpen(serverIP string, port int) bool

func SetPEMfiles

func SetPEMfiles()

func WriteLogFile

func WriteLogFile(logData string)

Types

type EmailJob

type EmailJob struct {
	From       string `json:"from"`
	To         string `json:"to"`
	Subject    string `json:"subject"`
	Body       string `json:"body"`
	SMTPHost   string `json:"smtpHost"`
	SMTPPort   string `json:"smtpPort"`
	UserName   string `json:"userName"`
	PassWord   string `json:"passWord"`
	UseOutlook bool   `json:"useOutlook"`
	UseSMTP    bool   `json:"useSMTP"`
	Attachment string `json:"attachment"`
}

func NewEmailJob

func NewEmailJob() *EmailJob

func (*EmailJob) SendOutlook

func (e *EmailJob) SendOutlook(testMsg bool) string

func (*EmailJob) SendSMTP

func (e *EmailJob) SendSMTP(testMSG bool) string

Jump to

Keyboard shortcuts

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