pb

package
v0.0.0-...-b8103a1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatsService_GetStatsArticleMain_FullMethodName = "/StatsService/GetStatsArticleMain"
)

Variables

View Source
var File_stats_article_main_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

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.

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL