Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SupportedProtocolsStrings ¶ added in v3.3.1
func SupportedProtocolsStrings() []string
SupportedProtocolsStrings returns a slice of strings of supported protocols
Types ¶
type ProtocolType ¶
type ProtocolType int
ProtocolType is the type of the request protocol specified
const ( // name:dns DNSProtocol ProtocolType = iota + 1 // name:file FileProtocol // name:http HTTPProtocol // name:offline-http OfflineHTTPProtocol // name:headless HeadlessProtocol // name:network NetworkProtocol // name:workflow WorkflowProtocol // name:ssl SSLProtocol // name:websocket WebsocketProtocol // name:whois WHOISProtocol // name:code CodeProtocol // name: js JavascriptProtocol InvalidProtocol )
Supported values for the ProtocolType name:ProtocolType
func (ProtocolType) String ¶
func (t ProtocolType) String() string
type ProtocolTypes ¶
type ProtocolTypes []ProtocolType
func GetSupportedProtocolTypes ¶
func GetSupportedProtocolTypes() ProtocolTypes
func (ProtocolTypes) MarshalJSON ¶
func (protocolTypes ProtocolTypes) MarshalJSON() ([]byte, error)
func (*ProtocolTypes) Set ¶
func (protocolTypes *ProtocolTypes) Set(values string) error
func (ProtocolTypes) String ¶
func (protocolTypes ProtocolTypes) String() string
func (*ProtocolTypes) UnmarshalYAML ¶
func (protocolTypes *ProtocolTypes) UnmarshalYAML(unmarshal func(interface{}) error) error
type TypeHolder ¶
type TypeHolder struct {
ProtocolType ProtocolType `mapping:"true"`
}
TypeHolder is used to hold internal type of the protocol
func (TypeHolder) JSONSchema ¶ added in v3.2.4
func (holder TypeHolder) JSONSchema() *jsonschema.Schema
func (*TypeHolder) MarshalJSON ¶
func (holder *TypeHolder) MarshalJSON() ([]byte, error)
func (TypeHolder) MarshalYAML ¶
func (holder TypeHolder) MarshalYAML() (interface{}, error)
func (*TypeHolder) UnmarshalYAML ¶
func (holder *TypeHolder) UnmarshalYAML(unmarshal func(interface{}) error) error
Click to show internal directories.
Click to hide internal directories.