utils

package
v0.0.0-...-6647630 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRandomPacket

func GetRandomPacket() (interface{}, error)

func Getenv

func Getenv(key, fallback string) string

func MaxParallelism

func MaxParallelism() int

Types

type Packet

type Packet struct {
	Oid       string `faker:"month_name" json:"_oid"`
	UserName  string `faker:"username" json:"username"`
	UnixTime  int64  `faker:"unix_time" json:"unixtime"`
	Date      string `faker:"date" json:"date"`
	MonthName string `faker:"month_name" json:"monthName"`
	Year      string `faker:"year" json:"year"`
	DayOfWeek string `faker:"day_of_week" json:"dayOfWeek"`
	Timestamp string `faker:"timestamp" json:"timestamp"`
	TimeZone  string `faker:"timezone"  json:"timezone"`
	IPV4      string `faker:"ipv4" json:"IPv4"`
	Bool      bool
	Int       int
}

Jump to

Keyboard shortcuts

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