Documentation
¶
Index ¶
- Variables
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type Bar
- func (*Bar) Descriptor() ([]byte, []int)deprecated
- func (x *Bar) GetCreateTime() string
- func (x *Bar) GetId() int64
- func (x *Bar) GetIn() string
- func (x *Bar) GetOut() string
- func (*Bar) ProtoMessage()
- func (x *Bar) ProtoReflect() protoreflect.Message
- func (x *Bar) Reset()
- func (x *Bar) String() string
- type SayHelloRequest
- type SayHelloResponse
- type ServiceClient
- type ServiceServer
- type UnimplementedServiceServer
- type UnsafeServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_bar_proto protoreflect.FileDescriptor
var Metadata = grpc_service.NewServiceMetadata(&Service_ServiceDesc, "v1")
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "bar.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SayHelly", Handler: _Service_SayHelly_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "bar.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type Bar ¶
type Bar struct { // @cTags: binding:"foo_bar" Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" binding:"foo_bar"` In string `protobuf:"bytes,2,opt,name=in,proto3" json:"in,omitempty"` Out string `protobuf:"bytes,3,opt,name=out,proto3" json:"out,omitempty"` CreateTime string `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // contains filtered or unexported fields }
func (*Bar) Descriptor
deprecated
func (*Bar) GetCreateTime ¶
func (*Bar) ProtoMessage ¶
func (*Bar) ProtoMessage()
func (*Bar) ProtoReflect ¶
func (x *Bar) ProtoReflect() protoreflect.Message
type SayHelloRequest ¶
type SayHelloRequest struct { Say string `protobuf:"bytes,1,opt,name=say,proto3" json:"say,omitempty"` // contains filtered or unexported fields }
func (*SayHelloRequest) Descriptor
deprecated
func (*SayHelloRequest) Descriptor() ([]byte, []int)
Deprecated: Use SayHelloRequest.ProtoReflect.Descriptor instead.
func (*SayHelloRequest) GetSay ¶
func (x *SayHelloRequest) GetSay() string
func (*SayHelloRequest) ProtoMessage ¶
func (*SayHelloRequest) ProtoMessage()
func (*SayHelloRequest) ProtoReflect ¶
func (x *SayHelloRequest) ProtoReflect() protoreflect.Message
func (*SayHelloRequest) Reset ¶
func (x *SayHelloRequest) Reset()
func (*SayHelloRequest) String ¶
func (x *SayHelloRequest) String() string
type SayHelloResponse ¶
type SayHelloResponse struct { Reply string `protobuf:"bytes,1,opt,name=reply,proto3" json:"reply,omitempty"` // contains filtered or unexported fields }
func (*SayHelloResponse) Descriptor
deprecated
func (*SayHelloResponse) Descriptor() ([]byte, []int)
Deprecated: Use SayHelloResponse.ProtoReflect.Descriptor instead.
func (*SayHelloResponse) GetReply ¶
func (x *SayHelloResponse) GetReply() string
func (*SayHelloResponse) ProtoMessage ¶
func (*SayHelloResponse) ProtoMessage()
func (*SayHelloResponse) ProtoReflect ¶
func (x *SayHelloResponse) ProtoReflect() protoreflect.Message
func (*SayHelloResponse) Reset ¶
func (x *SayHelloResponse) Reset()
func (*SayHelloResponse) String ¶
func (x *SayHelloResponse) String() string
type ServiceClient ¶
type ServiceClient interface {
SayHelly(ctx context.Context, in *SayHelloRequest, opts ...grpc.CallOption) (*SayHelloResponse, error)
}
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶
type ServiceServer interface { SayHelly(context.Context, *SayHelloRequest) (*SayHelloResponse, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) SayHelly ¶
func (UnimplementedServiceServer) SayHelly(context.Context, *SayHelloRequest) (*SayHelloResponse, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.