dfnet

package
v2.0.6-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

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 Convert2NetAddr(addrs []string) []NetAddr

func (NetAddr) GetEndpoint

func (n NetAddr) GetEndpoint() string

func (NetAddr) String

func (n NetAddr) String() string

func (*NetAddr) UnmarshalJSON

func (n *NetAddr) UnmarshalJSON(b []byte) error

func (*NetAddr) UnmarshalYAML

func (n *NetAddr) UnmarshalYAML(node *yaml.Node) error

type NetworkType

type NetworkType string

Jump to

Keyboard shortcuts

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