protocoltype

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Ranges = [...]string{
		Invalid: "Invalid",
		Tcp:     "Tcp",
		Udp:     "Udp",
		Icmp:    "Icmp",
		Grpc:    "Grpc",
		Rpc:     "Rpc",
		OAuth:   "OAuth",
		Rest:    "Rest",
		Http:    "Http",
		Https:   "Https",
		HttpsV3: "HttpsV3",
		MSMQ:    "MSMQ",
		Ip:      "Ip",
		IpV6:    "IpV6",
		Ftp:     "Ftp",
		Smtp:    "Smtp",
		Imap:    "Imap",
		Pop3:    "Pop3",
		Sftp:    "Sftp",
		Ssh:     "Ssh",
		Telnet:  "Telnet",
		Pam:     "Pam",
		Sso:     "Sso",
		Smb:     "Smb",
		P2p:     "P2p",
		Custom:  "Custom",
	}

	BasicEnumImpl = enumimpl.New.BasicByte.UsingTypeSlice(
		coredynamic.TypeName(Invalid),
		Ranges[:])
)

Functions

func RangesInvalidErr

func RangesInvalidErr() error

Types

type Variant

type Variant byte
const (
	Invalid Variant = iota
	Tcp
	Udp
	Icmp // https://t.ly/aOS8
	Grpc
	Rpc
	OAuth
	Rest
	Http
	Https
	HttpsV3
	MSMQ
	Ip
	IpV6
	Ftp
	Smtp
	Imap
	Pop3
	Ssh
	Sftp
	Telnet
	Pam
	Sso
	Smb
	P2p
	Custom
)

func Max

func Max() Variant

func Min

func Min() Variant

func (Variant) AllNameValues

func (it Variant) AllNameValues() []string

func (*Variant) AsBasicByteEnumContractsBinder

func (it *Variant) AsBasicByteEnumContractsBinder() enuminf.BasicByteEnumContractsBinder

func (Variant) AsBasicEnumContractsBinder

func (it Variant) AsBasicEnumContractsBinder() enuminf.BasicEnumContractsBinder

func (*Variant) AsJsonContractsBinder

func (it *Variant) AsJsonContractsBinder() corejson.JsonContractsBinder

func (*Variant) AsJsonMarshaller

func (it *Variant) AsJsonMarshaller() corejson.JsonMarshaller

func (*Variant) AsJsoner

func (it *Variant) AsJsoner() corejson.Jsoner

func (Variant) CapitalName

func (it Variant) CapitalName() string

func (Variant) EnumType

func (it Variant) EnumType() enuminf.EnumTyper

func (Variant) Format

func (it Variant) Format(format string) (compiled string)

func (Variant) IntegerEnumRanges

func (it Variant) IntegerEnumRanges() []int

func (Variant) IsAnyNamesOf

func (it Variant) IsAnyNamesOf(names ...string) bool

func (Variant) IsAnyValuesEqual

func (it Variant) IsAnyValuesEqual(anyByteValues ...byte) bool

func (Variant) IsByteValueEqual

func (it Variant) IsByteValueEqual(value byte) bool

func (Variant) IsCustom

func (it Variant) IsCustom() bool

func (Variant) IsDefined

func (it Variant) IsDefined() bool

func (Variant) IsFirewallIpTablesProtocol

func (it Variant) IsFirewallIpTablesProtocol() bool

func (Variant) IsFtp

func (it Variant) IsFtp() bool

func (Variant) IsGrpc

func (it Variant) IsGrpc() bool

func (Variant) IsHttp

func (it Variant) IsHttp() bool

func (Variant) IsHttps

func (it Variant) IsHttps() bool

func (Variant) IsHttpsV3

func (it Variant) IsHttpsV3() bool

func (Variant) IsIcmp

func (it Variant) IsIcmp() bool

func (Variant) IsImap

func (it Variant) IsImap() bool

func (Variant) IsInternetProtocol

func (it Variant) IsInternetProtocol() bool

func (Variant) IsInvalid

func (it Variant) IsInvalid() bool

func (Variant) IsIp

func (it Variant) IsIp() bool

func (Variant) IsIpV6

func (it Variant) IsIpV6() bool

func (Variant) IsMSMQ

