Documentation ¶
Index ¶
- Variables
- func RegisterGreetingServiceServer(s *grpc.Server, srv GreetingServiceServer)
- type GreetingRequest
- func (*GreetingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GreetingRequest) GetPort() int32
- func (x *GreetingRequest) GetPubkey() *PubKey
- func (x *GreetingRequest) GetVersion() int32
- func (*GreetingRequest) ProtoMessage()
- func (x *GreetingRequest) ProtoReflect() protoreflect.Message
- func (x *GreetingRequest) Reset()
- func (x *GreetingRequest) String() string
- type GreetingResponse
- func (*GreetingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GreetingResponse) GetIpaddresses() []byte
- func (x *GreetingResponse) GetPort() int32
- func (x *GreetingResponse) GetVisible() bool
- func (*GreetingResponse) ProtoMessage()
- func (x *GreetingResponse) ProtoReflect() protoreflect.Message
- func (x *GreetingResponse) Reset()
- func (x *GreetingResponse) String() string
- type GreetingServiceClient
- type GreetingServiceServer
- type Node
- func (*Node) Descriptor() ([]byte, []int)deprecated
- func (x *Node) GetActive() bool
- func (x *Node) GetId() []byte
- func (x *Node) GetIpaddresses() [][]byte
- func (x *Node) GetLastactivity() int64
- func (x *Node) GetLastupdate() int64
- func (x *Node) GetPort() int32
- func (x *Node) GetPubkey() *PubKey
- func (*Node) ProtoMessage()
- func (x *Node) ProtoReflect() protoreflect.Message
- func (x *Node) Reset()
- func (x *Node) String() string
- type PubKey
- type UnimplementedGreetingServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_greeting_proto protoreflect.FileDescriptor
View Source
var File_node_proto protoreflect.FileDescriptor
View Source
var File_pubkey_proto protoreflect.FileDescriptor
Functions ¶
func RegisterGreetingServiceServer ¶
func RegisterGreetingServiceServer(s *grpc.Server, srv GreetingServiceServer)
Types ¶
type GreetingRequest ¶
type GreetingRequest struct { Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` Pubkey *PubKey `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"` // contains filtered or unexported fields }
func (*GreetingRequest) Descriptor
deprecated
func (*GreetingRequest) Descriptor() ([]byte, []int)
Deprecated: Use GreetingRequest.ProtoReflect.Descriptor instead.
func (*GreetingRequest) GetPort ¶
func (x *GreetingRequest) GetPort() int32
func (*GreetingRequest) GetPubkey ¶
func (x *GreetingRequest) GetPubkey() *PubKey
func (*GreetingRequest) GetVersion ¶
func (x *GreetingRequest) GetVersion() int32
func (*GreetingRequest) ProtoMessage ¶
func (*GreetingRequest) ProtoMessage()
func (*GreetingRequest) ProtoReflect ¶
func (x *GreetingRequest) ProtoReflect() protoreflect.Message
func (*GreetingRequest) Reset ¶
func (x *GreetingRequest) Reset()
func (*GreetingRequest) String ¶
func (x *GreetingRequest) String() string
type GreetingResponse ¶
type GreetingResponse struct { Ipaddresses []byte `protobuf:"bytes,1,opt,name=ipaddresses,proto3" json:"ipaddresses,omitempty"` Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` Visible bool `protobuf:"varint,3,opt,name=visible,proto3" json:"visible,omitempty"` // contains filtered or unexported fields }
func (*GreetingResponse) Descriptor
deprecated
func (*GreetingResponse) Descriptor() ([]byte, []int)
Deprecated: Use GreetingResponse.ProtoReflect.Descriptor instead.
func (*GreetingResponse) GetIpaddresses ¶
func (x *GreetingResponse) GetIpaddresses() []byte
func (*GreetingResponse) GetPort ¶
func (x *GreetingResponse) GetPort() int32
func (*GreetingResponse) GetVisible ¶
func (x *GreetingResponse) GetVisible() bool
func (*GreetingResponse) ProtoMessage ¶
func (*GreetingResponse) ProtoMessage()
func (*GreetingResponse) ProtoReflect ¶
func (x *GreetingResponse) ProtoReflect() protoreflect.Message
func (*GreetingResponse) Reset ¶
func (x *GreetingResponse) Reset()
func (*GreetingResponse) String ¶
func (x *GreetingResponse) String() string
type GreetingServiceClient ¶
type GreetingServiceClient interface {
Greeting(ctx context.Context, in *GreetingRequest, opts ...grpc.CallOption) (*GreetingResponse, error)
}
GreetingServiceClient is the client API for GreetingService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGreetingServiceClient ¶
func NewGreetingServiceClient(cc grpc.ClientConnInterface) GreetingServiceClient
type GreetingServiceServer ¶
type GreetingServiceServer interface {
Greeting(context.Context, *GreetingRequest) (*GreetingResponse, error)
}
GreetingServiceServer is the server API for GreetingService service.
type Node ¶
type Node struct { Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Pubkey *PubKey `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` Ipaddresses [][]byte `protobuf:"bytes,3,rep,name=ipaddresses,proto3" json:"ipaddresses,omitempty"` Port int32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` Active bool `protobuf:"varint,5,opt,name=active,proto3" json:"active,omitempty"` Lastactivity int64 `protobuf:"varint,6,opt,name=lastactivity,proto3" json:"lastactivity,omitempty"` Lastupdate int64 `protobuf:"varint,7,opt,name=lastupdate,proto3" json:"lastupdate,omitempty"` // contains filtered or unexported fields }
func (*Node) Descriptor
deprecated
func (*Node) GetIpaddresses ¶
func (*Node) GetLastactivity ¶
func (*Node) GetLastupdate ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) ProtoReflect ¶
func (x *Node) ProtoReflect() protoreflect.Message
type PubKey ¶
type PubKey struct { X []byte `protobuf:"bytes,1,opt,name=X,proto3" json:"X,omitempty"` Y []byte `protobuf:"bytes,2,opt,name=Y,proto3" json:"Y,omitempty"` // contains filtered or unexported fields }
func (*PubKey) Descriptor
deprecated
func (*PubKey) ProtoMessage ¶
func (*PubKey) ProtoMessage()
func (*PubKey) ProtoReflect ¶
func (x *PubKey) ProtoReflect() protoreflect.Message
type UnimplementedGreetingServiceServer ¶
type UnimplementedGreetingServiceServer struct { }
UnimplementedGreetingServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedGreetingServiceServer) Greeting ¶
func (*UnimplementedGreetingServiceServer) Greeting(context.Context, *GreetingRequest) (*GreetingResponse, error)
Click to show internal directories.
Click to hide internal directories.