dfnet

package
v2.0.2-rc.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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
const (
	TCP  NetworkType = "tcp"
	UNIX NetworkType = "unix"
)

Jump to

Keyboard shortcuts

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