Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_arith_proto protoreflect.FileDescriptor
Functions ¶
func RegisterArithHandler ¶
func RegisterArithHandler(s server.Server, hdlr ArithHandler, opts ...server.HandlerOption) error
Types ¶
type Args ¶
type Args struct { A int32 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"` B int32 `protobuf:"varint,2,opt,name=b,proto3" json:"b,omitempty"` // contains filtered or unexported fields }
func (*Args) Descriptor
deprecated
func (*Args) ProtoMessage ¶
func (*Args) ProtoMessage()
func (*Args) ProtoReflect ¶
func (x *Args) ProtoReflect() protoreflect.Message
type ArithService ¶
type ArithService interface {
Mul(ctx context.Context, in *Args, opts ...client.CallOption) (*Reply, error)
}
func NewArithService ¶
func NewArithService(name string, c client.Client) ArithService
type Reply ¶
type Reply struct { C int32 `protobuf:"varint,1,opt,name=c,proto3" json:"c,omitempty"` // contains filtered or unexported fields }
func (*Reply) Descriptor
deprecated
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
func (*Reply) ProtoReflect ¶
func (x *Reply) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.