pb

package
v0.0.0-...-29b1110 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterArithmeticServiceServer

func RegisterArithmeticServiceServer(s *grpc.Server, srv ArithmeticServiceServer)

Types

type ArithmeticRequest

type ArithmeticRequest struct {
	RequestType          string   `protobuf:"bytes,1,opt,name=requestType,proto3" json:"requestType,omitempty"`
	A                    int32    `protobuf:"varint,2,opt,name=a,proto3" json:"a,omitempty"`
	B                    int32    `protobuf:"varint,3,opt,name=b,proto3" json:"b,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ArithmeticRequest) Descriptor

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

func (*ArithmeticRequest) GetA

func (m *ArithmeticRequest) GetA() int32

func (*ArithmeticRequest) GetB

func (m *ArithmeticRequest) GetB() int32

func (*ArithmeticRequest) GetRequestType

func (m *ArithmeticRequest) GetRequestType() string

func (*ArithmeticRequest) ProtoMessage

func (*ArithmeticRequest) ProtoMessage()

func (*ArithmeticRequest) Reset

func (m *ArithmeticRequest) Reset()

func (*ArithmeticRequest) String

func (m *ArithmeticRequest) String() string

func (*ArithmeticRequest) XXX_DiscardUnknown

func (m *ArithmeticRequest) XXX_DiscardUnknown()

func (*ArithmeticRequest) XXX_Marshal

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

func (*ArithmeticRequest) XXX_Merge

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

func (*ArithmeticRequest) XXX_Size

func (m *ArithmeticRequest) XXX_Size() int

func (*ArithmeticRequest) XXX_Unmarshal

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

type ArithmeticResponse

type ArithmeticResponse struct {
	Result               int32    `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	Err                  string   `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ArithmeticResponse) Descriptor

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

func (*ArithmeticResponse) GetErr

func (m *ArithmeticResponse) GetErr() string

func (*ArithmeticResponse) GetResult

func (m *ArithmeticResponse) GetResult() int32

func (*ArithmeticResponse) ProtoMessage

func (*ArithmeticResponse) ProtoMessage()

func (*ArithmeticResponse) Reset

func (m *ArithmeticResponse) Reset()

func (*ArithmeticResponse) String

func (m *ArithmeticResponse) String() string

func (*ArithmeticResponse) XXX_DiscardUnknown

func (m *ArithmeticResponse) XXX_DiscardUnknown()

func (*ArithmeticResponse) XXX_Marshal

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

func (*ArithmeticResponse) XXX_Merge

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

func (*ArithmeticResponse) XXX_Size

func (m *ArithmeticResponse) XXX_Size() int

func (*ArithmeticResponse) XXX_Unmarshal

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

type ArithmeticServiceClient

type ArithmeticServiceClient interface {
	Calculate(ctx context.Context, in *ArithmeticRequest, opts ...grpc.CallOption) (*ArithmeticResponse, error)
}

ArithmeticServiceClient is the client API for ArithmeticService service.

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

func NewArithmeticServiceClient

func NewArithmeticServiceClient(cc *grpc.ClientConn) ArithmeticServiceClient

type ArithmeticServiceServer

type ArithmeticServiceServer interface {
	Calculate(context.Context, *ArithmeticRequest) (*ArithmeticResponse, error)
}

ArithmeticServiceServer is the server API for ArithmeticService service.

type UnimplementedArithmeticServiceServer

type UnimplementedArithmeticServiceServer struct {
}

UnimplementedArithmeticServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedArithmeticServiceServer) Calculate

Jump to

Keyboard shortcuts

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