Documentation ¶
Index ¶
Constants ¶
View Source
const ( TCP NetworkType = "tcp" UNIX NetworkType = "unix" VSOCK NetworkType = "vsock" TCPEndpointPrefix string = "dns:///" UnixEndpointPrefix string = "unix://" VsockEndpointPrefix string = "vsock://" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetAddr ¶
type NetAddr struct { Type NetworkType `mapstructure:"type" yaml:"type"` // see https://github.com/grpc/grpc/blob/master/doc/naming.md Addr string `mapstructure:"addr" yaml:"addr"` }
func Convert2NetAddr ¶
func (NetAddr) GetEndpoint ¶
func (*NetAddr) UnmarshalJSON ¶
func (*NetAddr) UnmarshalYAML ¶
type NetworkType ¶
type NetworkType string
Click to show internal directories.
Click to hide internal directories.