methodwebtest

package
v0.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(b bool) *bool

Bool returns a pointer to the given bool value.

func Byte

func Byte(b byte) *byte

Byte returns a pointer to the given byte value.

func Complex64

func Complex64(c complex64) *complex64

Complex64 returns a pointer to the given complex64 value.

func Complex128

func Complex128(c complex128) *complex128

Complex128 returns a pointer to the given complex128 value.

func Float32

func Float32(f float32) *float32

Float32 returns a pointer to the given float32 value.

func Float64

func Float64(f float64) *float64

Float64 returns a pointer to the given float64 value.

func Int

func Int(i int) *int

Int returns a pointer to the given int value.

func Int8

func Int8(i int8) *int8

Int8 returns a pointer to the given int8 value.

func Int16

func Int16(i int16) *int16

Int16 returns a pointer to the given int16 value.

func Int32

func Int32(i int32) *int32

Int32 returns a pointer to the given int32 value.

func Int64

func Int64(i int64) *int64

Int64 returns a pointer to the given int64 value.

func MustParseDate

func MustParseDate(date string) time.Time

MustParseDate attempts to parse the given string as a date time.Time, and panics upon failure.

func MustParseDateTime

func MustParseDateTime(datetime string) time.Time

MustParseDateTime attempts to parse the given string as a datetime time.Time, and panics upon failure.

func Rune

func Rune(r rune) *rune

Rune returns a pointer to the given rune value.

func String

func String(s string) *string

String returns a pointer to the given string value.

func Time

func Time(t time.Time) *time.Time

Time returns a pointer to the given time.Time value.

func UUID

func UUID(u uuid.UUID) *uuid.UUID

UUID returns a pointer to the given uuid.UUID value.

func Uint

func Uint(u uint) *uint

Uint returns a pointer to the given uint value.

func Uint8

func Uint8(u uint8) *uint8

Uint8 returns a pointer to the given uint8 value.

func Uint16

func Uint16(u uint16) *uint16

Uint16 returns a pointer to the given uint16 value.

func Uint32

func Uint32(u uint32) *uint32

Uint32 returns a pointer to the given uint32 value.

func Uint64

func Uint64(u uint64) *uint64

Uint64 returns a pointer to the given uint64 value.

func Uintptr

func Uintptr(u uintptr) *uintptr

Uintptr returns a pointer to the given uintptr value.

Types

type AttemptInfo

type AttemptInfo struct {
	Request      *RequestInfo `json:"request,omitempty" url:"request,omitempty"`
	TimeSent     time.Time    `json:"timeSent" url:"timeSent"`
	TimeReceived *time.Time   `json:"timeReceived,omitempty" url:"timeReceived,omitempty"`
	Finding      *bool        `json:"finding,omitempty" url:"finding,omitempty"`
	// contains filtered or unexported fields
}

func (*AttemptInfo) GetExtraProperties

func (a *AttemptInfo) GetExtraProperties() map[string]interface{}

func (*AttemptInfo) MarshalJSON

func (a *AttemptInfo) MarshalJSON() ([]byte, error)

func (*AttemptInfo) String

func (a *AttemptInfo) String() string

func (*AttemptInfo) UnmarshalJSON

func (a *AttemptInfo) UnmarshalJSON(data []byte) error

type EngineConfig

type EngineConfig struct {
	Type                               string
	InjectionEngineConfig              *InjectionEngineConfig
	HeaderMisconfigurationEngineConfig *HeaderMisconfigurationEngineConfig
	PathTraversalEngineConfig          *PathTraversalEngineConfig
}

func NewEngineConfigFromHeaderMisconfigurationEngineConfig

func NewEngineConfigFromHeaderMisconfigurationEngineConfig(value *HeaderMisconfigurationEngineConfig) *EngineConfig

func NewEngineConfigFromInjectionEngineConfig

func NewEngineConfigFromInjectionEngineConfig(value *InjectionEngineConfig) *EngineConfig

func NewEngineConfigFromPathTraversalEngineConfig

func NewEngineConfigFromPathTraversalEngineConfig(value *PathTraversalEngineConfig) *EngineConfig

func (*EngineConfig) Accept

func (e *EngineConfig) Accept(visitor EngineConfigVisitor) error

func (EngineConfig) MarshalJSON

func (e EngineConfig) MarshalJSON() ([]byte, error)

