utils

package
v0.0.0-...-5a15951 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 3 Imported by: 4

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"`
	Email     string  `faker:"email" json:"email"`
	Year      string  `faker:"year" json:"year"`
	DayOfWeek string  `faker:"day_of_week" json:"dayOfWeek"`
	Timestamp string  `faker:"timestamp" json:"timestamp"`
	IPV4      string  `faker:"ipv4" json:"IPv4"`
	Lat       float32 `faker:"lat" json:"lat"`
	Lon       float32 `faker:"long" json:"lon"`
	Bool      bool
	Int       int
}

Jump to

Keyboard shortcuts

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