protocol

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 6 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
)

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 (s NetworkProtocol) MarshalCBOR() ([]byte, error)

func (NetworkProtocol) MarshalJSON

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

func (NetworkProtocol) MarshalTOML

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

func (NetworkProtocol) MarshalText

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

func (NetworkProtocol) MarshalYAML

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

func (NetworkProtocol) String

func (n NetworkProtocol) String() string

func (*NetworkProtocol) UnmarshalCBOR

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

func (*NetworkProtocol) UnmarshalJSON

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

func (*NetworkProtocol) UnmarshalTOML

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

func (*NetworkProtocol) UnmarshalText

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

func (*NetworkProtocol) UnmarshalYAML

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

Jump to

Keyboard shortcuts

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