globals

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Tempest- Leveraging paste sites as a medium for discovery Copyright © 2023 ax-i-om <addressaxiom@pm.me>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.

package globals contains global variables used throughout Tempest

Index

Constants

This section is empty.

Variables

View Source
var Csvfile *os.File = nil

Csvfile is the opened CSV file where results are written

View Source
var DebugFlag bool

DebugFlag stores information about whether or not to print debug information

View Source
var Filename string

Filename stores the output file name

View Source
var Jsonfile *os.File = nil

Jsonfile is the opened JSON file where the results are written

View Source
var Logger zerolog.Logger = zerolog.New(zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.RFC3339}).
	Level(zerolog.TraceLevel).
	With().
	Timestamp().
	Caller().
	Logger()

Logger is a global zerolog logger used for printing & debugging

View Source
var Mode string

Mode store the specified output mode

View Source
var Src = rand.NewSource(time.Now().UnixNano())

Src is used by the TrueRand function

Wg is a sync.WaitGroup that implements a counter, used in run() for graceful cleanup

View Source
var WriteMutex sync.Mutex

WriteMutex provides the ability to lock write()

View Source
var Writer *csv.Writer = nil

Writer is used in writing to Csvfile

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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