Documentation ¶
Index ¶
- func NewCSVIterator(raw string) *csvIterator
- func NewNumericRangeIterator(min, max int) *numericRangeIterator
- func NewWordlistIterator(content string) *wordlistIterator
- type Boolean
- type Booler
- type Choice
- type Chooser
- type Int
- type Inter
- type InternalType
- type Lister
- type Map
- type Mapper
- type ParentType
- type Request
- type RequestResponsePair
- type RequestResponsePairWithMap
- func (p *RequestResponsePairWithMap) Map() map[string]string
- func (p *RequestResponsePairWithMap) MarshalJSON() ([]byte, error)
- func (p *RequestResponsePairWithMap) Request() packaging.HttpRequest
- func (p *RequestResponsePairWithMap) Response() packaging.HttpResponse
- func (p *RequestResponsePairWithMap) Type() Type
- func (p *RequestResponsePairWithMap) UnmarshalJSON(data []byte) error
- type Requester
- type Response
- type Responser
- type Start
- type String
- type Stringer
- type Transmission
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCSVIterator ¶
func NewCSVIterator(raw string) *csvIterator
func NewNumericRangeIterator ¶
func NewNumericRangeIterator(min, max int) *numericRangeIterator
func NewWordlistIterator ¶
func NewWordlistIterator(content string) *wordlistIterator
Types ¶
type Boolean ¶
type Boolean struct {
// contains filtered or unexported fields
}
func NewBoolean ¶
func (*Boolean) MarshalJSON ¶
func (*Boolean) UnmarshalJSON ¶
type Choice ¶ added in v0.0.2
type Choice struct {
// contains filtered or unexported fields
}
func (*Choice) MarshalJSON ¶ added in v0.0.2
func (*Choice) UnmarshalJSON ¶ added in v0.0.2
type InternalType ¶
type InternalType uint32
const ( InternalTypeNone InternalType = iota InternalTypeUnknown InternalTypeNumericRangeList InternalTypeWordlist InternalTypeCommaSeparatedList )
type ParentType ¶
type ParentType uint32
const ( // public types TypeUnknown ParentType = 1 << iota TypeString TypeInt TypeMap TypeList TypeRequest TypeResponse TypeStart TypeBoolean TypeChoice TypeAny = 0 )
func (ParentType) Contains ¶
func (t ParentType) Contains(other ParentType) bool
type Request ¶
type Request packaging.HttpRequest
func NewRequest ¶
func NewRequest(req packaging.HttpRequest) *Request
func (*Request) MarshalJSON ¶
func (*Request) Request ¶
func (r *Request) Request() packaging.HttpRequest
func (*Request) UnmarshalJSON ¶
type RequestResponsePair ¶
type RequestResponsePair struct {
// contains filtered or unexported fields
}
func NewRequestResponsePair ¶
func NewRequestResponsePair(req packaging.HttpRequest, resp packaging.HttpResponse) *RequestResponsePair
func (*RequestResponsePair) MarshalJSON ¶
func (p *RequestResponsePair) MarshalJSON() ([]byte, error)
func (*RequestResponsePair) Request ¶
func (p *RequestResponsePair) Request() packaging.HttpRequest
func (*RequestResponsePair) Response ¶
func (p *RequestResponsePair) Response() packaging.HttpResponse
func (*RequestResponsePair) Type ¶
func (p *RequestResponsePair) Type() Type
func (*RequestResponsePair) UnmarshalJSON ¶
func (p *RequestResponsePair) UnmarshalJSON(data []byte) error
type RequestResponsePairWithMap ¶
type RequestResponsePairWithMap struct {
// contains filtered or unexported fields
}
func NewRequestResponsePairWithMap ¶
func NewRequestResponsePairWithMap(req packaging.HttpRequest, resp packaging.HttpResponse, params map[string]string) *RequestResponsePairWithMap
func (*RequestResponsePairWithMap) Map ¶
func (p *RequestResponsePairWithMap) Map() map[string]string
func (*RequestResponsePairWithMap) MarshalJSON ¶
func (p *RequestResponsePairWithMap) MarshalJSON() ([]byte, error)
func (*RequestResponsePairWithMap) Request ¶
func (p *RequestResponsePairWithMap) Request() packaging.HttpRequest
func (*RequestResponsePairWithMap) Response ¶
func (p *RequestResponsePairWithMap) Response() packaging.HttpResponse
func (*RequestResponsePairWithMap) Type ¶
func (p *RequestResponsePairWithMap) Type() Type
func (*RequestResponsePairWithMap) UnmarshalJSON ¶
func (p *RequestResponsePairWithMap) UnmarshalJSON(data []byte) error
type Requester ¶
type Requester interface{ Request() packaging.HttpRequest }
type Response ¶
type Response packaging.HttpResponse
func (*Response) MarshalJSON ¶
func (*Response) Response ¶
func (r *Response) Response() packaging.HttpResponse
func (*Response) UnmarshalJSON ¶
type Responser ¶
type Responser interface{ Response() packaging.HttpResponse }
type Transmission ¶
type Transmission interface { Type() Type MarshalJSON() ([]byte, error) UnmarshalJSON([]byte) error }
func UnmarshalJSON ¶
func UnmarshalJSON(t Type, data json.RawMessage) (Transmission, error)
type Type ¶
type Type uint64
func NewType ¶
func NewType(parent ParentType, internal InternalType) Type
func (Type) Internal ¶
func (t Type) Internal() InternalType
func (Type) MarshalJSON ¶
func (Type) Parent ¶
func (t Type) Parent() ParentType
func (*Type) UnmarshalJSON ¶
func (Type) Validate ¶
func (t Type) Validate(transmission Transmission) error
Click to show internal directories.
Click to hide internal directories.