Documentation ¶
Index ¶
- Variables
- type Detail
- type Poc
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetBody() []byte
- func (x *Request) GetContentType() string
- func (x *Request) GetHeaders() map[string]string
- func (x *Request) GetMethod() string
- func (x *Request) GetUrl() *UrlType
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetBody() []byte
- func (x *Response) GetContentType() string
- func (x *Response) GetHeaders() map[string]string
- func (x *Response) GetStatus() int32
- func (x *Response) GetUrl() *UrlType
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type Reverse
- func (*Reverse) Descriptor() ([]byte, []int)deprecated
- func (x *Reverse) GetDomain() string
- func (x *Reverse) GetIp() string
- func (x *Reverse) GetIsDomainNameServer() bool
- func (x *Reverse) GetUrl() *UrlType
- func (*Reverse) ProtoMessage()
- func (x *Reverse) ProtoReflect() protoreflect.Message
- func (x *Reverse) Reset()
- func (x *Reverse) String() string
- type Rule
- type Task
- type UrlType
- func (*UrlType) Descriptor() ([]byte, []int)deprecated
- func (x *UrlType) GetDomain() string
- func (x *UrlType) GetFragment() string
- func (x *UrlType) GetHost() string
- func (x *UrlType) GetPath() string
- func (x *UrlType) GetPort() string
- func (x *UrlType) GetQuery() string
- func (x *UrlType) GetScheme() string
- func (*UrlType) ProtoMessage()
- func (x *UrlType) ProtoReflect() protoreflect.Message
- func (x *UrlType) Reset()
- func (x *UrlType) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_requests_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Poc ¶
type Poc struct { Params []string `yaml:"params"` Name string `yaml:"name"` Set yaml.MapSlice `yaml:"set"` Rules []Rule `yaml:"rules"` Groups map[string][]Rule `yaml:"groups"` Detail Detail `yaml:"detail"` }
Rules 和 Groups 只能存在一个
type Request ¶
type Request struct { Url *UrlType `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` Headers map[string]string `` /* 155-byte string literal not displayed */ ContentType string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` Body []byte `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) GetContentType ¶
func (*Request) GetHeaders ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Url *UrlType `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Headers map[string]string `` /* 155-byte string literal not displayed */ ContentType string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` Body []byte `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetContentType ¶
func (*Response) GetHeaders ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type Reverse ¶
type Reverse struct { Url *UrlType `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"` IsDomainNameServer bool `protobuf:"varint,4,opt,name=is_domain_name_server,json=isDomainNameServer,proto3" json:"is_domain_name_server,omitempty"` // contains filtered or unexported fields }
func (*Reverse) Descriptor
deprecated
func (*Reverse) GetIsDomainNameServer ¶
func (*Reverse) ProtoMessage ¶
func (*Reverse) ProtoMessage()
func (*Reverse) ProtoReflect ¶
func (x *Reverse) ProtoReflect() protoreflect.Message
type Rule ¶
type Rule struct { Method string `yaml:"method"` Path string `yaml:"path"` Headers map[string]string `yaml:"headers"` Body string `yaml:"body"` Search string `yaml:"search"` FollowRedirects bool `yaml:"follow_redirects"` Expression string `yaml:"expression"` }
参考 pocassist/blob/master/poc/rule/rule.go 单个规则
type UrlType ¶
type UrlType struct { Scheme string `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty"` Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` Port string `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"` Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` Query string `protobuf:"bytes,6,opt,name=query,proto3" json:"query,omitempty"` Fragment string `protobuf:"bytes,7,opt,name=fragment,proto3" json:"fragment,omitempty"` // contains filtered or unexported fields }
func (*UrlType) Descriptor
deprecated
func (*UrlType) GetFragment ¶
func (*UrlType) ProtoMessage ¶
func (*UrlType) ProtoMessage()
func (*UrlType) ProtoReflect ¶
func (x *UrlType) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.