calcpb

package
v0.0.0-...-121636b Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCalcServer

func RegisterCalcServer(s *grpc.Server, srv CalcServer)

Types

type AddRequest

type AddRequest struct {
	// Left operand
	A int32 `protobuf:"zigzag32,1,opt,name=a,proto3" json:"a,omitempty"`
	// Right operand
	B                    int32    `protobuf:"zigzag32,2,opt,name=b,proto3" json:"b,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddRequest) Descriptor

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

func (*AddRequest) GetA

func (m *AddRequest) GetA() int32

func (*AddRequest) GetB

func (m *AddRequest) GetB() int32

func (*AddRequest) ProtoMessage

func (*AddRequest) ProtoMessage()

func (*AddRequest) Reset

func (m *AddRequest) Reset()

func (*AddRequest) String

func (m *AddRequest) String() string

func (*AddRequest) XXX_DiscardUnknown

func (m *AddRequest) XXX_DiscardUnknown()

func (*AddRequest) XXX_Marshal

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

func (*AddRequest) XXX_Merge

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

func (*AddRequest) XXX_Size

func (m *AddRequest) XXX_Size() int

func (*AddRequest) XXX_Unmarshal

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

type AddResponse

type AddResponse struct {
	Field                int32    `protobuf:"zigzag32,1,opt,name=field,proto3" json:"field,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddResponse) Descriptor

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

func (*AddResponse) GetField

func (m *AddResponse) GetField() int32

func (*AddResponse) ProtoMessage

func (*AddResponse) ProtoMessage()

func (*AddResponse) Reset

func (m *AddResponse) Reset()

func (*AddResponse) String

func (m *AddResponse) String() string

func (*AddResponse) XXX_DiscardUnknown

func (m *AddResponse) XXX_DiscardUnknown()

func (*AddResponse) XXX_Marshal

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

func (*AddResponse) XXX_Merge

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

func (*AddResponse) XXX_Size

func (m *AddResponse) XXX_Size() int

func (*AddResponse) XXX_Unmarshal

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

type CalcClient

type CalcClient interface {
	// Add implements add.
	Add(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddResponse, error)
}

CalcClient is the client API for Calc service.

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

func NewCalcClient

func NewCalcClient(cc *grpc.ClientConn) CalcClient

type CalcServer

type CalcServer interface {
	// Add implements add.
	Add(context.Context, *AddRequest) (*AddResponse, error)
}

CalcServer is the server API for Calc service.

type UnimplementedCalcServer

type UnimplementedCalcServer struct {
}

UnimplementedCalcServer can be embedded to have forward compatible implementations.

func (*UnimplementedCalcServer) Add

Jump to

Keyboard shortcuts

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