CalculateService_proto

package
v0.0.0-...-2d91a92 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCalculateServiceServer

func RegisterCalculateServiceServer(s *grpc.Server, srv CalculateServiceServer)

Types

type CalculateRequest

type CalculateRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Method               string   `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	Num1                 int32    `protobuf:"varint,3,opt,name=num1,proto3" json:"num1,omitempty"`
	Num2                 int32    `protobuf:"varint,4,opt,name=num2,proto3" json:"num2,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message containing the user's name

func (*CalculateRequest) Descriptor

func (*CalculateRequest) Descriptor() ([]byte, []int)

func (*CalculateRequest) GetMethod

func (m *CalculateRequest) GetMethod() string

func (*CalculateRequest) GetName

func (m *CalculateRequest) GetName() string

func (*CalculateRequest) GetNum1

func (m *CalculateRequest) GetNum1() int32

func (*CalculateRequest) GetNum2

func (m *CalculateRequest) GetNum2() int32

func (*CalculateRequest) ProtoMessage

func (*CalculateRequest) ProtoMessage()

func (*CalculateRequest) Reset

func (m *CalculateRequest) Reset()

func (*CalculateRequest) String

func (m *CalculateRequest) String() string

func (*CalculateRequest) XXX_DiscardUnknown

func (m *CalculateRequest) XXX_DiscardUnknown()

func (*CalculateRequest) XXX_Marshal

func (m *CalculateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CalculateRequest) XXX_Merge

func (m *CalculateRequest) XXX_Merge(src proto.Message)

func (*CalculateRequest) XXX_Size

func (m *CalculateRequest) XXX_Size() int

func (*CalculateRequest) XXX_Unmarshal

func (m *CalculateRequest) XXX_Unmarshal(b []byte) error

type CalculateResponse

type CalculateResponse struct {
	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	SuccessFlag          bool     `protobuf:"varint,2,opt,name=successFlag,proto3" json:"successFlag,omitempty"`
	Result               float64  `protobuf:"fixed64,3,opt,name=result,proto3" json:"result,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The response message

func (*CalculateResponse) Descriptor

func (*CalculateResponse) Descriptor() ([]byte, []int)

func (*CalculateResponse) GetMessage

func (m *CalculateResponse) GetMessage() string

func (*CalculateResponse) GetResult

func (m *CalculateResponse) GetResult() float64

func (*CalculateResponse) GetSuccessFlag

func (m *CalculateResponse) GetSuccessFlag() bool

func (*CalculateResponse) ProtoMessage

func (*CalculateResponse) ProtoMessage()

func (*CalculateResponse) Reset

func (m *CalculateResponse) Reset()

func (*CalculateResponse) String

func (m *CalculateResponse) String() string

func (*CalculateResponse) XXX_DiscardUnknown

func (m *CalculateResponse) XXX_DiscardUnknown()

func (*CalculateResponse) XXX_Marshal

func (m *CalculateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CalculateResponse) XXX_Merge

func (m *CalculateResponse) XXX_Merge(src proto.Message)

func (*CalculateResponse) XXX_Size

func (m *CalculateResponse) XXX_Size() int

func (*CalculateResponse) XXX_Unmarshal

func (m *CalculateResponse) XXX_Unmarshal(b []byte) error

type CalculateServiceClient

type CalculateServiceClient interface {
	Calculate(ctx context.Context, in *CalculateRequest, opts ...grpc.CallOption) (*CalculateResponse, error)
}

CalculateServiceClient is the client API for CalculateService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewCalculateServiceClient

func NewCalculateServiceClient(cc *grpc.ClientConn) CalculateServiceClient

type CalculateServiceServer

type CalculateServiceServer interface {
	Calculate(context.Context, *CalculateRequest) (*CalculateResponse, error)
}

CalculateServiceServer is the server API for CalculateService service.

type UnimplementedCalculateServiceServer

type UnimplementedCalculateServiceServer struct {
}

UnimplementedCalculateServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedCalculateServiceServer) Calculate

Jump to

Keyboard shortcuts

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