types

package
v3.3.4 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 7 Imported by: ? 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 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