Versions in this module Expand all Collapse all v1 v1.0.3 Feb 27, 2025 Changes in this version + const Discovery_FindPeers_FullMethodName + const Identity_Hello_FullMethodName + var Discovery_ServiceDesc = grpc.ServiceDesc + var File_core_network_proto_discovery_proto protoreflect.FileDescriptor + var File_core_network_proto_identity_proto protoreflect.FileDescriptor + var Identity_ServiceDesc = grpc.ServiceDesc + func RegisterDiscoveryServer(s grpc.ServiceRegistrar, srv DiscoveryServer) + func RegisterIdentityServer(s grpc.ServiceRegistrar, srv IdentityServer) + type DiscoveryClient interface + FindPeers func(ctx context.Context, in *FindPeersReq, opts ...grpc.CallOption) (*FindPeersResp, error) + func NewDiscoveryClient(cc grpc.ClientConnInterface) DiscoveryClient + type DiscoveryServer interface + FindPeers func(context.Context, *FindPeersReq) (*FindPeersResp, error) + type FindPeersReq struct + Count int64 + Key string + func (*FindPeersReq) Descriptor() ([]byte, []int) + func (*FindPeersReq) ProtoMessage() + func (x *FindPeersReq) GetCount() int64 + func (x *FindPeersReq) GetKey() string + func (x *FindPeersReq) ProtoReflect() protoreflect.Message + func (x *FindPeersReq) Reset() + func (x *FindPeersReq) String() string + type FindPeersResp struct + Nodes []string + func (*FindPeersResp) Descriptor() ([]byte, []int) + func (*FindPeersResp) ProtoMessage() + func (x *FindPeersResp) GetNodes() []string + func (x *FindPeersResp) ProtoReflect() protoreflect.Message + func (x *FindPeersResp) Reset() + func (x *FindPeersResp) String() string + type IdentityClient interface + Hello func(ctx context.Context, in *Status, opts ...grpc.CallOption) (*Status, error) + func NewIdentityClient(cc grpc.ClientConnInterface) IdentityClient + type IdentityServer interface + Hello func(context.Context, *Status) (*Status, error) + type PeerInfo struct + From string + Nodes []string + func (*PeerInfo) Descriptor() ([]byte, []int) + func (*PeerInfo) ProtoMessage() + func (x *PeerInfo) GetFrom() string + func (x *PeerInfo) GetNodes() []string + func (x *PeerInfo) ProtoReflect() protoreflect.Message + func (x *PeerInfo) Reset() + func (x *PeerInfo) String() string + type Status struct + Genesis string + Keys []*Status_Key + Metadata map[string]string + Network int64 + TemporaryDial bool + func (*Status) Descriptor() ([]byte, []int) + func (*Status) ProtoMessage() + func (x *Status) GetGenesis() string + func (x *Status) GetKeys() []*Status_Key + func (x *Status) GetMetadata() map[string]string + func (x *Status) GetNetwork() int64 + func (x *Status) GetTemporaryDial() bool + func (x *Status) ProtoReflect() protoreflect.Message + func (x *Status) Reset() + func (x *Status) String() string + type Status_Key struct + Message string + Signature string + func (*Status_Key) Descriptor() ([]byte, []int) + func (*Status_Key) ProtoMessage() + func (x *Status_Key) GetMessage() string + func (x *Status_Key) GetSignature() string + func (x *Status_Key) ProtoReflect() protoreflect.Message + func (x *Status_Key) Reset() + func (x *Status_Key) String() string + type UnimplementedDiscoveryServer struct + func (UnimplementedDiscoveryServer) FindPeers(context.Context, *FindPeersReq) (*FindPeersResp, error) + type UnimplementedIdentityServer struct + func (UnimplementedIdentityServer) Hello(context.Context, *Status) (*Status, error) + type UnsafeDiscoveryServer interface + type UnsafeIdentityServer interface