Documentation
¶
Index ¶
- type Event
- type EventInfo
- type Payload
- func (p *Payload) ExportField(ctx context.Context, current string, new string)
- func (p *Payload) FromJSON(ctx context.Context, data []byte) *Payload
- func (p *Payload) QueryField(ctx context.Context, query string) interface{}
- func (p *Payload) SetField(ctx context.Context, query string, data interface{})
- func (p *Payload) ToJSON(ctx context.Context) []byte
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventInfo ¶
type EventInfo struct {
Input string `yaml:"input" json:"input"`
Type string `yaml:"type" json:"type"`
}
EventInfo describes event information data
type Payload ¶
type Payload struct {
Event *EventInfo `yaml:"event" json:"event"`
Env map[string]interface{} `yaml:"env" json:"env"`
Vars map[string]interface{} `yaml:"vars" json:"vars"`
Req interface{} `yaml:"req" json:"req"`
Resp map[string]interface{} `yaml:"resp" json:"resp"`
Export map[string]interface{} `yaml:"export" json:"export"`
Match map[string]interface{} `yaml:"match" json:"match"`
}
Payload is the struct with all context sequences
func (*Payload) ExportField ¶
ExportField adds specified field to export map
func (*Payload) QueryField ¶
QueryField gets data from specified field in payload
Click to show internal directories.
Click to hide internal directories.