app

package
v0.0.0-...-01d7cf2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CLI

func CLI(args []string, app BaseApp) int

CLI show the entrance for main program

Types

type BaseApp

type BaseApp interface {
	// contains filtered or unexported methods
}

BaseApp defines how app works

type DemoApp

type DemoApp struct {
	LogFileName string
	MaxWorker   int
	Times       int64
	Qps         int

	*log.Logger
	// contains filtered or unexported fields
}

func (*DemoApp) SetQps

func (app *DemoApp) SetQps(qps int) error

type RegexDetectApp

type RegexDetectApp struct {
	InputFileName  string
	OutputFileName string
	LogFileName    string
	DetectType     string
	Worker         int

	*log.Logger
	// contains filtered or unexported fields
}

func (*RegexDetectApp) String

func (app *RegexDetectApp) String() string

type RobotApp

type RobotApp struct {
	Times  int64
	QPS    int64
	Worker int
	// contains filtered or unexported fields
}

func (*RobotApp) SetNewLimiter

func (app *RobotApp) SetNewLimiter(qps int)

SetNewLimiter changes built-in rateLimiter

Jump to

Keyboard shortcuts

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