proto

package
v0.0.0-...-fa26ab0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: Apache-2.0, BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_autopeering_peer_service_proto_service_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type NetworkAddress

type NetworkAddress struct {
	Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	Port    uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

The service type (e.g., tcp, upd) and the address (e.g., 198.51.100.1:80)

func (*NetworkAddress) Descriptor deprecated

func (*NetworkAddress) Descriptor() ([]byte, []int)

Deprecated: Use NetworkAddress.ProtoReflect.Descriptor instead.

func (*NetworkAddress) GetNetwork

func (x *NetworkAddress) GetNetwork() string

func (*NetworkAddress) GetPort

func (x *NetworkAddress) GetPort() uint32

func (*NetworkAddress) ProtoMessage

func (*NetworkAddress) ProtoMessage()

func (*NetworkAddress) ProtoReflect

func (x *NetworkAddress) ProtoReflect() protoreflect.Message

func (*NetworkAddress) Reset

func (x *NetworkAddress) Reset()

func (*NetworkAddress) String

func (x *NetworkAddress) String() string

type ServiceMap

type ServiceMap struct {
	Map map[string]*NetworkAddress `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

Mapping between a service ID and its tuple network_address e.g., map[autopeering:&{tcp, 198.51.100.1:80}]

func (*ServiceMap) Descriptor deprecated

func (*ServiceMap) Descriptor() ([]byte, []int)

Deprecated: Use ServiceMap.ProtoReflect.Descriptor instead.

func (*ServiceMap) GetMap

func (x *ServiceMap) GetMap() map[string]*NetworkAddress

func (*ServiceMap) ProtoMessage

func (*ServiceMap) ProtoMessage()

func (*ServiceMap) ProtoReflect

func (x *ServiceMap) ProtoReflect() protoreflect.Message

func (*ServiceMap) Reset

func (x *ServiceMap) Reset()

func (*ServiceMap) String

func (x *ServiceMap) String() string

Jump to

Keyboard shortcuts

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