outputable

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatSupported

func FormatSupported(format string) bool

Types

type Log

type Log struct {
	XMLName xml.Name  `json:"-" xml:"log"`
	Msg     string    `json:"msg" xml:"msg"`
	Time    time.Time `json:"time" xml:"time"`
}

func (*Log) ToFormatBytes

func (log *Log) ToFormatBytes(format string) []byte

ToFormatBytes 将log转化为指定格式的字节流表示

func (*Log) ToFormatStr

func (log *Log) ToFormatStr(format string) string

ToFormatStr 转为格式化字符串

type OutObj

type OutObj struct {
	Id       uint            `json:"-" xml:"-" gorm:"primarykey"`
	XMLName  xml.Name        `json:"-" xml:"output"`
	Keywords []string        `json:"keywords" xml:"keywords>keyword"`
	Payloads []string        `json:"payloads" xml:"payloads>payload"`
	Request  *fuzzTypes.Req  `json:"request"  xml:"request"`
	Response *fuzzTypes.Resp `json:"response" xml:"response"`
	Msg      string          `json:"msg,omitempty" xml:"msg,omitempty"`
	Time     time.Time       `json:"time,omitempty" xml:"time,omitempty"`
}

OutObj 用于输出的结构体

func (*OutObj) ToFormatBytes

func (o *OutObj) ToFormatBytes(format string, color bool, verbosity int) []byte

ToFormatBytes 将OutObj转化为特定表示格式的字节流

func (*OutObj) ToFormatStr

func (o *OutObj) ToFormatStr(format string, color bool, verbosity int) string

Jump to

Keyboard shortcuts

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