func (*EngineConfig) UnmarshalJSON

func (e *EngineConfig) UnmarshalJSON(data []byte) error

type EngineConfigVisitor

type EngineConfigVisitor interface {
	VisitInjectionEngineConfig(*InjectionEngineConfig) error
	VisitHeaderMisconfigurationEngineConfig(*HeaderMisconfigurationEngineConfig) error
	VisitPathTraversalEngineConfig(*PathTraversalEngineConfig) error
}

type EventType

type EventType struct {
	Type        string
	HeaderEvent HeaderEvent
	PathEvent   PathEvent
	QueryEvent  QueryEvent
	MultiEvent  MultiEvent
}

func NewEventTypeFromHeaderEvent

func NewEventTypeFromHeaderEvent(value HeaderEvent) *EventType

func NewEventTypeFromMultiEvent

func NewEventTypeFromMultiEvent(value MultiEvent) *EventType

func NewEventTypeFromPathEvent

func NewEventTypeFromPathEvent(value PathEvent) *EventType

func NewEventTypeFromQueryEvent

func NewEventTypeFromQueryEvent(value QueryEvent) *EventType

func (*EventType) Accept

func (e *EventType) Accept(visitor EventTypeVisitor) error

func (EventType) MarshalJSON

func (e EventType) MarshalJSON() ([]byte, error)

func (*EventType) UnmarshalJSON

func (e *EventType) UnmarshalJSON(data []byte) error

type EventTypeVisitor

type EventTypeVisitor interface {
	VisitHeaderEvent(HeaderEvent) error
	VisitPathEvent(PathEvent) error
	VisitQueryEvent(QueryEvent) error
	VisitMultiEvent(MultiEvent) error
}

type HeaderBufferOverflowConfig

type HeaderBufferOverflowConfig struct {
	Targets  []string `json:"targets,omitempty" url:"targets,omitempty"`
	BodySize int      `json:"bodySize" url:"bodySize"`
	Timeout  int      `json:"timeout" url:"timeout"`
	Retries  int      `json:"retries" url:"retries"`
	Sleep    int      `json:"sleep" url:"sleep"`
	// contains filtered or unexported fields
}

func (*HeaderBufferOverflowConfig) GetExtraProperties

func (h *HeaderBufferOverflowConfig) GetExtraProperties() map[string]interface{}

func (*HeaderBufferOverflowConfig) String

func (h *HeaderBufferOverflowConfig) String() string

func (*HeaderBufferOverflowConfig) UnmarshalJSON

func (h *HeaderBufferOverflowConfig) UnmarshalJSON(data []byte) error

type HeaderEvent

type HeaderEvent string
const (
	HeaderEventCors             HeaderEvent = "CORS"
	HeaderEventEscape           HeaderEvent = "ESCAPE"
	HeaderEventHttp             HeaderEvent = "HTTP"
	HeaderEventSensitiveexposed HeaderEvent = "SENSITIVEEXPOSED"
	HeaderEventServeroverload   HeaderEvent = "SERVEROVERLOAD"
	HeaderEventUseragent        HeaderEvent = "USERAGENT"
)

func NewHeaderEventFromString

func NewHeaderEventFromString(s string) (HeaderEvent, error)

func (HeaderEvent) Ptr

func (h HeaderEvent) Ptr() *HeaderEvent

type HeaderMisconfigurationConfig

type HeaderMisconfigurationConfig struct {
	Targets     []string    `json:"targets,omitempty" url:"targets,omitempty"`
	HeaderEvent HeaderEvent `json:"headerEvent" url:"headerEvent"`
	Timeout     int         `json:"timeout" url:"timeout"`
	Retries     int         `json:"retries" url:"retries"`
	Sleep       int         `json:"sleep" url:"sleep"`
	// contains filtered or unexported fields
}

func (*HeaderMisconfigurationConfig) GetExtraProperties

func (h *HeaderMisconfigurationConfig) GetExtraProperties() map[string]interface{}

func (*HeaderMisconfigurationConfig) String

func (*HeaderMisconfigurationConfig) UnmarshalJSON

func (h *HeaderMisconfigurationConfig) UnmarshalJSON(data []byte) error

type HeaderMisconfigurationEngineConfig

