Documentation ¶
Index ¶
- Variables
- func RegisterArticleServiceServer(s grpc.ServiceRegistrar, srv ArticleServiceServer)
- type ArticleServiceClient
- type ArticleServiceServer
- type GetArticleCountByDayReq
- func (*GetArticleCountByDayReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetArticleCountByDayReq) GetId() string
- func (*GetArticleCountByDayReq) ProtoMessage()
- func (x *GetArticleCountByDayReq) ProtoReflect() protoreflect.Message
- func (x *GetArticleCountByDayReq) Reset()
- func (x *GetArticleCountByDayReq) String() string
- type GetArticleCountByDayRes
- func (*GetArticleCountByDayRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetArticleCountByDayRes) GetArticleCount() []*article.ArticleCount
- func (*GetArticleCountByDayRes) ProtoMessage()
- func (x *GetArticleCountByDayRes) ProtoReflect() protoreflect.Message
- func (x *GetArticleCountByDayRes) Reset()
- func (x *GetArticleCountByDayRes) String() string
- type GetArticleCountByHourReq
- func (*GetArticleCountByHourReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetArticleCountByHourReq) GetId() string
- func (*GetArticleCountByHourReq) ProtoMessage()
- func (x *GetArticleCountByHourReq) ProtoReflect() protoreflect.Message
- func (x *GetArticleCountByHourReq) Reset()
- func (x *GetArticleCountByHourReq) String() string
- type GetArticleCountByHourRes
- func (*GetArticleCountByHourRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetArticleCountByHourRes) GetArticleCount() []*article.ArticleCount
- func (*GetArticleCountByHourRes) ProtoMessage()
- func (x *GetArticleCountByHourRes) ProtoReflect() protoreflect.Message
- func (x *GetArticleCountByHourRes) Reset()
- func (x *GetArticleCountByHourRes) String() string
- type GetArticleInfoReq
- type GetArticleInfoRes
- func (*GetArticleInfoRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetArticleInfoRes) GetPageCount() int32
- func (x *GetArticleInfoRes) GetTotalCount() int32
- func (*GetArticleInfoRes) ProtoMessage()
- func (x *GetArticleInfoRes) ProtoReflect() protoreflect.Message
- func (x *GetArticleInfoRes) Reset()
- func (x *GetArticleInfoRes) String() string
- type GetArticleListReq
- func (*GetArticleListReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetArticleListReq) GetId() string
- func (x *GetArticleListReq) GetPage() int32
- func (*GetArticleListReq) ProtoMessage()
- func (x *GetArticleListReq) ProtoReflect() protoreflect.Message
- func (x *GetArticleListReq) Reset()
- func (x *GetArticleListReq) String() string
- type GetArticleListRes
- func (*GetArticleListRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetArticleListRes) GetArticle() []*article.Article
- func (*GetArticleListRes) ProtoMessage()
- func (x *GetArticleListRes) ProtoReflect() protoreflect.Message
- func (x *GetArticleListRes) Reset()
- func (x *GetArticleListRes) String() string
- type UnimplementedArticleServiceServer
- func (UnimplementedArticleServiceServer) GetArticleCountByDay(context.Context, *GetArticleCountByDayReq) (*GetArticleCountByDayRes, error)
- func (UnimplementedArticleServiceServer) GetArticleCountByHour(context.Context, *GetArticleCountByHourReq) (*GetArticleCountByHourRes, error)
- func (UnimplementedArticleServiceServer) GetArticleInfo(context.Context, *GetArticleInfoReq) (*GetArticleInfoRes, error)
- func (UnimplementedArticleServiceServer) GetArticleList(context.Context, *GetArticleListReq) (*GetArticleListRes, error)
- type UnsafeArticleServiceServer
Constants ¶
This section is empty.
Variables ¶
var ArticleService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.svc.manager.article.ArticleService", HandlerType: (*ArticleServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetArticleInfo", Handler: _ArticleService_GetArticleInfo_Handler, }, { MethodName: "GetArticleList", Handler: _ArticleService_GetArticleList_Handler, }, { MethodName: "GetArticleCountByHour", Handler: _ArticleService_GetArticleCountByHour_Handler, }, { MethodName: "GetArticleCountByDay", Handler: _ArticleService_GetArticleCountByDay_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pb/svc/manager/article.proto", }
ArticleService_ServiceDesc is the grpc.ServiceDesc for ArticleService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pb_svc_manager_article_proto protoreflect.FileDescriptor
Functions ¶
func RegisterArticleServiceServer ¶
func RegisterArticleServiceServer(s grpc.ServiceRegistrar, srv ArticleServiceServer)
Types ¶
type ArticleServiceClient ¶
type ArticleServiceClient interface { GetArticleInfo(ctx context.Context, in *GetArticleInfoReq, opts ...grpc.CallOption) (*GetArticleInfoRes, error) GetArticleList(ctx context.Context, in *GetArticleListReq, opts ...grpc.CallOption) (*GetArticleListRes, error) GetArticleCountByHour(ctx context.Context, in *GetArticleCountByHourReq, opts ...grpc.CallOption) (*GetArticleCountByHourRes, error) GetArticleCountByDay(ctx context.Context, in *GetArticleCountByDayReq, opts ...grpc.CallOption) (*GetArticleCountByDayRes, error) }
ArticleServiceClient is the client API for ArticleService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewArticleServiceClient ¶
func NewArticleServiceClient(cc grpc.ClientConnInterface) ArticleServiceClient
type ArticleServiceServer ¶
type ArticleServiceServer interface { GetArticleInfo(context.Context, *GetArticleInfoReq) (*GetArticleInfoRes, error) GetArticleList(context.Context, *GetArticleListReq) (*GetArticleListRes, error) GetArticleCountByHour(context.Context, *GetArticleCountByHourReq) (*GetArticleCountByHourRes, error) GetArticleCountByDay(context.Context, *GetArticleCountByDayReq) (*GetArticleCountByDayRes, error) // contains filtered or unexported methods }
ArticleServiceServer is the server API for ArticleService service. All implementations must embed UnimplementedArticleServiceServer for forward compatibility
type GetArticleCountByDayReq ¶
type GetArticleCountByDayReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetArticleCountByDayReq) Descriptor
deprecated
func (*GetArticleCountByDayReq) Descriptor() ([]byte, []int)
Deprecated: Use GetArticleCountByDayReq.ProtoReflect.Descriptor instead.
func (*GetArticleCountByDayReq) GetId ¶
func (x *GetArticleCountByDayReq) GetId() string
func (*GetArticleCountByDayReq) ProtoMessage ¶
func (*GetArticleCountByDayReq) ProtoMessage()
func (*GetArticleCountByDayReq) ProtoReflect ¶
func (x *GetArticleCountByDayReq) ProtoReflect() protoreflect.Message
func (*GetArticleCountByDayReq) Reset ¶
func (x *GetArticleCountByDayReq) Reset()
func (*GetArticleCountByDayReq) String ¶
func (x *GetArticleCountByDayReq) String() string
type GetArticleCountByDayRes ¶
type GetArticleCountByDayRes struct { ArticleCount []*article.ArticleCount `protobuf:"bytes,1,rep,name=ArticleCount,proto3" json:"ArticleCount,omitempty"` // contains filtered or unexported fields }
func (*GetArticleCountByDayRes) Descriptor
deprecated
func (*GetArticleCountByDayRes) Descriptor() ([]byte, []int)
Deprecated: Use GetArticleCountByDayRes.ProtoReflect.Descriptor instead.
func (*GetArticleCountByDayRes) GetArticleCount ¶
func (x *GetArticleCountByDayRes) GetArticleCount() []*article.ArticleCount
func (*GetArticleCountByDayRes) ProtoMessage ¶
func (*GetArticleCountByDayRes) ProtoMessage()
func (*GetArticleCountByDayRes) ProtoReflect ¶
func (x *GetArticleCountByDayRes) ProtoReflect() protoreflect.Message
func (*GetArticleCountByDayRes) Reset ¶
func (x *GetArticleCountByDayRes) Reset()
func (*GetArticleCountByDayRes) String ¶
func (x *GetArticleCountByDayRes) String() string
type GetArticleCountByHourReq ¶
type GetArticleCountByHourReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetArticleCountByHourReq) Descriptor
deprecated
func (*GetArticleCountByHourReq) Descriptor() ([]byte, []int)
Deprecated: Use GetArticleCountByHourReq.ProtoReflect.Descriptor instead.
func (*GetArticleCountByHourReq) GetId ¶
func (x *GetArticleCountByHourReq) GetId() string
func (*GetArticleCountByHourReq) ProtoMessage ¶
func (*GetArticleCountByHourReq) ProtoMessage()
func (*GetArticleCountByHourReq) ProtoReflect ¶
func (x *GetArticleCountByHourReq) ProtoReflect() protoreflect.Message
func (*GetArticleCountByHourReq) Reset ¶
func (x *GetArticleCountByHourReq) Reset()
func (*GetArticleCountByHourReq) String ¶
func (x *GetArticleCountByHourReq) String() string
type GetArticleCountByHourRes ¶
type GetArticleCountByHourRes struct { ArticleCount []*article.ArticleCount `protobuf:"bytes,1,rep,name=ArticleCount,proto3" json:"ArticleCount,omitempty"` // contains filtered or unexported fields }
func (*GetArticleCountByHourRes) Descriptor
deprecated
func (*GetArticleCountByHourRes) Descriptor() ([]byte, []int)
Deprecated: Use GetArticleCountByHourRes.ProtoReflect.Descriptor instead.
func (*GetArticleCountByHourRes) GetArticleCount ¶
func (x *GetArticleCountByHourRes) GetArticleCount() []*article.ArticleCount
func (*GetArticleCountByHourRes) ProtoMessage ¶
func (*GetArticleCountByHourRes) ProtoMessage()
func (*GetArticleCountByHourRes) ProtoReflect ¶
func (x *GetArticleCountByHourRes) ProtoReflect() protoreflect.Message
func (*GetArticleCountByHourRes) Reset ¶
func (x *GetArticleCountByHourRes) Reset()
func (*GetArticleCountByHourRes) String ¶
func (x *GetArticleCountByHourRes) String() string
type GetArticleInfoReq ¶
type GetArticleInfoReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // string code = 2; // contains filtered or unexported fields }
func (*GetArticleInfoReq) Descriptor
deprecated
func (*GetArticleInfoReq) Descriptor() ([]byte, []int)
Deprecated: Use GetArticleInfoReq.ProtoReflect.Descriptor instead.
func (*GetArticleInfoReq) GetId ¶
func (x *GetArticleInfoReq) GetId() string
func (*GetArticleInfoReq) ProtoMessage ¶
func (*GetArticleInfoReq) ProtoMessage()
func (*GetArticleInfoReq) ProtoReflect ¶
func (x *GetArticleInfoReq) ProtoReflect() protoreflect.Message
func (*GetArticleInfoReq) Reset ¶
func (x *GetArticleInfoReq) Reset()
func (*GetArticleInfoReq) String ¶
func (x *GetArticleInfoReq) String() string
type GetArticleInfoRes ¶
type GetArticleInfoRes struct { TotalCount int32 `protobuf:"varint,1,opt,name=totalCount,proto3" json:"totalCount,omitempty"` PageCount int32 `protobuf:"varint,2,opt,name=pageCount,proto3" json:"pageCount,omitempty"` // contains filtered or unexported fields }
func (*GetArticleInfoRes) Descriptor
deprecated
func (*GetArticleInfoRes) Descriptor() ([]byte, []int)
Deprecated: Use GetArticleInfoRes.ProtoReflect.Descriptor instead.
func (*GetArticleInfoRes) GetPageCount ¶
func (x *GetArticleInfoRes) GetPageCount() int32
func (*GetArticleInfoRes) GetTotalCount ¶
func (x *GetArticleInfoRes) GetTotalCount() int32
func (*GetArticleInfoRes) ProtoMessage ¶
func (*GetArticleInfoRes) ProtoMessage()
func (*GetArticleInfoRes) ProtoReflect ¶
func (x *GetArticleInfoRes) ProtoReflect() protoreflect.Message
func (*GetArticleInfoRes) Reset ¶
func (x *GetArticleInfoRes) Reset()
func (*GetArticleInfoRes) String ¶
func (x *GetArticleInfoRes) String() string
type GetArticleListReq ¶
type GetArticleListReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` // contains filtered or unexported fields }
func (*GetArticleListReq) Descriptor
deprecated
func (*GetArticleListReq) Descriptor() ([]byte, []int)
Deprecated: Use GetArticleListReq.ProtoReflect.Descriptor instead.
func (*GetArticleListReq) GetId ¶
func (x *GetArticleListReq) GetId() string
func (*GetArticleListReq) GetPage ¶
func (x *GetArticleListReq) GetPage() int32
func (*GetArticleListReq) ProtoMessage ¶
func (*GetArticleListReq) ProtoMessage()
func (*GetArticleListReq) ProtoReflect ¶
func (x *GetArticleListReq) ProtoReflect() protoreflect.Message
func (*GetArticleListReq) Reset ¶
func (x *GetArticleListReq) Reset()
func (*GetArticleListReq) String ¶
func (x *GetArticleListReq) String() string
type GetArticleListRes ¶
type GetArticleListRes struct { Article []*article.Article `protobuf:"bytes,1,rep,name=Article,proto3" json:"Article,omitempty"` // contains filtered or unexported fields }
func (*GetArticleListRes) Descriptor
deprecated
func (*GetArticleListRes) Descriptor() ([]byte, []int)
Deprecated: Use GetArticleListRes.ProtoReflect.Descriptor instead.
func (*GetArticleListRes) GetArticle ¶
func (x *GetArticleListRes) GetArticle() []*article.Article
func (*GetArticleListRes) ProtoMessage ¶
func (*GetArticleListRes) ProtoMessage()
func (*GetArticleListRes) ProtoReflect ¶
func (x *GetArticleListRes) ProtoReflect() protoreflect.Message
func (*GetArticleListRes) Reset ¶
func (x *GetArticleListRes) Reset()
func (*GetArticleListRes) String ¶
func (x *GetArticleListRes) String() string
type UnimplementedArticleServiceServer ¶
type UnimplementedArticleServiceServer struct { }
UnimplementedArticleServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedArticleServiceServer) GetArticleCountByDay ¶
func (UnimplementedArticleServiceServer) GetArticleCountByDay(context.Context, *GetArticleCountByDayReq) (*GetArticleCountByDayRes, error)
func (UnimplementedArticleServiceServer) GetArticleCountByHour ¶
func (UnimplementedArticleServiceServer) GetArticleCountByHour(context.Context, *GetArticleCountByHourReq) (*GetArticleCountByHourRes, error)
func (UnimplementedArticleServiceServer) GetArticleInfo ¶
func (UnimplementedArticleServiceServer) GetArticleInfo(context.Context, *GetArticleInfoReq) (*GetArticleInfoRes, error)
func (UnimplementedArticleServiceServer) GetArticleList ¶
func (UnimplementedArticleServiceServer) GetArticleList(context.Context, *GetArticleListReq) (*GetArticleListRes, error)
type UnsafeArticleServiceServer ¶
type UnsafeArticleServiceServer interface {
// contains filtered or unexported methods
}
UnsafeArticleServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ArticleServiceServer will result in compilation errors.