interactive

package
v0.0.0-...-1f0f14a Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	AnswerEnable  = "enable"
	AnswerDisable = "disable"
)

Variables

This section is empty.

Functions

func Run

func Run()

Types

type InteractiveConfig

type InteractiveConfig struct {
	//nolint:tagliatelle
	WebAPI               []string `json:"webAPI"`
	Rate                 int      `json:"rate"`
	DurationStr          string   `json:"duration"`
	TimeUnitStr          string   `json:"timeUnit"`
	Deep                 bool     `json:"deepEnabled"`
	Reuse                bool     `json:"reuseEnabled"`
	Scenario             string   `json:"scenario"`
	AutoRequesting       bool     `json:"autoRequestingEnabled"`
	AutoRequestingAmount string   `json:"autoRequestingAmount"`
	UseRateSetter        bool     `json:"useRateSetter"`
	// contains filtered or unexported fields
}

type Mode

type Mode struct {
	Config InteractiveConfig
	// contains filtered or unexported fields
}

func NewInteractiveMode

func NewInteractiveMode() *Mode

type Printer

type Printer struct {
	// contains filtered or unexported fields
}

func NewPrinter

func NewPrinter(mode *Mode) *Printer

func (*Printer) AutoRequestingEnabled

func (p *Printer) AutoRequestingEnabled()

func (*Printer) ClientNotFoundWarning

func (p *Printer) ClientNotFoundWarning(id int)

func (*Printer) CurrentSpams

func (p *Printer) CurrentSpams()

func (*Printer) DevNetFundsWarning

func (p *Printer) DevNetFundsWarning()

func (*Printer) EvilWalletStatus

func (p *Printer) EvilWalletStatus()

func (*Printer) FarewellBlock

func (p *Printer) FarewellBlock()

func (*Printer) FundsCurrentlyPreparedWarning

func (p *Printer) FundsCurrentlyPreparedWarning()

func (*Printer) FundsWarning

func (p *Printer) FundsWarning()

func (*Printer) History

func (p *Printer) History()

func (*Printer) MaxSpamWarning

func (p *Printer) MaxSpamWarning()

func (*Printer) NoActiveSpammer

func (p *Printer) NoActiveSpammer()

func (*Printer) NotEnoughClientsWarning

func (p *Printer) NotEnoughClientsWarning(numOfClient int)

func (*Printer) PrintLine

func (p *Printer) PrintLine()

func (*Printer) PrintThickLine

func (p *Printer) PrintThickLine()

func (*Printer) PrintTopLine

func (p *Printer) PrintTopLine()

func (*Printer) Println

func (p *Printer) Println(s string, indent int)

func (*Printer) PrintlnInput

func (p *Printer) PrintlnInput(s string)

func (*Printer) PrintlnPoint

func (p *Printer) PrintlnPoint(s string, indent int)

func (*Printer) RateSetterEnabled

func (p *Printer) RateSetterEnabled()

func (*Printer) Settings

func (p *Printer) Settings()

func (*Printer) SpammerSettings

func (p *Printer) SpammerSettings()

func (*Printer) SpammerStartedBlock

func (p *Printer) SpammerStartedBlock()

func (*Printer) StartedPreparingBlock

func (p *Printer) StartedPreparingBlock(numToPrepareStr string)

func (*Printer) URLExists

func (p *Printer) URLExists()

func (*Printer) URLWarning

func (p *Printer) URLWarning()

type SpammerLog

type SpammerLog struct {
	// contains filtered or unexported fields
}

func NewSpammerLog

func NewSpammerLog() *SpammerLog

func (*SpammerLog) AddSpam

func (s *SpammerLog) AddSpam(config InteractiveConfig) (spamID int)

func (*SpammerLog) LogHistory

func (s *SpammerLog) LogHistory(lastLines int, writer io.Writer)

func (*SpammerLog) LogSelected

func (s *SpammerLog) LogSelected(lines []int, writer io.Writer)

func (*SpammerLog) SetSpamEndTime

func (s *SpammerLog) SetSpamEndTime(spamID int)

func (*SpammerLog) SpamDetails

func (s *SpammerLog) SpamDetails(spamID int) *InteractiveConfig

func (*SpammerLog) StartTime

func (s *SpammerLog) StartTime(spamID int) time.Time

Jump to

Keyboard shortcuts

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