calculate

package
v0.0.0-...-2240ef2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2020 License: MIT Imports: 9 Imported by: 2

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Array.ProtoReflect.Descriptor instead.

func (*Array) GetDigit

func (x *Array) GetDigit() []float64

func (*Array) ProtoMessage

func (*Array) ProtoMessage()

func (*Array) ProtoReflect

func (x *Array) ProtoReflect() protoreflect.Message

func (*Array) Reset

func (x *Array) Reset()

func (*Array) String

func (x *Array) String() string

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.

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) MatrixSum

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL