Documentation
¶
Index ¶
- Constants
- func AddJobCounter()
- func AddTaskCounter()
- func ClearTaskCounter()
- func FinishOutput(toWhere int32)
- func GetAllMemOutObjects() []json.RawMessage
- func GetCounterValue(which int8) int64
- func GetMemOutObjects(start int, end int) []json.RawMessage
- func InitOutput(globInfo *fuzzTypes.Fuzz, toWhere int32)
- func Log(toWhere int32, log string)
- func LogOnce(log string, toWhere int32)
- func Logf(toWhere int32, fmtLog string, a ...any)
- func Output(obj *OutObj, toWhere int32)
- func PendLog(log string)
- func ScreenClose()
- func SetJobTotal(total int64)
- func SetTaskTotal(total int64)
- func UpdateScreenInfoPage(newInfo *fuzzTypes.Fuzz)
- func WaitForScreenQuit()
- type OutObj
Constants ¶
View Source
const ( OutToFile = 0x1 // OutToFile 输出到文件 OutToScreen = 0x2 // OutToScreen 输出到屏幕(termui) OutToNativeStdout = 0x4 // OutToNativeStdout 直接输出到stdout OutToDB = 0x8 // OutToDB 输出到db文件中(这个暂时不做了,因为我发现gorm库打包完编译出来的文件直接会到30m以上) OutToMem = 0x10 // OutToMem 输出到内存缓冲区中(这个标志位不直接通过命令行参数或job成员设置,仅在被动模式下提供给api接口使用) // CntTask 获取task个数 CntTask = 0 // TotalTask 获取task总数 TotalTask = 1 // CntJob 获取job个数 CntJob = 2 // TotalJob 获取job总数 TotalJob = 3 )
Variables ¶
This section is empty.
Functions ¶
func GetAllMemOutObjects ¶ added in v0.1.7
func GetAllMemOutObjects() []json.RawMessage
func GetCounterValue ¶ added in v0.1.7
func GetMemOutObjects ¶ added in v0.1.7
func GetMemOutObjects(start int, end int) []json.RawMessage
func InitOutput ¶
InitOutput 初始化输出。此函数不能在多协程调用
func PendLog ¶ added in v0.1.1
func PendLog(log string)
PendLog 在init函数调用前记录日志,在init完成后一次性推送,若已经调用了init函数,则不能再使用此函数输出日志,且此函数不能多协程调用
func ScreenClose ¶
func ScreenClose()
func UpdateScreenInfoPage ¶ added in v0.1.1
func WaitForScreenQuit ¶
func WaitForScreenQuit()
Types ¶
Click to show internal directories.
Click to hide internal directories.