util

package
v0.0.0-...-1373814 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IconPlus is the path to the plus icon
	IconPlus = "/usr/local/share/secprac/secprac-plus.png"

	// IconMinus is the path to the minus icon
	IconMinus = "/usr/local/share/secprac/secprac-minus.png"

	// IconInfo is the path to the info icon
	IconInfo = "/usr/local/share/secprac/secprac-info.png"
)
View Source
var LogFileName string

LogFileName is the name of the log file created

View Source
var Logger *log.Logger

Logger points to a log.Logger which writes to stdout and a unique file

Functions

func Init

func Init()

Init creates the Logger and log file

func Notify

func Notify(user *ou.User, title, text, icon string, urgent bool)

Notify sends a desktop notification

func PointNotif

func PointNotif(points int, name string, user *ou.User)

PointNotif takes a value of points and script name, then sends an appropriate notification

Types

This section is empty.

Jump to

Keyboard shortcuts

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