Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterWebsiteRpcServer(s grpc.ServiceRegistrar, srv WebsiteRpcServer)
- type BatchResp
- type CountResp
- type EmptyReq
- type EmptyResp
- type IdReq
- type IdsReq
- type UnimplementedWebsiteRpcServer
- type UnsafeWebsiteRpcServer
- type UserDailyVisitRsp
- func (*UserDailyVisitRsp) Descriptor() ([]byte, []int)deprecated
- func (x *UserDailyVisitRsp) GetList() []*UserVisit
- func (*UserDailyVisitRsp) ProtoMessage()
- func (x *UserDailyVisitRsp) ProtoReflect() protoreflect.Message
- func (x *UserDailyVisitRsp) Reset()
- func (x *UserDailyVisitRsp) String() string
- type UserIdReq
- type UserVisit
- type WebsiteRpcClient
- type WebsiteRpcServer
Constants ¶
const (
WebsiteRpc_GetUserDailyVisit_FullMethodName = "/websiterpc.WebsiteRpc/GetUserDailyVisit"
)
Variables ¶
var File_website_proto protoreflect.FileDescriptor
var WebsiteRpc_ServiceDesc = grpc.ServiceDesc{ ServiceName: "websiterpc.WebsiteRpc", HandlerType: (*WebsiteRpcServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUserDailyVisit", Handler: _WebsiteRpc_GetUserDailyVisit_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "website.proto", }
WebsiteRpc_ServiceDesc is the grpc.ServiceDesc for WebsiteRpc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWebsiteRpcServer ¶
func RegisterWebsiteRpcServer(s grpc.ServiceRegistrar, srv WebsiteRpcServer)
Types ¶
type BatchResp ¶
type BatchResp struct { SuccessCount int64 `protobuf:"varint,1,opt,name=success_count,json=successCount,proto3" json:"success_count,omitempty"` // contains filtered or unexported fields }
func (*BatchResp) Descriptor
deprecated
func (*BatchResp) GetSuccessCount ¶
func (*BatchResp) ProtoMessage ¶
func (*BatchResp) ProtoMessage()
func (*BatchResp) ProtoReflect ¶
func (x *BatchResp) ProtoReflect() protoreflect.Message
type CountResp ¶
type CountResp struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*CountResp) Descriptor
deprecated
func (*CountResp) ProtoMessage ¶
func (*CountResp) ProtoMessage()
func (*CountResp) ProtoReflect ¶
func (x *CountResp) ProtoReflect() protoreflect.Message
type EmptyReq ¶
type EmptyReq struct {
// contains filtered or unexported fields
}
func (*EmptyReq) Descriptor
deprecated
func (*EmptyReq) ProtoMessage ¶
func (*EmptyReq) ProtoMessage()
func (*EmptyReq) ProtoReflect ¶
func (x *EmptyReq) ProtoReflect() protoreflect.Message
type EmptyResp ¶
type EmptyResp struct {
// contains filtered or unexported fields
}
func (*EmptyResp) Descriptor
deprecated
func (*EmptyResp) ProtoMessage ¶
func (*EmptyResp) ProtoMessage()
func (*EmptyResp) ProtoReflect ¶
func (x *EmptyResp) ProtoReflect() protoreflect.Message
type IdReq ¶
type IdReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*IdReq) Descriptor
deprecated
func (*IdReq) ProtoMessage ¶
func (*IdReq) ProtoMessage()
func (*IdReq) ProtoReflect ¶
func (x *IdReq) ProtoReflect() protoreflect.Message
type IdsReq ¶
type IdsReq struct { Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*IdsReq) Descriptor
deprecated
func (*IdsReq) ProtoMessage ¶
func (*IdsReq) ProtoMessage()
func (*IdsReq) ProtoReflect ¶
func (x *IdsReq) ProtoReflect() protoreflect.Message
type UnimplementedWebsiteRpcServer ¶
type UnimplementedWebsiteRpcServer struct { }
UnimplementedWebsiteRpcServer must be embedded to have forward compatible implementations.
func (UnimplementedWebsiteRpcServer) GetUserDailyVisit ¶
func (UnimplementedWebsiteRpcServer) GetUserDailyVisit(context.Context, *EmptyReq) (*UserDailyVisitRsp, error)
type UnsafeWebsiteRpcServer ¶
type UnsafeWebsiteRpcServer interface {
// contains filtered or unexported methods
}
UnsafeWebsiteRpcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WebsiteRpcServer will result in compilation errors.
type UserDailyVisitRsp ¶
type UserDailyVisitRsp struct { List []*UserVisit `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*UserDailyVisitRsp) Descriptor
deprecated
func (*UserDailyVisitRsp) Descriptor() ([]byte, []int)
Deprecated: Use UserDailyVisitRsp.ProtoReflect.Descriptor instead.
func (*UserDailyVisitRsp) GetList ¶
func (x *UserDailyVisitRsp) GetList() []*UserVisit
func (*UserDailyVisitRsp) ProtoMessage ¶
func (*UserDailyVisitRsp) ProtoMessage()
func (*UserDailyVisitRsp) ProtoReflect ¶
func (x *UserDailyVisitRsp) ProtoReflect() protoreflect.Message
func (*UserDailyVisitRsp) Reset ¶
func (x *UserDailyVisitRsp) Reset()
func (*UserDailyVisitRsp) String ¶
func (x *UserDailyVisitRsp) String() string
type UserIdReq ¶
type UserIdReq struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*UserIdReq) Descriptor
deprecated
func (*UserIdReq) ProtoMessage ¶
func (*UserIdReq) ProtoMessage()
func (*UserIdReq) ProtoReflect ¶
func (x *UserIdReq) ProtoReflect() protoreflect.Message
type UserVisit ¶
type UserVisit struct { Date string `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"` ViewCount int64 `protobuf:"varint,2,opt,name=view_count,json=viewCount,proto3" json:"view_count,omitempty"` // contains filtered or unexported fields }
func (*UserVisit) Descriptor
deprecated
func (*UserVisit) GetViewCount ¶
func (*UserVisit) ProtoMessage ¶
func (*UserVisit) ProtoMessage()
func (*UserVisit) ProtoReflect ¶
func (x *UserVisit) ProtoReflect() protoreflect.Message
type WebsiteRpcClient ¶
type WebsiteRpcClient interface { // 用户日浏览量 GetUserDailyVisit(ctx context.Context, in *EmptyReq, opts ...grpc.CallOption) (*UserDailyVisitRsp, error) }
WebsiteRpcClient is the client API for WebsiteRpc 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 NewWebsiteRpcClient ¶
func NewWebsiteRpcClient(cc grpc.ClientConnInterface) WebsiteRpcClient
type WebsiteRpcServer ¶
type WebsiteRpcServer interface { // 用户日浏览量 GetUserDailyVisit(context.Context, *EmptyReq) (*UserDailyVisitRsp, error) // contains filtered or unexported methods }
WebsiteRpcServer is the server API for WebsiteRpc service. All implementations must embed UnimplementedWebsiteRpcServer for forward compatibility