protocol

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ViperDecoderHook added in v1.11.3

func ViperDecoderHook() libmap.DecodeHookFuncType

Types

type NetworkProtocol

type NetworkProtocol uint8
const (
	NetworkEmpty NetworkProtocol = iota
	NetworkUnix
	NetworkTCP
	NetworkTCP4
	NetworkTCP6
	NetworkUDP
	NetworkUDP4
	NetworkUDP6
	NetworkIP
	NetworkIP4
	NetworkIP6
	NetworkUnixGram
)

func Parse

func Parse(str string) NetworkProtocol

func ParseBytes

func ParseBytes(p []byte) NetworkProtocol

func ParseInt64 added in v1.11.3

func ParseInt64(val int64) NetworkProtocol

func (NetworkProtocol) Code

func (n NetworkProtocol) Code() string

func (NetworkProtocol) MarshalCBOR

func (n NetworkProtocol) MarshalCBOR() ([]byte, error)

func (NetworkProtocol) MarshalJSON

func (n NetworkProtocol) MarshalJSON() ([]byte, error)

func (NetworkProtocol) MarshalTOML

func (n NetworkProtocol) MarshalTOML() ([]byte, error)

func (NetworkProtocol) MarshalText

func (n NetworkProtocol) MarshalText() ([]byte, error)

func (NetworkProtocol) MarshalYAML

func (n NetworkProtocol) MarshalYAML() (interface{}, error)

func (NetworkProtocol) String

func (n NetworkProtocol) String() string

func (*NetworkProtocol) UnmarshalCBOR

func (n *NetworkProtocol) UnmarshalCBOR(bytes []byte) error

func (*NetworkProtocol) UnmarshalJSON

func (n *NetworkProtocol) UnmarshalJSON(bytes []byte) error

func (*NetworkProtocol) UnmarshalTOML

func (n *NetworkProtocol) UnmarshalTOML(i interface{}) error

func (*NetworkProtocol) UnmarshalText

func (n *NetworkProtocol) UnmarshalText(bytes []byte) error

func (*NetworkProtocol) UnmarshalYAML

func (n *NetworkProtocol) UnmarshalYAML(value *yaml.Node) error

Jump to

Keyboard shortcuts

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