Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Bar_ServiceDesc = grpc.ServiceDesc{ ServiceName: "bar.Bar", HandlerType: (*BarServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "DoBar", Handler: _Bar_DoBar_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "bar/bar.proto", }
Bar_ServiceDesc is the grpc.ServiceDesc for Bar service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_bar_bar_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBarServer ¶
func RegisterBarServer(s grpc.ServiceRegistrar, srv BarServer)
Types ¶
type BarClient ¶
type BarClient interface {
DoBar(ctx context.Context, in *BarReq, opts ...grpc.CallOption) (*BarResp, error)
}
BarClient is the client API for Bar service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewBarClient ¶
func NewBarClient(cc grpc.ClientConnInterface) BarClient
type BarReq ¶
type BarReq struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` // contains filtered or unexported fields }
func (*BarReq) Descriptor
deprecated
func (*BarReq) ProtoMessage ¶
func (*BarReq) ProtoMessage()
func (*BarReq) ProtoReflect ¶
func (x *BarReq) ProtoReflect() protoreflect.Message
type BarResp ¶
type BarResp struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` // contains filtered or unexported fields }
func (*BarResp) Descriptor
deprecated
func (*BarResp) ProtoMessage ¶
func (*BarResp) ProtoMessage()
func (*BarResp) ProtoReflect ¶
func (x *BarResp) ProtoReflect() protoreflect.Message
type BarServer ¶
type BarServer interface { DoBar(context.Context, *BarReq) (*BarResp, error) // contains filtered or unexported methods }
BarServer is the server API for Bar service. All implementations must embed UnimplementedBarServer for forward compatibility
type UnimplementedBarServer ¶
type UnimplementedBarServer struct { }
UnimplementedBarServer must be embedded to have forward compatible implementations.
type UnsafeBarServer ¶
type UnsafeBarServer interface {
// contains filtered or unexported methods
}
UnsafeBarServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BarServer will result in compilation errors.