Documentation ¶
Index ¶
- Variables
- func RegisterCalculateMatrixServer(s *grpc.Server, srv CalculateMatrixServer)
- type Array
- type CalculateMatrixClient
- type CalculateMatrixServer
- type MatrixRequest
- func (*MatrixRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MatrixRequest) GetMatrix1() []*Array
- func (x *MatrixRequest) GetMatrix2() []*Array
- func (*MatrixRequest) ProtoMessage()
- func (x *MatrixRequest) ProtoReflect() protoreflect.Message
- func (x *MatrixRequest) Reset()
- func (x *MatrixRequest) String() string
- type MatrixResponse
- type UnimplementedCalculateMatrixServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_calculate_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCalculateMatrixServer ¶
func RegisterCalculateMatrixServer(s *grpc.Server, srv CalculateMatrixServer)
Types ¶
type Array ¶
type Array struct { Digit []float64 `protobuf:"fixed64,1,rep,packed,name=digit,proto3" json:"digit,omitempty"` // contains filtered or unexported fields }
func (*Array) Descriptor
deprecated
func (*Array) ProtoMessage ¶
func (*Array) ProtoMessage()
func (*Array) ProtoReflect ¶
func (x *Array) ProtoReflect() protoreflect.Message
type CalculateMatrixClient ¶
type CalculateMatrixClient interface { MatrixSum(ctx context.Context, in *MatrixRequest, opts ...grpc.CallOption) (*MatrixResponse, error) MatrixMul(ctx context.Context, in *MatrixRequest, opts ...grpc.CallOption) (*MatrixResponse, error) }
CalculateMatrixClient is the client API for CalculateMatrix service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCalculateMatrixClient ¶
func NewCalculateMatrixClient(cc grpc.ClientConnInterface) CalculateMatrixClient
type CalculateMatrixServer ¶
type CalculateMatrixServer interface { MatrixSum(context.Context, *MatrixRequest) (*MatrixResponse, error) MatrixMul(context.Context, *MatrixRequest) (*MatrixResponse, error) }
CalculateMatrixServer is the server API for CalculateMatrix service.
type MatrixRequest ¶
type MatrixRequest struct { Matrix1 []*Array `protobuf:"bytes,1,rep,name=matrix1,proto3" json:"matrix1,omitempty"` Matrix2 []*Array `protobuf:"bytes,2,rep,name=matrix2,proto3" json:"matrix2,omitempty"` // contains filtered or unexported fields }
func (*MatrixRequest) Descriptor
deprecated
func (*MatrixRequest) Descriptor() ([]byte, []int)
Deprecated: Use MatrixRequest.ProtoReflect.Descriptor instead.
func (*MatrixRequest) GetMatrix1 ¶
func (x *MatrixRequest) GetMatrix1() []*Array
func (*MatrixRequest) GetMatrix2 ¶
func (x *MatrixRequest) GetMatrix2() []*Array
func (*MatrixRequest) ProtoMessage ¶
func (*MatrixRequest) ProtoMessage()
func (*MatrixRequest) ProtoReflect ¶
func (x *MatrixRequest) ProtoReflect() protoreflect.Message
func (*MatrixRequest) Reset ¶
func (x *MatrixRequest) Reset()
func (*MatrixRequest) String ¶
func (x *MatrixRequest) String() string
type MatrixResponse ¶
type MatrixResponse struct { Matrix []*Array `protobuf:"bytes,1,rep,name=matrix,proto3" json:"matrix,omitempty"` // contains filtered or unexported fields }
func (*MatrixResponse) Descriptor
deprecated
func (*MatrixResponse) Descriptor() ([]byte, []int)
Deprecated: Use MatrixResponse.ProtoReflect.Descriptor instead.
func (*MatrixResponse) GetMatrix ¶
func (x *MatrixResponse) GetMatrix() []*Array
func (*MatrixResponse) ProtoMessage ¶
func (*MatrixResponse) ProtoMessage()
func (*MatrixResponse) ProtoReflect ¶
func (x *MatrixResponse) ProtoReflect() protoreflect.Message
func (*MatrixResponse) Reset ¶
func (x *MatrixResponse) Reset()
func (*MatrixResponse) String ¶
func (x *MatrixResponse) String() string
type UnimplementedCalculateMatrixServer ¶
type UnimplementedCalculateMatrixServer struct { }
UnimplementedCalculateMatrixServer can be embedded to have forward compatible implementations.
func (*UnimplementedCalculateMatrixServer) MatrixMul ¶
func (*UnimplementedCalculateMatrixServer) MatrixMul(context.Context, *MatrixRequest) (*MatrixResponse, error)
func (*UnimplementedCalculateMatrixServer) MatrixSum ¶
func (*UnimplementedCalculateMatrixServer) MatrixSum(context.Context, *MatrixRequest) (*MatrixResponse, error)
Click to show internal directories.
Click to hide internal directories.