websiterpc

package
v0.0.0-...-6d7266f Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WebsiteRpc_GetUserDailyVisit_FullMethodName = "/websiterpc.WebsiteRpc/GetUserDailyVisit"
)

Variables

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

Deprecated: Use BatchResp.ProtoReflect.Descriptor instead.

func (*BatchResp) GetSuccessCount

func (x *BatchResp) GetSuccessCount() int64

func (*BatchResp) ProtoMessage

func (*BatchResp) ProtoMessage()

func (*BatchResp) ProtoReflect

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

func (*BatchResp) Reset

func (x *BatchResp) Reset()

func (*BatchResp) String

func (x *BatchResp) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use CountResp.ProtoReflect.Descriptor instead.

func (*CountResp) GetCount

func (x *CountResp) GetCount() int64

func (*CountResp) ProtoMessage

func (*CountResp) ProtoMessage()

func (*CountResp) ProtoReflect

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

func (*CountResp) Reset

func (x *CountResp) Reset()

func (*CountResp) String

func (x *CountResp) String() string

type EmptyReq

type EmptyReq struct {
	// contains filtered or unexported fields
}

func (*EmptyReq) Descriptor deprecated

func (*EmptyReq) Descriptor() ([]byte, []int)

Deprecated: Use EmptyReq.ProtoReflect.Descriptor instead.

func (*EmptyReq) ProtoMessage

func (*EmptyReq) ProtoMessage()

func (*EmptyReq) ProtoReflect

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

func (*EmptyReq) Reset

func (x *EmptyReq) Reset()

func (*EmptyReq) String

func (x *EmptyReq) String() string

type EmptyResp

type EmptyResp struct {
	// contains filtered or unexported fields
}

func (*EmptyResp) Descriptor deprecated

func (*EmptyResp) Descriptor() ([]byte, []int)

Deprecated: Use EmptyResp.ProtoReflect.Descriptor instead.

func (*EmptyResp) ProtoMessage

func (*EmptyResp) ProtoMessage()

func (*EmptyResp) ProtoReflect

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

func (*EmptyResp) Reset

func (x *EmptyResp) Reset()

func (*EmptyResp) String

func (x *EmptyResp) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use IdReq.ProtoReflect.Descriptor instead.

func (*IdReq) GetId

func (x *IdReq) GetId() int64

func (*IdReq) ProtoMessage

func (*IdReq) ProtoMessage()

func (*IdReq) ProtoReflect

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

func (*IdReq) Reset

func (x *IdReq) Reset()

func (*IdReq) String

func (x *IdReq) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use IdsReq.ProtoReflect.Descriptor instead.

func (*IdsReq) GetIds

func (x *IdsReq) GetIds() []int64

func (*IdsReq) ProtoMessage

func (*IdsReq) ProtoMessage()

func (*IdsReq) ProtoReflect

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

func (*IdsReq) Reset

func (x *IdsReq) Reset()

func (*IdsReq) String

func (x *IdsReq) String() string

type UnimplementedWebsiteRpcServer

type UnimplementedWebsiteRpcServer struct {
}

UnimplementedWebsiteRpcServer must be embedded to have forward compatible implementations.

func (UnimplementedWebsiteRpcServer) GetUserDailyVisit

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) Descriptor() ([]byte, []int)

Deprecated: Use UserIdReq.ProtoReflect.Descriptor instead.

func (*UserIdReq) GetUserId

func (x *UserIdReq) GetUserId() string

func (*UserIdReq) ProtoMessage

func (*UserIdReq) ProtoMessage()

func (*UserIdReq) ProtoReflect

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

func (*UserIdReq) Reset

func (x *UserIdReq) Reset()

func (*UserIdReq) String

func (x *UserIdReq) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use UserVisit.ProtoReflect.Descriptor instead.

func (*UserVisit) GetDate

func (x *UserVisit) GetDate() string

func (*UserVisit) GetViewCount

func (x *UserVisit) GetViewCount() int64

func (*UserVisit) ProtoMessage

func (*UserVisit) ProtoMessage()

func (*UserVisit) ProtoReflect

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

func (*UserVisit) Reset

func (x *UserVisit) Reset()

func (*UserVisit) String

func (x *UserVisit) String() string

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

Jump to

Keyboard shortcuts

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