Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_leaf_proto protoreflect.FileDescriptor
Functions ¶
func RegisterLeafServer ¶
func RegisterLeafServer(s *grpc.Server, srv LeafServer)
Types ¶
type LeafClient ¶
type LeafClient interface {
Query(ctx context.Context, in *LeafRequest, opts ...grpc.CallOption) (*LeafResponse, error)
}
LeafClient is the client API for Leaf service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLeafClient ¶
func NewLeafClient(cc grpc.ClientConnInterface) LeafClient
type LeafRequest ¶
type LeafRequest struct { Domain int64 `protobuf:"varint,1,opt,name=domain,proto3" json:"domain,omitempty"` // contains filtered or unexported fields }
func (*LeafRequest) Descriptor
deprecated
func (*LeafRequest) Descriptor() ([]byte, []int)
Deprecated: Use LeafRequest.ProtoReflect.Descriptor instead.
func (*LeafRequest) GetDomain ¶
func (x *LeafRequest) GetDomain() int64
func (*LeafRequest) ProtoMessage ¶
func (*LeafRequest) ProtoMessage()
func (*LeafRequest) ProtoReflect ¶
func (x *LeafRequest) ProtoReflect() protoreflect.Message
func (*LeafRequest) Reset ¶
func (x *LeafRequest) Reset()
func (*LeafRequest) String ¶
func (x *LeafRequest) String() string
type LeafResponse ¶
type LeafResponse struct { Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // contains filtered or unexported fields }
func (*LeafResponse) Descriptor
deprecated
func (*LeafResponse) Descriptor() ([]byte, []int)
Deprecated: Use LeafResponse.ProtoReflect.Descriptor instead.
func (*LeafResponse) GetNumber ¶
func (x *LeafResponse) GetNumber() int64
func (*LeafResponse) ProtoMessage ¶
func (*LeafResponse) ProtoMessage()
func (*LeafResponse) ProtoReflect ¶
func (x *LeafResponse) ProtoReflect() protoreflect.Message
func (*LeafResponse) Reset ¶
func (x *LeafResponse) Reset()
func (*LeafResponse) String ¶
func (x *LeafResponse) String() string
type LeafServer ¶
type LeafServer interface {
Query(context.Context, *LeafRequest) (*LeafResponse, error)
}
LeafServer is the server API for Leaf service.
type UnimplementedLeafServer ¶
type UnimplementedLeafServer struct { }
UnimplementedLeafServer can be embedded to have forward compatible implementations.
func (*UnimplementedLeafServer) Query ¶
func (*UnimplementedLeafServer) Query(context.Context, *LeafRequest) (*LeafResponse, error)
Click to show internal directories.
Click to hide internal directories.