type HeaderMisconfigurationEngineConfig struct {
	Targets   []string              `json:"targets,omitempty" url:"targets,omitempty"`
	Method    HttpMethod            `json:"method" url:"method"`
	Payloads  [][]map[string]string `json:"payloads,omitempty" url:"payloads,omitempty"`
	EventType *EventType            `json:"eventType,omitempty" url:"eventType,omitempty"`
	Timeout   int                   `json:"timeout" url:"timeout"`
	Retries   int                   `json:"retries" url:"retries"`
	Sleep     int                   `json:"sleep" url:"sleep"`
	// contains filtered or unexported fields
}

func (*HeaderMisconfigurationEngineConfig) GetExtraProperties

func (h *HeaderMisconfigurationEngineConfig) GetExtraProperties() map[string]interface{}

func (*HeaderMisconfigurationEngineConfig) String

func (*HeaderMisconfigurationEngineConfig) UnmarshalJSON

func (h *HeaderMisconfigurationEngineConfig) UnmarshalJSON(data []byte) error

type HeaderServerOverloadConfig

type HeaderServerOverloadConfig struct {
	Targets     []string `json:"targets,omitempty" url:"targets,omitempty"`
	HeaderNames []string `json:"headerNames,omitempty" url:"headerNames,omitempty"`
	PayloadSize int      `json:"payloadSize" url:"payloadSize"`
	Timeout     int      `json:"timeout" url:"timeout"`
	Retries     int      `json:"retries" url:"retries"`
	Sleep       int      `json:"sleep" url:"sleep"`
	// contains filtered or unexported fields
}

func (*HeaderServerOverloadConfig) GetExtraProperties

func (h *HeaderServerOverloadConfig) GetExtraProperties() map[string]interface{}

func (*HeaderServerOverloadConfig) String

func (h *HeaderServerOverloadConfig) String() string

func (*HeaderServerOverloadConfig) UnmarshalJSON

func (h *HeaderServerOverloadConfig) UnmarshalJSON(data []byte) error

type HeaderUserAgentConfig

type HeaderUserAgentConfig struct {
	Targets     []string `json:"targets,omitempty" url:"targets,omitempty"`
	AgentHeader string   `json:"agentHeader" url:"agentHeader"`
	Timeout     int      `json:"timeout" url:"timeout"`
	Retries     int      `json:"retries" url:"retries"`
	Sleep       int      `json:"sleep" url:"sleep"`
	// contains filtered or unexported fields
}

func (*HeaderUserAgentConfig) GetExtraProperties

func (h *HeaderUserAgentConfig) GetExtraProperties() map[string]interface{}

func (*HeaderUserAgentConfig) String

func (h *HeaderUserAgentConfig) String() string

func (*HeaderUserAgentConfig) UnmarshalJSON

func (h *HeaderUserAgentConfig) UnmarshalJSON(data []byte) error

type HttpMethod

type HttpMethod string
const (
	HttpMethodGet     HttpMethod = "GET"
	HttpMethodPost    HttpMethod = "POST"
	HttpMethodPut     HttpMethod = "PUT"
	HttpMethodDelete  HttpMethod = "DELETE"
	HttpMethodPatch   HttpMethod = "PATCH"
	HttpMethodOptions HttpMethod = "OPTIONS"
	HttpMethodHead    HttpMethod = "HEAD"
	HttpMethodConnect HttpMethod = "CONNECT"
	HttpMethodTrace   HttpMethod = "TRACE"
)

func NewHttpMethodFromString

func NewHttpMethodFromString(s string) (HttpMethod, error)

func (HttpMethod) Ptr

func (h HttpMethod) Ptr() *HttpMethod

type InjectionEngineConfig

type InjectionEngineConfig struct {
	Targets           []string            `json:"targets,omitempty" url:"targets,omitempty"`
	Method            HttpMethod          `json:"method" url:"method"`
	Paths             []string            `json:"paths,omitempty" url:"paths,omitempty"`
	BaselinePayload   map[string]string   `json:"baselinePayload,omitempty" url:"baselinePayload,omitempty"`
	InjectedPayloads  []map[string]string `json:"injectedPayloads,omitempty" url:"injectedPayloads,omitempty"`
	InjectionLocation InjectionLocation   `json:"injectionLocation" url:"injectionLocation"`
	EventType         *EventType          `json:"eventType,omitempty" url:"eventType,omitempty"`
	Timeout           int                 `json:"timeout" url:"timeout"`
	Retries           int                 `json:"retries" url:"retries"`
	Sleep             int                 `json:"sleep" url:"sleep"`
	// contains filtered or unexported fields
}

