types

package
v3.0.0-...-e70001a Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SupportedProtocolsStrings

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

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

Jump to

Keyboard shortcuts

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