output

package
v0.2.0-2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutToFile   = outputFlag.OutToFile   // OutToFile 输出到文件
	OutToTview  = outputFlag.OutToTview  // OutToTview 输出到tview
	OutToStdout = outputFlag.OutToStdout // OutToStdout 直接输出到stdout
	OutToDB     = outputFlag.OutToDB     // OutToDB 输出到db文件中(这个暂时不做了,因为我发现gorm库打包完编译出来的文件直接会到30m以上)
	OutToChan   = outputFlag.OutToChan   // OutToChan 输出到管道缓冲区中(这个标志位不直接通过命令行参数或job成员设置,仅在被动模式下提供给api接口使用)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter added in v0.2.0

type Counter = counter.Counter

type Ctx added in v0.2.0

type Ctx outCtx.OutputCtx // outCtx.OutputCtx仅定义类成员,类方法在此文件中定义

func NewOutputCtx added in v0.2.0

func NewOutputCtx(outSetting *fuzzTypes.OutputSetting, jid int) (*Ctx, error)

NewOutputCtx 根据输出设置,生成一个输出上下文,从而在之后可以使用此上下文进行输出

func (*Ctx) Close added in v0.2.0

func (c *Ctx) Close() error

Close 关闭一个输出上下文

func (*Ctx) Log added in v0.2.0

func (c *Ctx) Log(log *outputable.Log) error

Log 输出一条日志

func (*Ctx) LogFmtMsg added in v0.2.0

func (c *Ctx) LogFmtMsg(format string, a ...any) error

LogFmtMsg 格式化输出日志

func (*Ctx) Output added in v0.2.0

func (c *Ctx) Output(obj *OutObj) error

Output 向输出上下文中输出数据

type Log

type Log = outputable.Log

type OutObj added in v0.1.7

type OutObj = outputable.OutObj

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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