Documentation ¶
Index ¶
- func RegisterCalculatorServiceServer(s *grpc.Server, srv CalculatorServiceServer)
- type CalculatorServiceClient
- type CalculatorServiceServer
- type CalculatorService_ComputeAverageClient
- type CalculatorService_ComputeAverageServer
- type CalculatorService_FindMaximumClient
- type CalculatorService_FindMaximumServer
- type CalculatorService_PrimeNumberDecompositionClient
- type CalculatorService_PrimeNumberDecompositionServer
- type ComputeAverageRequest
- func (*ComputeAverageRequest) Descriptor() ([]byte, []int)
- func (m *ComputeAverageRequest) GetNumber() int32
- func (*ComputeAverageRequest) ProtoMessage()
- func (m *ComputeAverageRequest) Reset()
- func (m *ComputeAverageRequest) String() string
- func (m *ComputeAverageRequest) XXX_DiscardUnknown()
- func (m *ComputeAverageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ComputeAverageRequest) XXX_Merge(src proto.Message)
- func (m *ComputeAverageRequest) XXX_Size() int
- func (m *ComputeAverageRequest) XXX_Unmarshal(b []byte) error
- type ComputeAverageResponse
- func (*ComputeAverageResponse) Descriptor() ([]byte, []int)
- func (m *ComputeAverageResponse) GetAverage() float64
- func (*ComputeAverageResponse) ProtoMessage()
- func (m *ComputeAverageResponse) Reset()
- func (m *ComputeAverageResponse) String() string
- func (m *ComputeAverageResponse) XXX_DiscardUnknown()
- func (m *ComputeAverageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ComputeAverageResponse) XXX_Merge(src proto.Message)
- func (m *ComputeAverageResponse) XXX_Size() int
- func (m *ComputeAverageResponse) XXX_Unmarshal(b []byte) error
- type FindMaximumRequest
- func (*FindMaximumRequest) Descriptor() ([]byte, []int)
- func (m *FindMaximumRequest) GetNumber() int32
- func (*FindMaximumRequest) ProtoMessage()
- func (m *FindMaximumRequest) Reset()
- func (m *FindMaximumRequest) String() string
- func (m *FindMaximumRequest) XXX_DiscardUnknown()
- func (m *FindMaximumRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FindMaximumRequest) XXX_Merge(src proto.Message)
- func (m *FindMaximumRequest) XXX_Size() int
- func (m *FindMaximumRequest) XXX_Unmarshal(b []byte) error
- type FindMaximumResponse
- func (*FindMaximumResponse) Descriptor() ([]byte, []int)
- func (m *FindMaximumResponse) GetMaximum() int32
- func (*FindMaximumResponse) ProtoMessage()
- func (m *FindMaximumResponse) Reset()
- func (m *FindMaximumResponse) String() string
- func (m *FindMaximumResponse) XXX_DiscardUnknown()
- func (m *FindMaximumResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FindMaximumResponse) XXX_Merge(src proto.Message)
- func (m *FindMaximumResponse) XXX_Size() int
- func (m *FindMaximumResponse) XXX_Unmarshal(b []byte) error
- type PrimeNumberDecompositionRequest
- func (*PrimeNumberDecompositionRequest) Descriptor() ([]byte, []int)
- func (m *PrimeNumberDecompositionRequest) GetNumber() int64
- func (*PrimeNumberDecompositionRequest) ProtoMessage()
- func (m *PrimeNumberDecompositionRequest) Reset()
- func (m *PrimeNumberDecompositionRequest) String() string
- func (m *PrimeNumberDecompositionRequest) XXX_DiscardUnknown()
- func (m *PrimeNumberDecompositionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PrimeNumberDecompositionRequest) XXX_Merge(src proto.Message)
- func (m *PrimeNumberDecompositionRequest) XXX_Size() int
- func (m *PrimeNumberDecompositionRequest) XXX_Unmarshal(b []byte) error
- type PrimeNumberDecompositionResponse
- func (*PrimeNumberDecompositionResponse) Descriptor() ([]byte, []int)
- func (m *PrimeNumberDecompositionResponse) GetPrimeFactor() int64
- func (*PrimeNumberDecompositionResponse) ProtoMessage()
- func (m *PrimeNumberDecompositionResponse) Reset()
- func (m *PrimeNumberDecompositionResponse) String() string
- func (m *PrimeNumberDecompositionResponse) XXX_DiscardUnknown()
- func (m *PrimeNumberDecompositionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PrimeNumberDecompositionResponse) XXX_Merge(src proto.Message)
- func (m *PrimeNumberDecompositionResponse) XXX_Size() int
- func (m *PrimeNumberDecompositionResponse) XXX_Unmarshal(b []byte) error
- type SquareRootRequest
- func (*SquareRootRequest) Descriptor() ([]byte, []int)
- func (m *SquareRootRequest) GetNumber() int32
- func (*SquareRootRequest) ProtoMessage()
- func (m *SquareRootRequest) Reset()
- func (m *SquareRootRequest) String() string
- func (m *SquareRootRequest) XXX_DiscardUnknown()
- func (m *SquareRootRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SquareRootRequest) XXX_Merge(src proto.Message)
- func (m *SquareRootRequest) XXX_Size() int
- func (m *SquareRootRequest) XXX_Unmarshal(b []byte) error
- type SquareRootResponse
- func (*SquareRootResponse) Descriptor() ([]byte, []int)
- func (m *SquareRootResponse) GetNumberRoot() float64
- func (*SquareRootResponse) ProtoMessage()
- func (m *SquareRootResponse) Reset()
- func (m *SquareRootResponse) String() string
- func (m *SquareRootResponse) XXX_DiscardUnknown()
- func (m *SquareRootResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SquareRootResponse) XXX_Merge(src proto.Message)
- func (m *SquareRootResponse) XXX_Size() int
- func (m *SquareRootResponse) XXX_Unmarshal(b []byte) error
- type SumRequest
- func (*SumRequest) Descriptor() ([]byte, []int)
- func (m *SumRequest) GetFirstNumber() int32
- func (m *SumRequest) GetSecondUmber() int32
- func (*SumRequest) ProtoMessage()
- func (m *SumRequest) Reset()
- func (m *SumRequest) String() string
- func (m *SumRequest) XXX_DiscardUnknown()
- func (m *SumRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SumRequest) XXX_Merge(src proto.Message)
- func (m *SumRequest) XXX_Size() int
- func (m *SumRequest) XXX_Unmarshal(b []byte) error
- type SumResponse
- func (*SumResponse) Descriptor() ([]byte, []int)
- func (m *SumResponse) GetSumResult() int32
- func (*SumResponse) ProtoMessage()
- func (m *SumResponse) Reset()
- func (m *SumResponse) String() string
- func (m *SumResponse) XXX_DiscardUnknown()
- func (m *SumResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SumResponse) XXX_Merge(src proto.Message)
- func (m *SumResponse) XXX_Size() int
- func (m *SumResponse) XXX_Unmarshal(b []byte) error
- type SumWithDeadLineRequest
- func (*SumWithDeadLineRequest) Descriptor() ([]byte, []int)
- func (m *SumWithDeadLineRequest) GetFirstNumber() int32
- func (m *SumWithDeadLineRequest) GetSecondUmber() int32
- func (*SumWithDeadLineRequest) ProtoMessage()
- func (m *SumWithDeadLineRequest) Reset()
- func (m *SumWithDeadLineRequest) String() string
- func (m *SumWithDeadLineRequest) XXX_DiscardUnknown()
- func (m *SumWithDeadLineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SumWithDeadLineRequest) XXX_Merge(src proto.Message)
- func (m *SumWithDeadLineRequest) XXX_Size() int
- func (m *SumWithDeadLineRequest) XXX_Unmarshal(b []byte) error
- type SumWithDeadLineResponse
- func (*SumWithDeadLineResponse) Descriptor() ([]byte, []int)
- func (m *SumWithDeadLineResponse) GetSumResult() int32
- func (*SumWithDeadLineResponse) ProtoMessage()
- func (m *SumWithDeadLineResponse) Reset()
- func (m *SumWithDeadLineResponse) String() string
- func (m *SumWithDeadLineResponse) XXX_DiscardUnknown()
- func (m *SumWithDeadLineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SumWithDeadLineResponse) XXX_Merge(src proto.Message)
- func (m *SumWithDeadLineResponse) XXX_Size() int
- func (m *SumWithDeadLineResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedCalculatorServiceServer
- func (*UnimplementedCalculatorServiceServer) ComputeAverage(srv CalculatorService_ComputeAverageServer) error
- func (*UnimplementedCalculatorServiceServer) FindMaximum(srv CalculatorService_FindMaximumServer) error
- func (*UnimplementedCalculatorServiceServer) PrimeNumberDecomposition(req *PrimeNumberDecompositionRequest, ...) error
- func (*UnimplementedCalculatorServiceServer) SquareRoot(ctx context.Context, req *SquareRootRequest) (*SquareRootResponse, error)
- func (*UnimplementedCalculatorServiceServer) Sum(ctx context.Context, req *SumRequest) (*SumResponse, error)
- func (*UnimplementedCalculatorServiceServer) SumWithDeadLine(ctx context.Context, req *SumWithDeadLineRequest) (*SumWithDeadLineResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCalculatorServiceServer ¶
func RegisterCalculatorServiceServer(s *grpc.Server, srv CalculatorServiceServer)
Types ¶
type CalculatorServiceClient ¶
type CalculatorServiceClient interface { // Unary Sum(ctx context.Context, in *SumRequest, opts ...grpc.CallOption) (*SumResponse, error) // Server Streaming PrimeNumberDecomposition(ctx context.Context, in *PrimeNumberDecompositionRequest, opts ...grpc.CallOption) (CalculatorService_PrimeNumberDecompositionClient, error) // Client Streaming ComputeAverage(ctx context.Context, opts ...grpc.CallOption) (CalculatorService_ComputeAverageClient, error) // BiDi Streaming FindMaximum(ctx context.Context, opts ...grpc.CallOption) (CalculatorService_FindMaximumClient, error) // Error Handing SquareRoot(ctx context.Context, in *SquareRootRequest, opts ...grpc.CallOption) (*SquareRootResponse, error) // Dead Line SumWithDeadLine(ctx context.Context, in *SumWithDeadLineRequest, opts ...grpc.CallOption) (*SumWithDeadLineResponse, error) }
CalculatorServiceClient is the client API for CalculatorService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCalculatorServiceClient ¶
func NewCalculatorServiceClient(cc *grpc.ClientConn) CalculatorServiceClient
type CalculatorServiceServer ¶
type CalculatorServiceServer interface { // Unary Sum(context.Context, *SumRequest) (*SumResponse, error) // Server Streaming PrimeNumberDecomposition(*PrimeNumberDecompositionRequest, CalculatorService_PrimeNumberDecompositionServer) error // Client Streaming ComputeAverage(CalculatorService_ComputeAverageServer) error // BiDi Streaming FindMaximum(CalculatorService_FindMaximumServer) error // Error Handing SquareRoot(context.Context, *SquareRootRequest) (*SquareRootResponse, error) // Dead Line SumWithDeadLine(context.Context, *SumWithDeadLineRequest) (*SumWithDeadLineResponse, error) }
CalculatorServiceServer is the server API for CalculatorService service.
type CalculatorService_ComputeAverageClient ¶
type CalculatorService_ComputeAverageClient interface { Send(*ComputeAverageRequest) error CloseAndRecv() (*ComputeAverageResponse, error) grpc.ClientStream }
type CalculatorService_ComputeAverageServer ¶
type CalculatorService_ComputeAverageServer interface { SendAndClose(*ComputeAverageResponse) error Recv() (*ComputeAverageRequest, error) grpc.ServerStream }
type CalculatorService_FindMaximumClient ¶
type CalculatorService_FindMaximumClient interface { Send(*FindMaximumRequest) error Recv() (*FindMaximumResponse, error) grpc.ClientStream }
type CalculatorService_FindMaximumServer ¶
type CalculatorService_FindMaximumServer interface { Send(*FindMaximumResponse) error Recv() (*FindMaximumRequest, error) grpc.ServerStream }
type CalculatorService_PrimeNumberDecompositionClient ¶
type CalculatorService_PrimeNumberDecompositionClient interface { Recv() (*PrimeNumberDecompositionResponse, error) grpc.ClientStream }
type CalculatorService_PrimeNumberDecompositionServer ¶
type CalculatorService_PrimeNumberDecompositionServer interface { Send(*PrimeNumberDecompositionResponse) error grpc.ServerStream }
type ComputeAverageRequest ¶
type ComputeAverageRequest struct { Number int32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ComputeAverageRequest) Descriptor ¶
func (*ComputeAverageRequest) Descriptor() ([]byte, []int)
func (*ComputeAverageRequest) GetNumber ¶
func (m *ComputeAverageRequest) GetNumber() int32
func (*ComputeAverageRequest) ProtoMessage ¶
func (*ComputeAverageRequest) ProtoMessage()
func (*ComputeAverageRequest) Reset ¶
func (m *ComputeAverageRequest) Reset()
func (*ComputeAverageRequest) String ¶
func (m *ComputeAverageRequest) String() string
func (*ComputeAverageRequest) XXX_DiscardUnknown ¶
func (m *ComputeAverageRequest) XXX_DiscardUnknown()
func (*ComputeAverageRequest) XXX_Marshal ¶
func (m *ComputeAverageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ComputeAverageRequest) XXX_Merge ¶
func (m *ComputeAverageRequest) XXX_Merge(src proto.Message)
func (*ComputeAverageRequest) XXX_Size ¶
func (m *ComputeAverageRequest) XXX_Size() int
func (*ComputeAverageRequest) XXX_Unmarshal ¶
func (m *ComputeAverageRequest) XXX_Unmarshal(b []byte) error
type ComputeAverageResponse ¶
type ComputeAverageResponse struct { Average float64 `protobuf:"fixed64,1,opt,name=average,proto3" json:"average,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ComputeAverageResponse) Descriptor ¶
func (*ComputeAverageResponse) Descriptor() ([]byte, []int)
func (*ComputeAverageResponse) GetAverage ¶
func (m *ComputeAverageResponse) GetAverage() float64
func (*ComputeAverageResponse) ProtoMessage ¶
func (*ComputeAverageResponse) ProtoMessage()
func (*ComputeAverageResponse) Reset ¶
func (m *ComputeAverageResponse) Reset()
func (*ComputeAverageResponse) String ¶
func (m *ComputeAverageResponse) String() string
func (*ComputeAverageResponse) XXX_DiscardUnknown ¶
func (m *ComputeAverageResponse) XXX_DiscardUnknown()
func (*ComputeAverageResponse) XXX_Marshal ¶
func (m *ComputeAverageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ComputeAverageResponse) XXX_Merge ¶
func (m *ComputeAverageResponse) XXX_Merge(src proto.Message)
func (*ComputeAverageResponse) XXX_Size ¶
func (m *ComputeAverageResponse) XXX_Size() int
func (*ComputeAverageResponse) XXX_Unmarshal ¶
func (m *ComputeAverageResponse) XXX_Unmarshal(b []byte) error
type FindMaximumRequest ¶
type FindMaximumRequest struct { Number int32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FindMaximumRequest) Descriptor ¶
func (*FindMaximumRequest) Descriptor() ([]byte, []int)
func (*FindMaximumRequest) GetNumber ¶
func (m *FindMaximumRequest) GetNumber() int32
func (*FindMaximumRequest) ProtoMessage ¶
func (*FindMaximumRequest) ProtoMessage()
func (*FindMaximumRequest) Reset ¶
func (m *FindMaximumRequest) Reset()
func (*FindMaximumRequest) String ¶
func (m *FindMaximumRequest) String() string
func (*FindMaximumRequest) XXX_DiscardUnknown ¶
func (m *FindMaximumRequest) XXX_DiscardUnknown()
func (*FindMaximumRequest) XXX_Marshal ¶
func (m *FindMaximumRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FindMaximumRequest) XXX_Merge ¶
func (m *FindMaximumRequest) XXX_Merge(src proto.Message)
func (*FindMaximumRequest) XXX_Size ¶
func (m *FindMaximumRequest) XXX_Size() int
func (*FindMaximumRequest) XXX_Unmarshal ¶
func (m *FindMaximumRequest) XXX_Unmarshal(b []byte) error
type FindMaximumResponse ¶
type FindMaximumResponse struct { Maximum int32 `protobuf:"varint,1,opt,name=maximum,proto3" json:"maximum,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FindMaximumResponse) Descriptor ¶
func (*FindMaximumResponse) Descriptor() ([]byte, []int)
func (*FindMaximumResponse) GetMaximum ¶
func (m *FindMaximumResponse) GetMaximum() int32
func (*FindMaximumResponse) ProtoMessage ¶
func (*FindMaximumResponse) ProtoMessage()
func (*FindMaximumResponse) Reset ¶
func (m *FindMaximumResponse) Reset()
func (*FindMaximumResponse) String ¶
func (m *FindMaximumResponse) String() string
func (*FindMaximumResponse) XXX_DiscardUnknown ¶
func (m *FindMaximumResponse) XXX_DiscardUnknown()
func (*FindMaximumResponse) XXX_Marshal ¶
func (m *FindMaximumResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FindMaximumResponse) XXX_Merge ¶
func (m *FindMaximumResponse) XXX_Merge(src proto.Message)
func (*FindMaximumResponse) XXX_Size ¶
func (m *FindMaximumResponse) XXX_Size() int
func (*FindMaximumResponse) XXX_Unmarshal ¶
func (m *FindMaximumResponse) XXX_Unmarshal(b []byte) error
type PrimeNumberDecompositionRequest ¶
type PrimeNumberDecompositionRequest struct { Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PrimeNumberDecompositionRequest) Descriptor ¶
func (*PrimeNumberDecompositionRequest) Descriptor() ([]byte, []int)
func (*PrimeNumberDecompositionRequest) GetNumber ¶
func (m *PrimeNumberDecompositionRequest) GetNumber() int64
func (*PrimeNumberDecompositionRequest) ProtoMessage ¶
func (*PrimeNumberDecompositionRequest) ProtoMessage()
func (*PrimeNumberDecompositionRequest) Reset ¶
func (m *PrimeNumberDecompositionRequest) Reset()
func (*PrimeNumberDecompositionRequest) String ¶
func (m *PrimeNumberDecompositionRequest) String() string
func (*PrimeNumberDecompositionRequest) XXX_DiscardUnknown ¶
func (m *PrimeNumberDecompositionRequest) XXX_DiscardUnknown()
func (*PrimeNumberDecompositionRequest) XXX_Marshal ¶
func (m *PrimeNumberDecompositionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PrimeNumberDecompositionRequest) XXX_Merge ¶
func (m *PrimeNumberDecompositionRequest) XXX_Merge(src proto.Message)
func (*PrimeNumberDecompositionRequest) XXX_Size ¶
func (m *PrimeNumberDecompositionRequest) XXX_Size() int
func (*PrimeNumberDecompositionRequest) XXX_Unmarshal ¶
func (m *PrimeNumberDecompositionRequest) XXX_Unmarshal(b []byte) error
type PrimeNumberDecompositionResponse ¶
type PrimeNumberDecompositionResponse struct { PrimeFactor int64 `protobuf:"varint,1,opt,name=prime_factor,json=primeFactor,proto3" json:"prime_factor,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PrimeNumberDecompositionResponse) Descriptor ¶
func (*PrimeNumberDecompositionResponse) Descriptor() ([]byte, []int)
func (*PrimeNumberDecompositionResponse) GetPrimeFactor ¶
func (m *PrimeNumberDecompositionResponse) GetPrimeFactor() int64
func (*PrimeNumberDecompositionResponse) ProtoMessage ¶
func (*PrimeNumberDecompositionResponse) ProtoMessage()
func (*PrimeNumberDecompositionResponse) Reset ¶
func (m *PrimeNumberDecompositionResponse) Reset()
func (*PrimeNumberDecompositionResponse) String ¶
func (m *PrimeNumberDecompositionResponse) String() string
func (*PrimeNumberDecompositionResponse) XXX_DiscardUnknown ¶
func (m *PrimeNumberDecompositionResponse) XXX_DiscardUnknown()
func (*PrimeNumberDecompositionResponse) XXX_Marshal ¶
func (m *PrimeNumberDecompositionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PrimeNumberDecompositionResponse) XXX_Merge ¶
func (m *PrimeNumberDecompositionResponse) XXX_Merge(src proto.Message)
func (*PrimeNumberDecompositionResponse) XXX_Size ¶
func (m *PrimeNumberDecompositionResponse) XXX_Size() int
func (*PrimeNumberDecompositionResponse) XXX_Unmarshal ¶
func (m *PrimeNumberDecompositionResponse) XXX_Unmarshal(b []byte) error
type SquareRootRequest ¶
type SquareRootRequest struct { Number int32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SquareRootRequest) Descriptor ¶
func (*SquareRootRequest) Descriptor() ([]byte, []int)
func (*SquareRootRequest) GetNumber ¶
func (m *SquareRootRequest) GetNumber() int32
func (*SquareRootRequest) ProtoMessage ¶
func (*SquareRootRequest) ProtoMessage()
func (*SquareRootRequest) Reset ¶
func (m *SquareRootRequest) Reset()
func (*SquareRootRequest) String ¶
func (m *SquareRootRequest) String() string
func (*SquareRootRequest) XXX_DiscardUnknown ¶
func (m *SquareRootRequest) XXX_DiscardUnknown()
func (*SquareRootRequest) XXX_Marshal ¶
func (m *SquareRootRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SquareRootRequest) XXX_Merge ¶
func (m *SquareRootRequest) XXX_Merge(src proto.Message)
func (*SquareRootRequest) XXX_Size ¶
func (m *SquareRootRequest) XXX_Size() int
func (*SquareRootRequest) XXX_Unmarshal ¶
func (m *SquareRootRequest) XXX_Unmarshal(b []byte) error
type SquareRootResponse ¶
type SquareRootResponse struct { NumberRoot float64 `protobuf:"fixed64,1,opt,name=number_root,json=numberRoot,proto3" json:"number_root,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SquareRootResponse) Descriptor ¶
func (*SquareRootResponse) Descriptor() ([]byte, []int)
func (*SquareRootResponse) GetNumberRoot ¶
func (m *SquareRootResponse) GetNumberRoot() float64
func (*SquareRootResponse) ProtoMessage ¶
func (*SquareRootResponse) ProtoMessage()
func (*SquareRootResponse) Reset ¶
func (m *SquareRootResponse) Reset()
func (*SquareRootResponse) String ¶
func (m *SquareRootResponse) String() string
func (*SquareRootResponse) XXX_DiscardUnknown ¶
func (m *SquareRootResponse) XXX_DiscardUnknown()
func (*SquareRootResponse) XXX_Marshal ¶
func (m *SquareRootResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SquareRootResponse) XXX_Merge ¶
func (m *SquareRootResponse) XXX_Merge(src proto.Message)
func (*SquareRootResponse) XXX_Size ¶
func (m *SquareRootResponse) XXX_Size() int
func (*SquareRootResponse) XXX_Unmarshal ¶
func (m *SquareRootResponse) XXX_Unmarshal(b []byte) error
type SumRequest ¶
type SumRequest struct { FirstNumber int32 `protobuf:"varint,1,opt,name=first_number,json=firstNumber,proto3" json:"first_number,omitempty"` SecondUmber int32 `protobuf:"varint,2,opt,name=second_umber,json=secondUmber,proto3" json:"second_umber,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SumRequest) Descriptor ¶
func (*SumRequest) Descriptor() ([]byte, []int)
func (*SumRequest) GetFirstNumber ¶
func (m *SumRequest) GetFirstNumber() int32
func (*SumRequest) GetSecondUmber ¶
func (m *SumRequest) GetSecondUmber() int32
func (*SumRequest) ProtoMessage ¶
func (*SumRequest) ProtoMessage()
func (*SumRequest) Reset ¶
func (m *SumRequest) Reset()
func (*SumRequest) String ¶
func (m *SumRequest) String() string
func (*SumRequest) XXX_DiscardUnknown ¶
func (m *SumRequest) XXX_DiscardUnknown()
func (*SumRequest) XXX_Marshal ¶
func (m *SumRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SumRequest) XXX_Merge ¶
func (m *SumRequest) XXX_Merge(src proto.Message)
func (*SumRequest) XXX_Size ¶
func (m *SumRequest) XXX_Size() int
func (*SumRequest) XXX_Unmarshal ¶
func (m *SumRequest) XXX_Unmarshal(b []byte) error
type SumResponse ¶
type SumResponse struct { SumResult int32 `protobuf:"varint,1,opt,name=sum_result,json=sumResult,proto3" json:"sum_result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SumResponse) Descriptor ¶
func (*SumResponse) Descriptor() ([]byte, []int)
func (*SumResponse) GetSumResult ¶
func (m *SumResponse) GetSumResult() int32
func (*SumResponse) ProtoMessage ¶
func (*SumResponse) ProtoMessage()
func (*SumResponse) Reset ¶
func (m *SumResponse) Reset()
func (*SumResponse) String ¶
func (m *SumResponse) String() string
func (*SumResponse) XXX_DiscardUnknown ¶
func (m *SumResponse) XXX_DiscardUnknown()
func (*SumResponse) XXX_Marshal ¶
func (m *SumResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SumResponse) XXX_Merge ¶
func (m *SumResponse) XXX_Merge(src proto.Message)
func (*SumResponse) XXX_Size ¶
func (m *SumResponse) XXX_Size() int
func (*SumResponse) XXX_Unmarshal ¶
func (m *SumResponse) XXX_Unmarshal(b []byte) error
type SumWithDeadLineRequest ¶
type SumWithDeadLineRequest struct { FirstNumber int32 `protobuf:"varint,1,opt,name=first_number,json=firstNumber,proto3" json:"first_number,omitempty"` SecondUmber int32 `protobuf:"varint,2,opt,name=second_umber,json=secondUmber,proto3" json:"second_umber,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SumWithDeadLineRequest) Descriptor ¶
func (*SumWithDeadLineRequest) Descriptor() ([]byte, []int)
func (*SumWithDeadLineRequest) GetFirstNumber ¶
func (m *SumWithDeadLineRequest) GetFirstNumber() int32
func (*SumWithDeadLineRequest) GetSecondUmber ¶
func (m *SumWithDeadLineRequest) GetSecondUmber() int32
func (*SumWithDeadLineRequest) ProtoMessage ¶
func (*SumWithDeadLineRequest) ProtoMessage()
func (*SumWithDeadLineRequest) Reset ¶
func (m *SumWithDeadLineRequest) Reset()
func (*SumWithDeadLineRequest) String ¶
func (m *SumWithDeadLineRequest) String() string
func (*SumWithDeadLineRequest) XXX_DiscardUnknown ¶
func (m *SumWithDeadLineRequest) XXX_DiscardUnknown()
func (*SumWithDeadLineRequest) XXX_Marshal ¶
func (m *SumWithDeadLineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SumWithDeadLineRequest) XXX_Merge ¶
func (m *SumWithDeadLineRequest) XXX_Merge(src proto.Message)
func (*SumWithDeadLineRequest) XXX_Size ¶
func (m *SumWithDeadLineRequest) XXX_Size() int
func (*SumWithDeadLineRequest) XXX_Unmarshal ¶
func (m *SumWithDeadLineRequest) XXX_Unmarshal(b []byte) error
type SumWithDeadLineResponse ¶
type SumWithDeadLineResponse struct { SumResult int32 `protobuf:"varint,1,opt,name=sum_result,json=sumResult,proto3" json:"sum_result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SumWithDeadLineResponse) Descriptor ¶
func (*SumWithDeadLineResponse) Descriptor() ([]byte, []int)
func (*SumWithDeadLineResponse) GetSumResult ¶
func (m *SumWithDeadLineResponse) GetSumResult() int32
func (*SumWithDeadLineResponse) ProtoMessage ¶
func (*SumWithDeadLineResponse) ProtoMessage()
func (*SumWithDeadLineResponse) Reset ¶
func (m *SumWithDeadLineResponse) Reset()
func (*SumWithDeadLineResponse) String ¶
func (m *SumWithDeadLineResponse) String() string
func (*SumWithDeadLineResponse) XXX_DiscardUnknown ¶
func (m *SumWithDeadLineResponse) XXX_DiscardUnknown()
func (*SumWithDeadLineResponse) XXX_Marshal ¶
func (m *SumWithDeadLineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SumWithDeadLineResponse) XXX_Merge ¶
func (m *SumWithDeadLineResponse) XXX_Merge(src proto.Message)
func (*SumWithDeadLineResponse) XXX_Size ¶
func (m *SumWithDeadLineResponse) XXX_Size() int
func (*SumWithDeadLineResponse) XXX_Unmarshal ¶
func (m *SumWithDeadLineResponse) XXX_Unmarshal(b []byte) error
type UnimplementedCalculatorServiceServer ¶
type UnimplementedCalculatorServiceServer struct { }
UnimplementedCalculatorServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedCalculatorServiceServer) ComputeAverage ¶
func (*UnimplementedCalculatorServiceServer) ComputeAverage(srv CalculatorService_ComputeAverageServer) error
func (*UnimplementedCalculatorServiceServer) FindMaximum ¶
func (*UnimplementedCalculatorServiceServer) FindMaximum(srv CalculatorService_FindMaximumServer) error
func (*UnimplementedCalculatorServiceServer) PrimeNumberDecomposition ¶
func (*UnimplementedCalculatorServiceServer) PrimeNumberDecomposition(req *PrimeNumberDecompositionRequest, srv CalculatorService_PrimeNumberDecompositionServer) error
func (*UnimplementedCalculatorServiceServer) SquareRoot ¶
func (*UnimplementedCalculatorServiceServer) SquareRoot(ctx context.Context, req *SquareRootRequest) (*SquareRootResponse, error)
func (*UnimplementedCalculatorServiceServer) Sum ¶
func (*UnimplementedCalculatorServiceServer) Sum(ctx context.Context, req *SumRequest) (*SumResponse, error)
func (*UnimplementedCalculatorServiceServer) SumWithDeadLine ¶
func (*UnimplementedCalculatorServiceServer) SumWithDeadLine(ctx context.Context, req *SumWithDeadLineRequest) (*SumWithDeadLineResponse, error)
Click to show internal directories.
Click to hide internal directories.