Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_fibo_proto protoreflect.FileDescriptor
Functions ¶
func RegisterFibonacciServiceServer ¶
func RegisterFibonacciServiceServer(s *grpc.Server, srv FibonacciServiceServer)
Types ¶
type FibonacciServiceClient ¶
type FibonacciServiceClient interface {
Fibo(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
FibonacciServiceClient is the client API for FibonacciService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewFibonacciServiceClient ¶
func NewFibonacciServiceClient(cc grpc.ClientConnInterface) FibonacciServiceClient
type FibonacciServiceServer ¶
FibonacciServiceServer is the server API for FibonacciService service.
type Request ¶
type Request struct { Place int32 `protobuf:"varint,1,opt,name=place,proto3" json:"place,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type UnimplementedFibonacciServiceServer ¶
type UnimplementedFibonacciServiceServer struct { }
UnimplementedFibonacciServiceServer can be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.