Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterStatsServiceServer(s grpc.ServiceRegistrar, srv StatsServiceServer)
- type Empty
- type StatsArticleMainRes
- func (*StatsArticleMainRes) Descriptor() ([]byte, []int)deprecated
- func (x *StatsArticleMainRes) GetLike() int32
- func (x *StatsArticleMainRes) GetQuantity() int32
- func (x *StatsArticleMainRes) GetView() int32
- func (*StatsArticleMainRes) ProtoMessage()
- func (x *StatsArticleMainRes) ProtoReflect() protoreflect.Message
- func (x *StatsArticleMainRes) Reset()
- func (x *StatsArticleMainRes) String() string
- type StatsServiceClient
- type StatsServiceServer
- type UnimplementedStatsServiceServer
- type UnsafeStatsServiceServer
Constants ¶
const (
StatsService_GetStatsArticleMain_FullMethodName = "/StatsService/GetStatsArticleMain"
)
Variables ¶
var File_stats_article_main_proto protoreflect.FileDescriptor
var StatsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "StatsService", HandlerType: (*StatsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetStatsArticleMain", Handler: _StatsService_GetStatsArticleMain_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "stats_article_main.proto", }
StatsService_ServiceDesc is the grpc.ServiceDesc for StatsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStatsServiceServer ¶
func RegisterStatsServiceServer(s grpc.ServiceRegistrar, srv StatsServiceServer)
Types ¶
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type StatsArticleMainRes ¶
type StatsArticleMainRes struct { Quantity int32 `protobuf:"varint,1,opt,name=quantity,proto3" json:"quantity,omitempty"` View int32 `protobuf:"varint,2,opt,name=view,proto3" json:"view,omitempty"` Like int32 `protobuf:"varint,3,opt,name=like,proto3" json:"like,omitempty"` // contains filtered or unexported fields }
func (*StatsArticleMainRes) Descriptor
deprecated
func (*StatsArticleMainRes) Descriptor() ([]byte, []int)
Deprecated: Use StatsArticleMainRes.ProtoReflect.Descriptor instead.
func (*StatsArticleMainRes) GetLike ¶
func (x *StatsArticleMainRes) GetLike() int32
func (*StatsArticleMainRes) GetQuantity ¶
func (x *StatsArticleMainRes) GetQuantity() int32
func (*StatsArticleMainRes) GetView ¶
func (x *StatsArticleMainRes) GetView() int32
func (*StatsArticleMainRes) ProtoMessage ¶
func (*StatsArticleMainRes) ProtoMessage()
func (*StatsArticleMainRes) ProtoReflect ¶
func (x *StatsArticleMainRes) ProtoReflect() protoreflect.Message
func (*StatsArticleMainRes) Reset ¶
func (x *StatsArticleMainRes) Reset()
func (*StatsArticleMainRes) String ¶
func (x *StatsArticleMainRes) String() string
type StatsServiceClient ¶
type StatsServiceClient interface { // rpc GetStatsArticleMain(google.protobuf.Empty) returns (StatsArticleMainRes); GetStatsArticleMain(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*StatsArticleMainRes, error) }
StatsServiceClient is the client API for StatsService 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 NewStatsServiceClient ¶
func NewStatsServiceClient(cc grpc.ClientConnInterface) StatsServiceClient
type StatsServiceServer ¶
type StatsServiceServer interface { // rpc GetStatsArticleMain(google.protobuf.Empty) returns (StatsArticleMainRes); GetStatsArticleMain(context.Context, *Empty) (*StatsArticleMainRes, error) }
StatsServiceServer is the server API for StatsService service. All implementations should embed UnimplementedStatsServiceServer for forward compatibility
type UnimplementedStatsServiceServer ¶
type UnimplementedStatsServiceServer struct { }
UnimplementedStatsServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedStatsServiceServer) GetStatsArticleMain ¶
func (UnimplementedStatsServiceServer) GetStatsArticleMain(context.Context, *Empty) (*StatsArticleMainRes, error)
type UnsafeStatsServiceServer ¶
type UnsafeStatsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeStatsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StatsServiceServer will result in compilation errors.