proto

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0, BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*NetworkAddress) Descriptor

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

func (*NetworkAddress) GetNetwork

func (m *NetworkAddress) GetNetwork() string

func (*NetworkAddress) GetPort

func (m *NetworkAddress) GetPort() uint32

func (*NetworkAddress) ProtoMessage

func (*NetworkAddress) ProtoMessage()

func (*NetworkAddress) Reset

func (m *NetworkAddress) Reset()

func (*NetworkAddress) String

func (m *NetworkAddress) String() string

func (*NetworkAddress) XXX_DiscardUnknown

func (m *NetworkAddress) XXX_DiscardUnknown()

func (*NetworkAddress) XXX_Marshal

func (m *NetworkAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NetworkAddress) XXX_Merge

func (m *NetworkAddress) XXX_Merge(src proto.Message)

func (*NetworkAddress) XXX_Size

func (m *NetworkAddress) XXX_Size() int

func (*NetworkAddress) XXX_Unmarshal

func (m *NetworkAddress) XXX_Unmarshal(b []byte) error

type ServiceMap

type ServiceMap struct {
	Map                  map[string]*NetworkAddress `` /* 147-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

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

func (*ServiceMap) Descriptor

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

func (*ServiceMap) GetMap

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

func (*ServiceMap) ProtoMessage

func (*ServiceMap) ProtoMessage()

func (*ServiceMap) Reset

func (m *ServiceMap) Reset()

func (*ServiceMap) String

func (m *ServiceMap) String() string

func (*ServiceMap) XXX_DiscardUnknown

func (m *ServiceMap) XXX_DiscardUnknown()

func (*ServiceMap) XXX_Marshal

func (m *ServiceMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServiceMap) XXX_Merge

func (m *ServiceMap) XXX_Merge(src proto.Message)

func (*ServiceMap) XXX_Size

func (m *ServiceMap) XXX_Size() int

func (*ServiceMap) XXX_Unmarshal

func (m *ServiceMap) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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