Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetAddr ¶
type NetAddr struct { // Type is the type of network. Type NetworkType `mapstructure:"type" yaml:"type"` // Addr is the address of network. Addr string `mapstructure:"addr" yaml:"addr"` }
NetAddr is the definition structure of grpc address, refer to https://github.com/grpc/grpc/blob/master/doc/naming.md.
func (*NetAddr) UnmarshalJSON ¶
UnmarshalJSON parses the JSON-encoded data and stores the result in NetAddr.
func (*NetAddr) UnmarshalYAML ¶
UnmarshalYAML parses the YAML-encoded data and stores the result in NetAddr.
type NetworkType ¶
type NetworkType string
const ( // TCP represents protocol of tcp. TCP NetworkType = "tcp" // TCP represents protocol of unix. UNIX NetworkType = "unix" // TCP represents protocol of vsock. VSOCK NetworkType = "vsock" )
Click to show internal directories.
Click to hide internal directories.