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