Documentation ¶
Index ¶
- Constants
- func ExecuteWithHandler(i interface{}, m map[string]func([]byte) [][]byte) ([]string, error)
- func ExecuteWithHandlerWithCallback(i interface{}, m map[string]func([]byte) [][]byte, ...) (res []string, err error)
- func ExecuteWithStringHandler(i interface{}, mStr map[string]func(string) []string) ([]string, error)
- func ExecuteWithStringHandlerWithCallback(i interface{}, mStr map[string]func(string) []string, ...) ([]string, error)
- func ExecuteWithStringHandlerWithCallbackEx(i interface{}, mStr map[string]func(string) []string, ...) ([]string, error)
- func GetMethodAlias(name string) string
- func SetMethodAlias(origin string, names ...string)
- type DataGenerator
- type DataNode
- type DataPart
- type ExecutableNode
- type FuzzExecResult
- type FuzzTagAST
- func (f *FuzzTagAST) Execute(m map[string]func([]byte) [][]byte) (res [][]byte, err error)
- func (f *FuzzTagAST) ExecuteWithCallBack(m map[string]func([]byte) [][]byte, cb func([]byte, [][]byte) bool) (res [][]byte, err error)
- func (a *FuzzTagAST) NewMethodNode(method string, paramNode ExecutableNode) *TagNode
- type FuzzTagLexer
- type Nodes
- type SymbolContext
- type TagNode
- type TokenType
Constants ¶
View Source
const ( TokenType_TAG_OPEN = "TAG_OPEN" TokenType_TAG_CLOSE = "TAG_CLOSE" TokenType_DATA = "DATA" TokenType_METHOND = "Method" TokenType_LEFT_PAREN = "LEFT_PAREN" TokenType_RIGHT_PAREN = "RIGHT_PAREN" )
View Source
const ( TAG_OPEN = "{{" TAG_OPEN_VERBOSE = "TAG_OPEN" TAG_CLOSE = "}}" TAG_CLOSE_VERBOSE = "TAG_CLOSE" LEFT_PAREN = '(' LEFT_PAREN_VERBOSE = "LEFT_PAREN" RIGHT_PAREN = ')' RIGHT_PAREN_VERBOSE = "RIGHT_PAREN" )
View Source
const YakHotPatchErr = "__YakHotPatchErr@"
Variables ¶
This section is empty.
Functions ¶
func ExecuteWithHandler ¶
func GetMethodAlias ¶
func SetMethodAlias ¶
Types ¶
type DataGenerator ¶
type DataGenerator struct {
// contains filtered or unexported fields
}
func NewDataGenerator ¶
func NewDataGenerator() *DataGenerator
type DataNode ¶
type DataNode struct { InParentTagNode bool // contains filtered or unexported fields }
func NewDataNode ¶
func NewDataNode(t ...*token) *DataNode
func (*DataNode) IsExecutable ¶
type ExecutableNode ¶
type FuzzExecResult ¶
type FuzzExecResult struct {
// contains filtered or unexported fields
}
func NewFuzzExecResult ¶
func NewFuzzExecResult(data []byte, showInfo []string) *FuzzExecResult
func (*FuzzExecResult) Data ¶ added in v1.2.8
func (f *FuzzExecResult) Data() []byte
func (*FuzzExecResult) ShowInfo ¶ added in v1.2.8
func (f *FuzzExecResult) ShowInfo() []string
type FuzzTagAST ¶
type FuzzTagAST struct { Lexer *FuzzTagLexer // contains filtered or unexported fields }
func ParseToFuzzTagAST ¶
func ParseToFuzzTagAST(l *FuzzTagLexer) (*FuzzTagAST, error)
func (*FuzzTagAST) ExecuteWithCallBack ¶
func (*FuzzTagAST) NewMethodNode ¶
func (a *FuzzTagAST) NewMethodNode(method string, paramNode ExecutableNode) *TagNode
type FuzzTagLexer ¶
type FuzzTagLexer struct { Origin []byte // contains filtered or unexported fields }
func NewFuzzTagLexer ¶
func NewFuzzTagLexer(i interface{}) *FuzzTagLexer
func (*FuzzTagLexer) ShowTokens ¶
func (f *FuzzTagLexer) ShowTokens()
func (*FuzzTagLexer) Tokens ¶
func (f *FuzzTagLexer) Tokens() []*token
type Nodes ¶
type Nodes struct { IsRoot bool Nodes []ExecutableNode AST *FuzzTagAST InTag bool // contains filtered or unexported fields }
Nodes 一般是根结点
func (*Nodes) SetPayloadCallback ¶
type SymbolContext ¶
type TagNode ¶
type TagNode struct { Method string Params ExecutableNode Symbol int Label string AST *FuzzTagAST RawBytes []byte // contains filtered or unexported fields }
func (*TagNode) IsExecutable ¶
Click to show internal directories.
Click to hide internal directories.