Documentation ¶
Index ¶
- Constants
- type Channel
- type Connector
- type Connectors
- type DelayNode
- func (b DelayNode) Busy() bool
- func (n DelayNode) GetInjections() map[string]transmission.Transmission
- func (b DelayNode) GetVars() *VarStorage
- func (b DelayNode) ID() uuid.UUID
- func (b DelayNode) IsReadOnly() bool
- func (b DelayNode) LastInput() time.Time
- func (b DelayNode) MergeVars(vars *VarStorage)
- func (b DelayNode) Name() string
- func (b DelayNode) SetID(id uuid.UUID)
- func (b DelayNode) SetName(name string)
- func (b DelayNode) SetVars(vars *VarStorage)
- func (n *DelayNode) Start(ctx context.Context, in <-chan Input, out chan<- OutputInstance, ...) error
- func (b DelayNode) Type() Type
- type ExtractorNode
- func (b ExtractorNode) Busy() bool
- func (n ExtractorNode) GetInjections() map[string]transmission.Transmission
- func (b ExtractorNode) GetVars() *VarStorage
- func (b ExtractorNode) ID() uuid.UUID
- func (b ExtractorNode) IsReadOnly() bool
- func (b ExtractorNode) LastInput() time.Time
- func (b ExtractorNode) MergeVars(vars *VarStorage)
- func (b ExtractorNode) Name() string
- func (b ExtractorNode) SetID(id uuid.UUID)
- func (b ExtractorNode) SetName(name string)
- func (b ExtractorNode) SetVars(vars *VarStorage)
- func (n *ExtractorNode) Start(ctx context.Context, in <-chan Input, out chan<- OutputInstance, ...) error
- func (b ExtractorNode) Type() Type
- type FuzzerNode
- func (b FuzzerNode) Busy() bool
- func (n FuzzerNode) GetInjections() map[string]transmission.Transmission
- func (b FuzzerNode) GetVars() *VarStorage
- func (b FuzzerNode) ID() uuid.UUID
- func (b FuzzerNode) IsReadOnly() bool
- func (b FuzzerNode) LastInput() time.Time
- func (b FuzzerNode) MergeVars(vars *VarStorage)
- func (b FuzzerNode) Name() string
- func (b FuzzerNode) SetID(id uuid.UUID)
- func (b FuzzerNode) SetName(name string)
- func (b FuzzerNode) SetVars(vars *VarStorage)
- func (n *FuzzerNode) Start(ctx context.Context, in <-chan Input, out chan<- OutputInstance, ...) error
- func (b FuzzerNode) Type() Type
- type IfNode
- func (b IfNode) Busy() bool
- func (n IfNode) GetInjections() map[string]transmission.Transmission
- func (b IfNode) GetVars() *VarStorage
- func (b IfNode) ID() uuid.UUID
- func (b IfNode) IsReadOnly() bool
- func (b IfNode) LastInput() time.Time
- func (b IfNode) MergeVars(vars *VarStorage)
- func (b IfNode) Name() string
- func (b IfNode) SetID(id uuid.UUID)
- func (b IfNode) SetName(name string)
- func (b IfNode) SetVars(vars *VarStorage)
- func (n *IfNode) Start(ctx context.Context, in <-chan Input, out chan<- OutputInstance, ...) error
- func (b IfNode) Type() Type
- type Input
- type Link
- type LinkDirection
- type MergerNode
- func (b MergerNode) Busy() bool
- func (n MergerNode) GetInjections() map[string]transmission.Transmission
- func (b MergerNode) GetVars() *VarStorage
- func (b MergerNode) ID() uuid.UUID
- func (b MergerNode) IsReadOnly() bool
- func (b MergerNode) LastInput() time.Time
- func (b MergerNode) MergeVars(vars *VarStorage)
- func (b MergerNode) Name() string
- func (b MergerNode) SetID(id uuid.UUID)
- func (b MergerNode) SetName(name string)
- func (b MergerNode) SetVars(vars *VarStorage)
- func (n *MergerNode) Start(ctx context.Context, in <-chan Input, out chan<- OutputInstance, ...) error
- func (b MergerNode) Type() Type
- type Node
- type Output
- type OutputInstance
- type OutputM
- type OutputNode
- func (b OutputNode) Busy() bool
- func (n OutputNode) GetInjections() map[string]transmission.Transmission
- func (b OutputNode) GetVars() *VarStorage
- func (b OutputNode) ID() uuid.UUID
- func (b OutputNode) IsReadOnly() bool
- func (b OutputNode) LastInput() time.Time
- func (b OutputNode) MergeVars(vars *VarStorage)
- func (b OutputNode) Name() string
- func (b OutputNode) SetID(id uuid.UUID)
- func (b OutputNode) SetName(name string)
- func (b OutputNode) SetVars(vars *VarStorage)
- func (n *OutputNode) Start(ctx context.Context, in <-chan Input, _ chan<- OutputInstance, ...) error
- func (b OutputNode) Type() Type
- type RequestNode
- func (b RequestNode) Busy() bool
- func (n *RequestNode) GetInjections() map[string]transmission.Transmission
- func (b RequestNode) GetVars() *VarStorage
- func (b RequestNode) ID() uuid.UUID
- func (b RequestNode) IsReadOnly() bool
- func (b RequestNode) LastInput() time.Time
- func (b RequestNode) MergeVars(vars *VarStorage)
- func (b RequestNode) Name() string
- func (b RequestNode) SetID(id uuid.UUID)
- func (b RequestNode) SetName(name string)
- func (b RequestNode) SetVars(vars *VarStorage)
- func (n *RequestNode) Start(ctx context.Context, in <-chan Input, out chan<- OutputInstance, ...) error
- func (b RequestNode) Type() Type
- type SenderNode
- func (b SenderNode) Busy() bool
- func (n SenderNode) GetInjections() map[string]transmission.Transmission
- func (b SenderNode) GetVars() *VarStorage
- func (b SenderNode) ID() uuid.UUID
- func (b SenderNode) IsReadOnly() bool
- func (b SenderNode) LastInput() time.Time
- func (b SenderNode) MergeVars(vars *VarStorage)
- func (b SenderNode) Name() string
- func (b SenderNode) SetID(id uuid.UUID)
- func (b SenderNode) SetName(name string)
- func (b SenderNode) SetVars(vars *VarStorage)
- func (n *SenderNode) Start(ctx context.Context, in <-chan Input, out chan<- OutputInstance, ...) error
- func (b SenderNode) Type() Type
- type StartNode
- func (b StartNode) Busy() bool
- func (n StartNode) GetInjections() map[string]transmission.Transmission
- func (b StartNode) GetVars() *VarStorage
- func (b StartNode) ID() uuid.UUID
- func (b StartNode) IsReadOnly() bool
- func (b StartNode) LastInput() time.Time
- func (b StartNode) MergeVars(vars *VarStorage)
- func (b StartNode) Name() string
- func (b StartNode) SetID(id uuid.UUID)
- func (b StartNode) SetName(name string)
- func (b StartNode) SetVars(vars *VarStorage)
- func (n *StartNode) Start(ctx context.Context, in <-chan Input, out chan<- OutputInstance, ...) error
- func (b StartNode) Type() Type
- type StatusFilterNode
- func (b StatusFilterNode) Busy() bool
- func (n StatusFilterNode) GetInjections() map[string]transmission.Transmission
- func (b StatusFilterNode) GetVars() *VarStorage
- func (b StatusFilterNode) ID() uuid.UUID
- func (b StatusFilterNode) IsReadOnly() bool
- func (b StatusFilterNode) LastInput() time.Time
- func (b StatusFilterNode) MergeVars(vars *VarStorage)
- func (b StatusFilterNode) Name() string
- func (b StatusFilterNode) SetID(id uuid.UUID)
- func (b StatusFilterNode) SetName(name string)
- func (b StatusFilterNode) SetVars(vars *VarStorage)
- func (n *StatusFilterNode) Start(ctx context.Context, in <-chan Input, out chan<- OutputInstance, ...) error
- func (b StatusFilterNode) Type() Type
- type TransmissionM
- type Type
- type VarStorage
- func (s *VarStorage) AddStaticInputValue(key string, value transmission.Transmission) error
- func (s *VarStorage) FindInput(name string) (Connector, bool)
- func (s *VarStorage) FindOutput(name string) (Connector, bool)
- func (s *VarStorage) GetInputs() Connectors
- func (s *VarStorage) GetOutputs() Connectors
- func (s *VarStorage) MarshalJSON() ([]byte, error)
- func (s *VarStorage) Merge(other *VarStorage)
- func (s *VarStorage) Pack() (*VarStorageM, error)
- func (s *VarStorage) ReadInputBool(name string, dynamicInputs map[string]transmission.Transmission) (bool, error)
- func (s *VarStorage) ReadInputChoice(name string, dynamicInputs map[string]transmission.Transmission) (string, error)
- func (s *VarStorage) ReadInputInt(name string, dynamicInputs map[string]transmission.Transmission) (int, error)
- func (s *VarStorage) ReadInputList(name string, dynamicInputs map[string]transmission.Transmission) (transmission.Lister, error)
- func (s *VarStorage) ReadInputMap(name string, dynamicInputs map[string]transmission.Transmission) (map[string]string, error)
- func (s *VarStorage) ReadInputRequest(name string, dynamicInputs map[string]transmission.Transmission) (*packaging.HttpRequest, error)
- func (s *VarStorage) ReadInputResponse(name string, dynamicInputs map[string]transmission.Transmission) (*packaging.HttpResponse, error)
- func (s *VarStorage) ReadInputString(name string, dynamicInputs map[string]transmission.Transmission) (string, error)
- func (s *VarStorage) ReadValue(name string, dynamicInputs map[string]transmission.Transmission) (transmission.Transmission, error)
- func (s *VarStorage) SetStaticInputValues(values map[string]transmission.Transmission) error
- func (s *VarStorage) UnmarshalJSON(data []byte) error
- func (s *VarStorage) Validate(params map[string]transmission.Transmission) error
- type VarStorageM
- type VarsNode
- func (b VarsNode) Busy() bool
- func (n *VarsNode) GetInjections() map[string]transmission.Transmission
- func (b VarsNode) GetVars() *VarStorage
- func (b VarsNode) ID() uuid.UUID
- func (b VarsNode) IsReadOnly() bool
- func (b VarsNode) LastInput() time.Time
- func (b VarsNode) MergeVars(vars *VarStorage)
- func (b VarsNode) Name() string
- func (b VarsNode) SetID(id uuid.UUID)
- func (b VarsNode) SetName(name string)
- func (b VarsNode) SetVars(vars *VarStorage)
- func (n *VarsNode) Start(ctx context.Context, in <-chan Input, out chan<- OutputInstance, ...) error
- func (b VarsNode) Type() Type
Constants ¶
View Source
const ( ExtractBody = "body" ExtractXPathXML = "xpath_xml" ExtractXPathHTML = "xpath_html" ExtractXPathJSON = "xpath_json" ExtractRegexBody = "regex_body" ExtractHeader = "header" ExtractStatus = "status" ExtractSession = "session" )
View Source
const ( IfEqual = "equal" IfNotEqual = "equal_not" IfGreater = "greater" IfGreaterOrEqual = "greater_or_equal" IfLess = "less" IfLessOrEqual = "less_or_equal" IfContains = "contains" IfNotContains = "contains_not" IfRegexMatch = "regex_match" IfRegexNotMatch = "regex_match_not" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct { Name string `json:"name"` Type transmission.ParentType `json:"type"` Linkable bool `json:"linkable"` Description string `json:"description"` }
func NewConnector ¶
func NewConnector(name string, t transmission.ParentType, linkable bool, description ...string) Connector
type Connectors ¶
type Connectors []Connector
func (Connectors) FindByName ¶
func (c Connectors) FindByName(name string) (Connector, bool)
type DelayNode ¶
type DelayNode struct {
// contains filtered or unexported fields
}
func (DelayNode) GetInjections ¶
func (n DelayNode) GetInjections() map[string]transmission.Transmission
func (DelayNode) GetVars ¶
func (b DelayNode) GetVars() *VarStorage
func (DelayNode) IsReadOnly ¶
func (b DelayNode) IsReadOnly() bool
func (DelayNode) MergeVars ¶
func (b DelayNode) MergeVars(vars *VarStorage)
func (DelayNode) SetVars ¶
func (b DelayNode) SetVars(vars *VarStorage)
type ExtractorNode ¶ added in v0.0.2
type ExtractorNode struct {
// contains filtered or unexported fields
}
func NewExtractor ¶ added in v0.0.2
func NewExtractor() *ExtractorNode
func (ExtractorNode) GetInjections ¶ added in v0.0.2
func (n ExtractorNode) GetInjections() map[string]transmission.Transmission
func (ExtractorNode) GetVars ¶ added in v0.0.2
func (b ExtractorNode) GetVars() *VarStorage
func (ExtractorNode) IsReadOnly ¶ added in v0.0.2
func (b ExtractorNode) IsReadOnly() bool
func (ExtractorNode) MergeVars ¶ added in v0.0.2
func (b ExtractorNode) MergeVars(vars *VarStorage)
func (ExtractorNode) SetVars ¶ added in v0.0.2
func (b ExtractorNode) SetVars(vars *VarStorage)
func (*ExtractorNode) Start ¶ added in v0.0.2
func (n *ExtractorNode) Start(ctx context.Context, in <-chan Input, out chan<- OutputInstance, _ chan<- Output) error
type FuzzerNode ¶
type FuzzerNode struct {
// contains filtered or unexported fields
}
func NewFuzzer ¶
func NewFuzzer() *FuzzerNode
func (FuzzerNode) GetInjections ¶
func (n FuzzerNode) GetInjections() map[string]transmission.Transmission
func (FuzzerNode) GetVars ¶
func (b FuzzerNode) GetVars() *VarStorage
func (FuzzerNode) IsReadOnly ¶
func (b FuzzerNode) IsReadOnly() bool
func (FuzzerNode) MergeVars ¶
func (b FuzzerNode) MergeVars(vars *VarStorage)
func (FuzzerNode) SetVars ¶
func (b FuzzerNode) SetVars(vars *VarStorage)
func (*FuzzerNode) Start ¶
func (n *FuzzerNode) Start(ctx context.Context, in <-chan Input, out chan<- OutputInstance, _ chan<- Output) error
type IfNode ¶ added in v0.0.2
type IfNode struct {
// contains filtered or unexported fields
}
func (IfNode) GetInjections ¶ added in v0.0.2
func (n IfNode) GetInjections() map[string]transmission.Transmission
func (IfNode) GetVars ¶ added in v0.0.2
func (b IfNode) GetVars() *VarStorage
func (IfNode) IsReadOnly ¶ added in v0.0.2
func (b IfNode) IsReadOnly() bool
func (IfNode) MergeVars ¶ added in v0.0.2
func (b IfNode) MergeVars(vars *VarStorage)
func (IfNode) SetVars ¶ added in v0.0.2
func (b IfNode) SetVars(vars *VarStorage)
type Input ¶
type Input struct { Last bool Data map[string]transmission.Transmission }
type Link ¶
type Link struct { From LinkDirection To LinkDirection Annotation string }
type LinkDirection ¶
type MergerNode ¶ added in v0.0.4
type MergerNode struct {
// contains filtered or unexported fields
}
func NewMerger ¶ added in v0.0.4
func NewMerger() *MergerNode
func (MergerNode) GetInjections ¶ added in v0.0.4
func (n MergerNode) GetInjections() map[string]transmission.Transmission
func (MergerNode) GetVars ¶ added in v0.0.4
func (b MergerNode) GetVars() *VarStorage
func (MergerNode) IsReadOnly ¶ added in v0.0.4
func (b MergerNode) IsReadOnly() bool
func (MergerNode) MergeVars ¶ added in v0.0.4
func (b MergerNode) MergeVars(vars *VarStorage)
func (MergerNode) SetVars ¶ added in v0.0.4
func (b MergerNode) SetVars(vars *VarStorage)
func (*MergerNode) Start ¶ added in v0.0.4
func (n *MergerNode) Start(ctx context.Context, in <-chan Input, out chan<- OutputInstance, _ chan<- Output) error
type Node ¶
type Node interface { IsReadOnly() bool ID() uuid.UUID SetID(uuid.UUID) SetName(string) Type() Type Name() string GetInputs() Connectors SetStaticInputValues(map[string]transmission.Transmission) error AddStaticInputValue(string, transmission.Transmission) error GetOutputs() Connectors GetVars() *VarStorage SetVars(*VarStorage) MergeVars(*VarStorage) Validate(params map[string]transmission.Transmission) error LastInput() time.Time Busy() bool GetInjections() map[string]transmission.Transmission Start(context.Context, <-chan Input, chan<- OutputInstance, chan<- Output) error }
type OutputInstance ¶
type OutputInstance struct { OutputName string Current int Total int Complete bool Data transmission.Transmission }
type OutputNode ¶
type OutputNode struct {
// contains filtered or unexported fields
}
func NewOutput ¶
func NewOutput() *OutputNode
func (OutputNode) GetInjections ¶
func (n OutputNode) GetInjections() map[string]transmission.Transmission
func (OutputNode) GetVars ¶
func (b OutputNode) GetVars() *VarStorage
func (OutputNode) IsReadOnly ¶
func (b OutputNode) IsReadOnly() bool
func (OutputNode) MergeVars ¶
func (b OutputNode) MergeVars(vars *VarStorage)
func (OutputNode) SetVars ¶
func (b OutputNode) SetVars(vars *VarStorage)
func (*OutputNode) Start ¶
func (n *OutputNode) Start(ctx context.Context, in <-chan Input, _ chan<- OutputInstance, output chan<- Output) error
type RequestNode ¶
type RequestNode struct {
// contains filtered or unexported fields
}
func NewRequest ¶
func NewRequest() *RequestNode
func (*RequestNode) GetInjections ¶
func (n *RequestNode) GetInjections() map[string]transmission.Transmission
func (RequestNode) GetVars ¶
func (b RequestNode) GetVars() *VarStorage
func (RequestNode) IsReadOnly ¶
func (b RequestNode) IsReadOnly() bool
func (RequestNode) MergeVars ¶
func (b RequestNode) MergeVars(vars *VarStorage)
func (RequestNode) SetVars ¶
func (b RequestNode) SetVars(vars *VarStorage)
func (*RequestNode) Start ¶
func (n *RequestNode) Start(ctx context.Context, in <-chan Input, out chan<- OutputInstance, _ chan<- Output) error
type SenderNode ¶
type SenderNode struct {
// contains filtered or unexported fields
}
func NewSender ¶
func NewSender() *SenderNode
func (SenderNode) GetInjections ¶
func (n SenderNode) GetInjections() map[string]transmission.Transmission
func (SenderNode) GetVars ¶
func (b SenderNode) GetVars() *VarStorage
func (SenderNode) IsReadOnly ¶
func (b SenderNode) IsReadOnly() bool
func (SenderNode) MergeVars ¶
func (b SenderNode) MergeVars(vars *VarStorage)
func (SenderNode) SetVars ¶
func (b SenderNode) SetVars(vars *VarStorage)
func (*SenderNode) Start ¶
func (n *SenderNode) Start(ctx context.Context, in <-chan Input, out chan<- OutputInstance, _ chan<- Output) error
type StartNode ¶
type StartNode struct {
// contains filtered or unexported fields
}
func (StartNode) GetInjections ¶
func (n StartNode) GetInjections() map[string]transmission.Transmission
func (StartNode) GetVars ¶
func (b StartNode) GetVars() *VarStorage
func (StartNode) IsReadOnly ¶
func (b StartNode) IsReadOnly() bool
func (StartNode) MergeVars ¶
func (b StartNode) MergeVars(vars *VarStorage)
func (StartNode) SetVars ¶
func (b StartNode) SetVars(vars *VarStorage)
type StatusFilterNode ¶
type StatusFilterNode struct {
// contains filtered or unexported fields
}
func NewStatusFilter ¶
func NewStatusFilter() *StatusFilterNode
func (StatusFilterNode) GetInjections ¶
func (n StatusFilterNode) GetInjections() map[string]transmission.Transmission
func (StatusFilterNode) GetVars ¶
func (b StatusFilterNode) GetVars() *VarStorage
func (StatusFilterNode) IsReadOnly ¶
func (b StatusFilterNode) IsReadOnly() bool
func (StatusFilterNode) MergeVars ¶
func (b StatusFilterNode) MergeVars(vars *VarStorage)
func (StatusFilterNode) SetVars ¶
func (b StatusFilterNode) SetVars(vars *VarStorage)
func (*StatusFilterNode) Start ¶
func (n *StatusFilterNode) Start(ctx context.Context, in <-chan Input, out chan<- OutputInstance, _ chan<- Output) error
type TransmissionM ¶
type TransmissionM struct { ParentType uint32 `json:"type"` ChildType uint32 `json:"internal"` Data interface{} `json:"data"` }
func (*TransmissionM) Unpack ¶
func (m *TransmissionM) Unpack() (transmission.Transmission, error)
type VarStorage ¶
type VarStorage struct {
// contains filtered or unexported fields
}
func NewVarStorage ¶
func NewVarStorage(inputs, outputs Connectors, defaults map[string]transmission.Transmission) *VarStorage
func (*VarStorage) AddStaticInputValue ¶
func (s *VarStorage) AddStaticInputValue(key string, value transmission.Transmission) error
func (*VarStorage) FindOutput ¶
func (s *VarStorage) FindOutput(name string) (Connector, bool)
func (*VarStorage) GetInputs ¶
func (s *VarStorage) GetInputs() Connectors
func (*VarStorage) GetOutputs ¶
func (s *VarStorage) GetOutputs() Connectors
func (*VarStorage) MarshalJSON ¶
func (s *VarStorage) MarshalJSON() ([]byte, error)
func (*VarStorage) Merge ¶
func (s *VarStorage) Merge(other *VarStorage)
func (*VarStorage) Pack ¶
func (s *VarStorage) Pack() (*VarStorageM, error)
func (*VarStorage) ReadInputBool ¶
func (s *VarStorage) ReadInputBool(name string, dynamicInputs map[string]transmission.Transmission) (bool, error)
func (*VarStorage) ReadInputChoice ¶ added in v0.0.2
func (s *VarStorage) ReadInputChoice(name string, dynamicInputs map[string]transmission.Transmission) (string, error)
func (*VarStorage) ReadInputInt ¶
func (s *VarStorage) ReadInputInt(name string, dynamicInputs map[string]transmission.Transmission) (int, error)
func (*VarStorage) ReadInputList ¶
func (s *VarStorage) ReadInputList(name string, dynamicInputs map[string]transmission.Transmission) (transmission.Lister, error)
func (*VarStorage) ReadInputMap ¶
func (s *VarStorage) ReadInputMap(name string, dynamicInputs map[string]transmission.Transmission) (map[string]string, error)
func (*VarStorage) ReadInputRequest ¶
func (s *VarStorage) ReadInputRequest(name string, dynamicInputs map[string]transmission.Transmission) (*packaging.HttpRequest, error)
func (*VarStorage) ReadInputResponse ¶
func (s *VarStorage) ReadInputResponse(name string, dynamicInputs map[string]transmission.Transmission) (*packaging.HttpResponse, error)
func (*VarStorage) ReadInputString ¶
func (s *VarStorage) ReadInputString(name string, dynamicInputs map[string]transmission.Transmission) (string, error)
func (*VarStorage) ReadValue ¶
func (s *VarStorage) ReadValue(name string, dynamicInputs map[string]transmission.Transmission) (transmission.Transmission, error)
func (*VarStorage) SetStaticInputValues ¶
func (s *VarStorage) SetStaticInputValues(values map[string]transmission.Transmission) error
func (*VarStorage) UnmarshalJSON ¶
func (s *VarStorage) UnmarshalJSON(data []byte) error
func (*VarStorage) Validate ¶
func (s *VarStorage) Validate(params map[string]transmission.Transmission) error
type VarStorageM ¶
type VarStorageM struct { Inputs Connectors `json:"inputs"` Outputs Connectors `json:"outputs"` Static map[string]TransmissionM `json:"static"` }
func (*VarStorageM) Unpack ¶
func (m *VarStorageM) Unpack() (*VarStorage, error)
type VarsNode ¶
type VarsNode struct {
// contains filtered or unexported fields
}
func (*VarsNode) GetInjections ¶
func (n *VarsNode) GetInjections() map[string]transmission.Transmission
func (VarsNode) GetVars ¶
func (b VarsNode) GetVars() *VarStorage
func (VarsNode) IsReadOnly ¶
func (b VarsNode) IsReadOnly() bool
func (VarsNode) MergeVars ¶
func (b VarsNode) MergeVars(vars *VarStorage)
func (VarsNode) SetVars ¶
func (b VarsNode) SetVars(vars *VarStorage)
Click to show internal directories.
Click to hide internal directories.