Documentation ¶
Index ¶
- func ViperDecoderHook() libmap.DecodeHookFuncType
- type NetworkProtocol
- func (n NetworkProtocol) Code() string
- func (n NetworkProtocol) MarshalCBOR() ([]byte, error)
- func (n NetworkProtocol) MarshalJSON() ([]byte, error)
- func (n NetworkProtocol) MarshalTOML() ([]byte, error)
- func (n NetworkProtocol) MarshalText() ([]byte, error)
- func (n NetworkProtocol) MarshalYAML() (interface{}, error)
- func (n NetworkProtocol) String() string
- func (n *NetworkProtocol) UnmarshalCBOR(bytes []byte) error
- func (n *NetworkProtocol) UnmarshalJSON(bytes []byte) error
- func (n *NetworkProtocol) UnmarshalTOML(i interface{}) error
- func (n *NetworkProtocol) UnmarshalText(bytes []byte) error
- func (n *NetworkProtocol) UnmarshalYAML(value *yaml.Node) error
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
Click to show internal directories.
Click to hide internal directories.