func (*InjectionEngineConfig) GetExtraProperties

func (i *InjectionEngineConfig) GetExtraProperties() map[string]interface{}

func (*InjectionEngineConfig) String

func (i *InjectionEngineConfig) String() string

func (*InjectionEngineConfig) UnmarshalJSON

func (i *InjectionEngineConfig) UnmarshalJSON(data []byte) error

type InjectionLocation

type InjectionLocation string
const (
	InjectionLocationHeader    InjectionLocation = "HEADER"
	InjectionLocationPath      InjectionLocation = "PATH"
	InjectionLocationQuery     InjectionLocation = "QUERY"
	InjectionLocationBody      InjectionLocation = "BODY"
	InjectionLocationForm      InjectionLocation = "FORM"
	InjectionLocationMultipart InjectionLocation = "MULTIPART"
)

func NewInjectionLocationFromString

func NewInjectionLocationFromString(s string) (InjectionLocation, error)

func (InjectionLocation) Ptr

type MultiEvent

type MultiEvent string
const (
	MultiEventCommandecho      MultiEvent = "COMMANDECHO"
	MultiEventCommandtimedelay MultiEvent = "COMMANDTIMEDELAY"
	MultiEventSqliboolean      MultiEvent = "SQLIBOOLEAN"
	MultiEventSqliescape       MultiEvent = "SQLIESCAPE"
	MultiEventSqlitimedelay    MultiEvent = "SQLITIMEDELAY"
	MultiEventXssalert         MultiEvent = "XSSALERT"
)

func NewMultiEventFromString

func NewMultiEventFromString(s string) (MultiEvent, error)

func (MultiEvent) Ptr

func (m MultiEvent) Ptr() *MultiEvent

type MultiInjectionConfig

type MultiInjectionConfig struct {
	Targets           []string          `json:"targets,omitempty" url:"targets,omitempty"`
	Method            HttpMethod        `json:"method" url:"method"`
	VariableData      map[string]string `json:"variableData,omitempty" url:"variableData,omitempty"`
	InjectionLocation InjectionLocation `json:"injectionLocation" url:"injectionLocation"`
	EventType         MultiEvent        `json:"eventType" url:"eventType"`
	Timeout           int               `json:"timeout" url:"timeout"`
	Retries           int               `json:"retries" url:"retries"`
	Sleep             int               `json:"sleep" url:"sleep"`
	// contains filtered or unexported fields
}

func (*MultiInjectionConfig) GetExtraProperties

func (m *MultiInjectionConfig) GetExtraProperties() map[string]interface{}

func (*MultiInjectionConfig) String

func (m *MultiInjectionConfig) String() string

func (*MultiInjectionConfig) UnmarshalJSON

func (m *MultiInjectionConfig) UnmarshalJSON(data []byte) error

type PathCrlfConfig

type PathCrlfConfig struct {
	Targets     []string `json:"targets,omitempty" url:"targets,omitempty"`
	HeaderName  string   `json:"headerName" url:"headerName"`
	HeaderValue string   `json:"headerValue" url:"headerValue"`
	Timeout     int      `json:"timeout" url:"timeout"`
	Retries     int      `json:"retries" url:"retries"`
	Sleep       int      `json:"sleep" url:"sleep"`
	// contains filtered or unexported fields
}

func (*PathCrlfConfig) GetExtraProperties

func (p *PathCrlfConfig) GetExtraProperties() map[string]interface{}

func (*PathCrlfConfig) String

func (p *PathCrlfConfig) String() string

func (*PathCrlfConfig) UnmarshalJSON

func (p *PathCrlfConfig) UnmarshalJSON(data []byte) error

type PathEvent

type PathEvent string
const (
	PathEventTraversal PathEvent = "TRAVERSAL"
	PathEventCrlf      PathEvent = "CRLF"
)

func NewPathEventFromString

func NewPathEventFromString(s string) (PathEvent, error)

func (PathEvent) Ptr

func (p PathEvent) Ptr() *PathEvent

type PathModFileConfig

type PathModFileConfig struct {
	Targets []string `json:"targets,omitempty" url:"targets,omitempty"`
	Timeout int      `json:"timeout" url:"timeout"`
	Retries int      `json:"retries" url:"retries"`
	Sleep   int      `json:"sleep" url:"sleep"`
	// contains filtered or unexported fields
}

