utils

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(err error) bool

func CheckErrorExit

func CheckErrorExit(err error) bool

func GetSourceIP

func GetSourceIP(r *http.Request) string

func ReadRequestFromFile

func ReadRequestFromFile(filename string) (*http.Request, error)

Types

type ProgessBar

type ProgessBar struct {
	// contains filtered or unexported fields
}
var (
	ScreenshotBar *ProgessBar
	CrawlerBar    *ProgessBar
)

func NewBar

func NewBar(name string) *ProgessBar

func (*ProgessBar) Add

func (bar *ProgessBar) Add(delta int)

func (*ProgessBar) AddAndIncrementTotal

func (bar *ProgessBar) AddAndIncrementTotal(delta int)

func (*ProgessBar) Done

func (bar *ProgessBar) Done()

func (*ProgessBar) SetTotal

func (bar *ProgessBar) SetTotal(total int)

func (*ProgessBar) Wait

func (bar *ProgessBar) Wait()

type WaitGroupBar

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

func InitWaitGroupBar

func InitWaitGroupBar() *WaitGroupBar

func (*WaitGroupBar) AddBar

func (groupBar *WaitGroupBar) AddBar(name string, main bool) *ProgessBar

func (*WaitGroupBar) Wait

func (groupBar *WaitGroupBar) Wait()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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