Documentation
¶
Index ¶
- Variables
- func RegisterShowServiceServer(s grpc.ServiceRegistrar, srv ShowServiceServer)
- type ShowInfo
- func (*ShowInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ShowInfo) GetAssets() []*asset.BasicAsset
- func (x *ShowInfo) GetInfoId() int64
- func (x *ShowInfo) GetShowTime() *timestamppb.Timestamp
- func (*ShowInfo) ProtoMessage()
- func (x *ShowInfo) ProtoReflect() protoreflect.Message
- func (x *ShowInfo) Reset()
- func (x *ShowInfo) String() string
- type ShowRequest
- type ShowServiceClient
- type ShowServiceServer
- type UnimplementedShowServiceServer
- type UnsafeShowServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_api_show_info_proto protoreflect.FileDescriptor
var ShowService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.ShowService", HandlerType: (*ShowServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Show", Handler: _ShowService_Show_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/show_info.proto", }
ShowService_ServiceDesc is the grpc.ServiceDesc for ShowService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterShowServiceServer ¶
func RegisterShowServiceServer(s grpc.ServiceRegistrar, srv ShowServiceServer)
Types ¶
type ShowInfo ¶
type ShowInfo struct { InfoId int64 `protobuf:"varint,1,opt,name=info_id,json=infoId,proto3" json:"info_id,omitempty"` Assets []*asset.BasicAsset `protobuf:"bytes,2,rep,name=assets,proto3" json:"assets,omitempty"` ShowTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=show_time,json=showTime,proto3" json:"show_time,omitempty"` // contains filtered or unexported fields }
ShowInfo 定义接口Show的返回消息
func (*ShowInfo) Descriptor
deprecated
func (*ShowInfo) GetAssets ¶
func (x *ShowInfo) GetAssets() []*asset.BasicAsset
func (*ShowInfo) GetShowTime ¶
func (x *ShowInfo) GetShowTime() *timestamppb.Timestamp
func (*ShowInfo) ProtoMessage ¶
func (*ShowInfo) ProtoMessage()
func (*ShowInfo) ProtoReflect ¶
func (x *ShowInfo) ProtoReflect() protoreflect.Message
type ShowRequest ¶
type ShowRequest struct { RequestId int64 `protobuf:"varint,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // contains filtered or unexported fields }
ShowRequest 定义接口Show的请求消息
func (*ShowRequest) Descriptor
deprecated
func (*ShowRequest) Descriptor() ([]byte, []int)
Deprecated: Use ShowRequest.ProtoReflect.Descriptor instead.
func (*ShowRequest) GetRequestId ¶
func (x *ShowRequest) GetRequestId() int64
func (*ShowRequest) ProtoMessage ¶
func (*ShowRequest) ProtoMessage()
func (*ShowRequest) ProtoReflect ¶
func (x *ShowRequest) ProtoReflect() protoreflect.Message
func (*ShowRequest) Reset ¶
func (x *ShowRequest) Reset()
func (*ShowRequest) String ¶
func (x *ShowRequest) String() string
type ShowServiceClient ¶
type ShowServiceClient interface {
Show(ctx context.Context, in *ShowRequest, opts ...grpc.CallOption) (*ShowInfo, error)
}
ShowServiceClient is the client API for ShowService 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 NewShowServiceClient ¶
func NewShowServiceClient(cc grpc.ClientConnInterface) ShowServiceClient
type ShowServiceServer ¶
type ShowServiceServer interface { Show(context.Context, *ShowRequest) (*ShowInfo, error) // contains filtered or unexported methods }
ShowServiceServer is the server API for ShowService service. All implementations must embed UnimplementedShowServiceServer for forward compatibility
type UnimplementedShowServiceServer ¶
type UnimplementedShowServiceServer struct { }
UnimplementedShowServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedShowServiceServer) Show ¶
func (UnimplementedShowServiceServer) Show(context.Context, *ShowRequest) (*ShowInfo, error)
type UnsafeShowServiceServer ¶
type UnsafeShowServiceServer interface {
// contains filtered or unexported methods
}
UnsafeShowServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ShowServiceServer will result in compilation errors.