func (it Variant) IsMSMQ() bool

func (Variant) IsMailingProtocol

func (it Variant) IsMailingProtocol() bool

func (Variant) IsNameEqual

func (it Variant) IsNameEqual(name string) bool

func (Variant) IsOAuth

func (it Variant) IsOAuth() bool

func (Variant) IsPam

func (it Variant) IsPam() bool

func (Variant) IsPop3

func (it Variant) IsPop3() bool

func (Variant) IsRest

func (it Variant) IsRest() bool

func (Variant) IsRpc

func (it Variant) IsRpc() bool

func (Variant) IsSftp

func (it Variant) IsSftp() bool

func (Variant) IsSmtp

func (it Variant) IsSmtp() bool

func (Variant) IsSsh

func (it Variant) IsSsh() bool

func (Variant) IsSso

func (it Variant) IsSso() bool

func (Variant) IsTcp

func (it Variant) IsTcp() bool

func (Variant) IsTcpOrUdp

func (it Variant) IsTcpOrUdp() bool

func (Variant) IsTelnet

func (it Variant) IsTelnet() bool

func (Variant) IsTransactionProtocol

func (it Variant) IsTransactionProtocol() bool

func (Variant) IsUdp

func (it Variant) IsUdp() bool

func (Variant) IsValid

func (it Variant) IsValid() bool

func (Variant) IsValueEqual

func (it Variant) IsValueEqual(value byte) bool

func (Variant) Json

func (it Variant) Json() corejson.Result

func (*Variant) JsonParseSelfInject

func (it *Variant) JsonParseSelfInject(jsonResult *corejson.Result) error

func (Variant) JsonPtr

func (it Variant) JsonPtr() *corejson.Result

func (Variant) LowerName

func (it Variant) LowerName() string

func (Variant) MarshalJSON

func (it Variant) MarshalJSON() ([]byte, error)

func (Variant) MaxByte

func (it Variant) MaxByte() byte

func (Variant) MaxInt

func (it Variant) MaxInt() int

func (Variant) MaxValueString

func (it Variant) MaxValueString() string

func (Variant) MinByte

func (it Variant) MinByte() byte

func (Variant) MinInt

func (it Variant) MinInt() int

func (Variant) MinMaxAny added in v0.1.3

func (it Variant) MinMaxAny() (min, max interface{})

func (Variant) MinValueString

func (it Variant) MinValueString() string

func (Variant) Name

func (it Variant) Name() string

func (Variant) NameValue

func (it Variant) NameValue() string

func (Variant) OnlySupportedErr

func (it Variant) OnlySupportedErr(names ...string) error

func (Variant) OnlySupportedMsgErr

func (it Variant) OnlySupportedMsgErr(message string, names ...string) error

func (Variant) RangeNamesCsv

func (it Variant) RangeNamesCsv() string

func (Variant) RangesByte

func (it Variant) RangesByte() []byte

func (Variant) RangesDynamicMap

func (it Variant) RangesDynamicMap() map[string]interface{}

func (Variant) String

func (it Variant) String() string

func (Variant) ToNumberString

func (it Variant) ToNumberString() string

func (Variant) ToPtr

func (it Variant) ToPtr() *Variant

func (*Variant) ToSimple

func (it *Variant) ToSimple() Variant

func (Variant) TypeName

func (it Variant) TypeName() string

func (*Variant) UnmarshalJSON

func (it *Variant) UnmarshalJSON(data []byte) error

func (Variant) UnmarshallEnumToValue

func (it Variant) UnmarshallEnumToValue(
	jsonUnmarshallingValue []byte,
) (byte, error)

func (Variant) Value

func (it Variant) Value() byte

func (Variant) ValueByte

func (it Variant) ValueByte() byte

func (Variant) ValueInt

func (it Variant) ValueInt() int

func (Variant) ValueInt16

func (it Variant) ValueInt16() int16

func (Variant) ValueInt32

func (it Variant) ValueInt32() int32

func (Variant) ValueInt8

func (it Variant) ValueInt8() int8

func (Variant) ValueString

func (it Variant) ValueString() string

func (Variant) ValueUInt16

func (it Variant) ValueUInt16() uint16

Jump to

Keyboard shortcuts

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