utils

package
v0.0.0-...-0c72d35 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Black uint8 = iota + 30
	Red
	Green
	Yellow
	Blue
	Magenta
	Cyan
	White
)

Foreground colors.

Variables

This section is empty.

Functions

func Colorize

func Colorize(s string, c uint8) string

Colorize colorizes a string by a given color.

Types

type Certificate

type Certificate struct {
	AdditionalHosts []string `mapstructure:"HOSTS"`
	AdditionalIPs   []string `mapstructure:"IPS"`
}

type Config

type Config struct {
	UserIds                          []UserIds   `mapstructure:"USERIDs"`
	SET_DELAY_BETWEEN_MESSAGES       int         `mapstructure:"SET_DELAY_BETWEEN_MESSAGES"`
	RANDOMIZE_DELAY_BETWEEN_MESSAGES bool        `mapstructure:"RANDOMIZE_DELAY_BETWEEN_MESSAGES"`
	SimulatorsParams                 []params    `mapstructure:"SIMULATORS"`
	Certificate                      Certificate `mapstructure:"CERTIFICATE"`
	Host                             string      `mapstructure:"HOST"`
}

func GetConfig

func GetConfig() Config

type UserIds

type UserIds struct {
	Username string `mapstructure:"Username"`
	Password string `mapstructure:"Password"`
}

Jump to

Keyboard shortcuts

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