pb

package
v0.0.0-...-30b4086 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: ISC Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_peer_service_proto protoreflect.FileDescriptor
View Source
var PeerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "PeerService",
	HandlerType: (*PeerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetPeersList",
			Handler:    _PeerService_GetPeersList_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "peer_service.proto",
}

PeerService_ServiceDesc is the grpc.ServiceDesc for PeerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPeerServiceServer

func RegisterPeerServiceServer(s grpc.ServiceRegistrar, srv PeerServiceServer)

Types

type GetPeersListRequest

type GetPeersListRequest struct {
	SubnetworkID          []byte `protobuf:"bytes,1,opt,name=subnetworkID,proto3" json:"subnetworkID,omitempty"`
	IncludeAllSubnetworks bool   `protobuf:"varint,2,opt,name=includeAllSubnetworks,proto3" json:"includeAllSubnetworks,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPeersListRequest) Descriptor deprecated

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

Deprecated: Use GetPeersListRequest.ProtoReflect.Descriptor instead.

func (*GetPeersListRequest) GetIncludeAllSubnetworks

func (x *GetPeersListRequest) GetIncludeAllSubnetworks() bool

func (*GetPeersListRequest) GetSubnetworkID

func (x *GetPeersListRequest) GetSubnetworkID() []byte

func (*GetPeersListRequest) ProtoMessage

func (*GetPeersListRequest) ProtoMessage()

func (*GetPeersListRequest) ProtoReflect

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

func (*GetPeersListRequest) Reset

func (x *GetPeersListRequest) Reset()

func (*GetPeersListRequest) String

func (x *GetPeersListRequest) String() string

type GetPeersListResponse

type GetPeersListResponse struct {
	Addresses []*NetAddress `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPeersListResponse) Descriptor deprecated

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

Deprecated: Use GetPeersListResponse.ProtoReflect.Descriptor instead.

func (*GetPeersListResponse) GetAddresses

func (x *GetPeersListResponse) GetAddresses() []*NetAddress

func (*GetPeersListResponse) ProtoMessage

func (*GetPeersListResponse) ProtoMessage()

func (*GetPeersListResponse) ProtoReflect

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

func (*GetPeersListResponse) Reset

func (x *GetPeersListResponse) Reset()

func (*GetPeersListResponse) String

func (x *GetPeersListResponse) String() string

type NetAddress

type NetAddress struct {
	Timestamp int64  `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	IP        []byte `protobuf:"bytes,2,opt,name=IP,proto3" json:"IP,omitempty"`
	Port      uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

func (*NetAddress) Descriptor deprecated

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

Deprecated: Use NetAddress.ProtoReflect.Descriptor instead.

func (*NetAddress) GetIP

func (x *NetAddress) GetIP() []byte

func (*NetAddress) GetPort

func (x *NetAddress) GetPort() uint32

func (*NetAddress) GetTimestamp

func (x *NetAddress) GetTimestamp() int64

func (*NetAddress) ProtoMessage

func (*NetAddress) ProtoMessage()

func (*NetAddress) ProtoReflect

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

func (*NetAddress) Reset

func (x *NetAddress) Reset()

func (*NetAddress) String

func (x *NetAddress) String() string

type PeerServiceClient

type PeerServiceClient interface {
	GetPeersList(ctx context.Context, in *GetPeersListRequest, opts ...grpc.CallOption) (*GetPeersListResponse, error)
}

PeerServiceClient is the client API for PeerService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type PeerServiceServer

type PeerServiceServer interface {
	GetPeersList(context.Context, *GetPeersListRequest) (*GetPeersListResponse, error)
	// contains filtered or unexported methods
}

PeerServiceServer is the server API for PeerService service. All implementations must embed UnimplementedPeerServiceServer for forward compatibility

type UnimplementedPeerServiceServer

type UnimplementedPeerServiceServer struct {
}

UnimplementedPeerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPeerServiceServer) GetPeersList

type UnsafePeerServiceServer

type UnsafePeerServiceServer interface {
	// contains filtered or unexported methods
}

UnsafePeerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PeerServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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