func (*PathModFileConfig) GetExtraProperties

func (p *PathModFileConfig) GetExtraProperties() map[string]interface{}

func (*PathModFileConfig) String

func (p *PathModFileConfig) String() string

func (*PathModFileConfig) UnmarshalJSON

func (p *PathModFileConfig) UnmarshalJSON(data []byte) error

type PathTraversalConfig

type PathTraversalConfig struct {
	Targets           []string `json:"targets,omitempty" url:"targets,omitempty"`
	Paths             []string `json:"paths,omitempty" url:"paths,omitempty"`
	PathLists         []string `json:"pathLists,omitempty" url:"pathLists,omitempty"`
	QueryParam        *string  `json:"queryParam,omitempty" url:"queryParam,omitempty"`
	ResponseCodes     string   `json:"responseCodes" url:"responseCodes"`
	IgnoreBaseContent bool     `json:"ignoreBaseContent" url:"ignoreBaseContent"`
	Timeout           int      `json:"timeout" url:"timeout"`
	Retries           int      `json:"retries" url:"retries"`
	Sleep             int      `json:"sleep" url:"sleep"`
	SuccessfulOnly    bool     `json:"successfulOnly" url:"successfulOnly"`
	Threshold         float64  `json:"threshold" url:"threshold"`
	// contains filtered or unexported fields
}

func (*PathTraversalConfig) GetExtraProperties

func (p *PathTraversalConfig) GetExtraProperties() map[string]interface{}

func (*PathTraversalConfig) String

func (p *PathTraversalConfig) String() string

func (*PathTraversalConfig) UnmarshalJSON

func (p *PathTraversalConfig) UnmarshalJSON(data []byte) error

type PathTraversalEngineConfig

type PathTraversalEngineConfig struct {
	Targets           []string `json:"targets,omitempty" url:"targets,omitempty"`
	Paths             []string `json:"paths,omitempty" url:"paths,omitempty"`
	PathFiles         []string `json:"pathFiles,omitempty" url:"pathFiles,omitempty"`
	QueryParam        *string  `json:"queryParam,omitempty" url:"queryParam,omitempty"`
	ResponseCodes     string   `json:"responseCodes" url:"responseCodes"`
	IgnoreBaseContent bool     `json:"ignoreBaseContent" url:"ignoreBaseContent"`
	Timeout           int      `json:"timeout" url:"timeout"`
	Retries           int      `json:"retries" url:"retries"`
	Sleep             int      `json:"sleep" url:"sleep"`
	SuccessfulOnly    bool     `json:"successfulOnly" url:"successfulOnly"`
	Threshold         *float64 `json:"threshold,omitempty" url:"threshold,omitempty"`
	// contains filtered or unexported fields
}

func (*PathTraversalEngineConfig) GetExtraProperties

func (p *PathTraversalEngineConfig) GetExtraProperties() map[string]interface{}

func (*PathTraversalEngineConfig) String

func (p *PathTraversalEngineConfig) String() string

func (*PathTraversalEngineConfig) UnmarshalJSON

func (p *PathTraversalEngineConfig) UnmarshalJSON(data []byte) error

type QueryEvent

type QueryEvent string
const (
	QueryEventRedirect QueryEvent = "REDIRECT"
)

func NewQueryEventFromString

func NewQueryEventFromString(s string) (QueryEvent, error)

func (QueryEvent) Ptr

func (q QueryEvent) Ptr() *QueryEvent

type QueryReverseProxyConfig

type QueryReverseProxyConfig struct {
	Targets         []string `json:"targets,omitempty" url:"targets,omitempty"`
	RedirectAddress string   `json:"redirectAddress" url:"redirectAddress"`
	Timeout         int      `json:"timeout" url:"timeout"`
	Retries         int      `json:"retries" url:"retries"`
	Sleep           int      `json:"sleep" url:"sleep"`
	// contains filtered or unexported fields
}

func (*QueryReverseProxyConfig) GetExtraProperties

func (q *QueryReverseProxyConfig) GetExtraProperties() map[string]interface{}

func (*QueryReverseProxyConfig) String

func (q *QueryReverseProxyConfig) String() string

func (*QueryReverseProxyConfig) UnmarshalJSON

