Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadDBWithOptions ¶
func LoadDBWithOptions(options DBOptions)
Types ¶
type DBOptions ¶
func (*DBOptions) ShouldReset ¶
type Interaction ¶
type Interaction struct {
gorm.Model
PayloadID uint `json:"payload_id"`
Payload Payload `json:"-"`
ProjectID uint `json:"project_id"`
Project Project `json:"-"`
RemoteAddr string `json:"remote_addr" gorm:"index:idx_remote_client"`
RemotePort string `json:"remote_port"`
Handler string `json:"handler"`
RequestType string `json:"request_type"`
RequestTarget string `json:"request_target"`
Protocol string `json:"protocol"`
UserAgent string `json:"user_agent" gorm:"index:idx_remote_client"`
Headers string `json:"headers"`
Data []byte `json:"data"`
}
func SortedInteractions ¶ added in v0.0.19
func SortedInteractions(limit int) []Interaction
type Payload ¶
type Payload struct {
Name string `json,yaml:"name" gorm:"unique"`
Description string `json,yaml:"description"`
Type string `json,yaml:"type"`
IsFinal bool `json,yaml:"is_final"`
SortOrder int `yaml:"sort_order"`
Pattern string `json,yaml:"pattern"`
InternalFunction string `json,yaml:"internal_function"`
Data string `json,yaml:"data"`
ProjectID uint `json,yaml:"project_id"`
Project *Project `yaml:"-"`
gorm.Model
// contains filtered or unexported fields
}
func SortedPayloads ¶
func SortedPayloads() []Payload
func (*Payload) PatternRegexp ¶
Click to show internal directories.
Click to hide internal directories.