func (q *QueryReverseProxyConfig) UnmarshalJSON(data []byte) error

type Report

type Report struct {
	Targets []*TargetInfo `json:"targets,omitempty" url:"targets,omitempty"`
	Config  *EngineConfig `json:"config,omitempty" url:"config,omitempty"`
	Errors  []string      `json:"errors,omitempty" url:"errors,omitempty"`
	// contains filtered or unexported fields
}

func (*Report) GetExtraProperties

func (r *Report) GetExtraProperties() map[string]interface{}

func (*Report) String

func (r *Report) String() string

func (*Report) UnmarshalJSON

func (r *Report) UnmarshalJSON(data []byte) error

type RequestInfo

type RequestInfo struct {
	BaseUrl             string            `json:"baseUrl" url:"baseUrl"`
	Path                string            `json:"path" url:"path"`
	Method              HttpMethod        `json:"method" url:"method"`
	PathParams          map[string]string `json:"pathParams,omitempty" url:"pathParams,omitempty"`
	QueryParams         map[string]string `json:"queryParams,omitempty" url:"queryParams,omitempty"`
	HeaderParams        map[string]string `json:"headerParams,omitempty" url:"headerParams,omitempty"`
	BodyParams          *string           `json:"bodyParams,omitempty" url:"bodyParams,omitempty"`
	FormParams          map[string]string `json:"formParams,omitempty" url:"formParams,omitempty"`
	MultipartParams     map[string]string `json:"multipartParams,omitempty" url:"multipartParams,omitempty"`
	EventType           []*EventType      `json:"eventType,omitempty" url:"eventType,omitempty"`
	StatusCode          *int              `json:"statusCode,omitempty" url:"statusCode,omitempty"`
	ResponseBody        *string           `json:"responseBody,omitempty" url:"responseBody,omitempty"`
	ResponseBodyEncoded *string           `json:"responseBodyEncoded,omitempty" url:"responseBodyEncoded,omitempty"`
	ResponseHeaders     map[string]string `json:"responseHeaders,omitempty" url:"responseHeaders,omitempty"`
	Errors              []string          `json:"errors,omitempty" url:"errors,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestInfo) GetExtraProperties

func (r *RequestInfo) GetExtraProperties() map[string]interface{}

func (*RequestInfo) String

func (r *RequestInfo) String() string

func (*RequestInfo) UnmarshalJSON

func (r *RequestInfo) UnmarshalJSON(data []byte) error

type RequestParams

type RequestParams struct {
	PathParams      map[string]string `json:"pathParams,omitempty" url:"pathParams,omitempty"`
	QueryParams     map[string]string `json:"queryParams,omitempty" url:"queryParams,omitempty"`
	HeaderParams    map[string]string `json:"headerParams,omitempty" url:"headerParams,omitempty"`
	BodyParams      string            `json:"bodyParams" url:"bodyParams"`
	FormParams      map[string]string `json:"formParams,omitempty" url:"formParams,omitempty"`
	MultipartParams map[string]string `json:"multipartParams,omitempty" url:"multipartParams,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestParams) GetExtraProperties

func (r *RequestParams) GetExtraProperties() map[string]interface{}

func (*RequestParams) String

func (r *RequestParams) String() string

func (*RequestParams) UnmarshalJSON

func (r *RequestParams) UnmarshalJSON(data []byte) error

type TargetInfo

type TargetInfo struct {
	Target          string         `json:"target" url:"target"`
	StartTimestamp  time.Time      `json:"startTimestamp" url:"startTimestamp"`
	EndTimestamp    time.Time      `json:"endTimestamp" url:"endTimestamp"`
	RequestCount    int            `json:"requestCount" url:"requestCount"`
	BaselineAttempt *AttemptInfo   `json:"baselineAttempt,omitempty" url:"baselineAttempt,omitempty"`
	Attempts        []*AttemptInfo `json:"attempts,omitempty" url:"attempts,omitempty"`
	// contains filtered or unexported fields
}

func (*TargetInfo) GetExtraProperties

func (t *TargetInfo) GetExtraProperties() map[string]interface{}

func (*TargetInfo) MarshalJSON

func (t *TargetInfo) MarshalJSON() ([]byte, error)

func (*TargetInfo) String

func (t *TargetInfo) String() string

func (*TargetInfo) UnmarshalJSON

func (t *TargetInfo) UnmarshalJSON(data []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL