Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterInteractiveHTTPServer(s *http.Server, srv InteractiveHTTPServer)
- func RegisterInteractiveServer(s grpc.ServiceRegistrar, srv InteractiveServer)
- type AddCountReply
- func (*AddCountReply) Descriptor() ([]byte, []int)deprecated
- func (x *AddCountReply) GetCode() int32
- func (x *AddCountReply) GetMsg() string
- func (*AddCountReply) ProtoMessage()
- func (x *AddCountReply) ProtoReflect() protoreflect.Message
- func (x *AddCountReply) Reset()
- func (x *AddCountReply) String() string
- type AddCountRequest
- func (*AddCountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddCountRequest) GetBizName() string
- func (x *AddCountRequest) GetPostId() int64
- func (*AddCountRequest) ProtoMessage()
- func (x *AddCountRequest) ProtoReflect() protoreflect.Message
- func (x *AddCountRequest) Reset()
- func (x *AddCountRequest) String() string
- type GetInteractiveReply
- func (*GetInteractiveReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetInteractiveReply) GetCode() int32
- func (x *GetInteractiveReply) GetData() *GetOrListInteractive
- func (x *GetInteractiveReply) GetMsg() string
- func (*GetInteractiveReply) ProtoMessage()
- func (x *GetInteractiveReply) ProtoReflect() protoreflect.Message
- func (x *GetInteractiveReply) Reset()
- func (x *GetInteractiveReply) String() string
- type GetInteractiveRequest
- func (*GetInteractiveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetInteractiveRequest) GetPostId() int64
- func (*GetInteractiveRequest) ProtoMessage()
- func (x *GetInteractiveRequest) ProtoReflect() protoreflect.Message
- func (x *GetInteractiveRequest) Reset()
- func (x *GetInteractiveRequest) String() string
- type GetOrListInteractive
- func (*GetOrListInteractive) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrListInteractive) GetBizID() int64
- func (x *GetOrListInteractive) GetBizName() string
- func (x *GetOrListInteractive) GetCollectCount() int64
- func (x *GetOrListInteractive) GetCreateTime() int64
- func (x *GetOrListInteractive) GetID() int64
- func (x *GetOrListInteractive) GetLikeCount() int64
- func (x *GetOrListInteractive) GetPostId() int64
- func (x *GetOrListInteractive) GetReadCount() int64
- func (x *GetOrListInteractive) GetUpdateTime() int64
- func (*GetOrListInteractive) ProtoMessage()
- func (x *GetOrListInteractive) ProtoReflect() protoreflect.Message
- func (x *GetOrListInteractive) Reset()
- func (x *GetOrListInteractive) String() string
- type InteractiveClient
- type InteractiveHTTPClient
- type InteractiveHTTPClientImpl
- func (c *InteractiveHTTPClientImpl) GetInteractive(ctx context.Context, in *GetInteractiveRequest, opts ...http.CallOption) (*GetInteractiveReply, error)
- func (c *InteractiveHTTPClientImpl) ListInteractive(ctx context.Context, in *ListInteractiveRequest, opts ...http.CallOption) (*ListInteractiveReply, error)
- type InteractiveHTTPServer
- type InteractiveServer
- type ListInteractiveReply
- func (*ListInteractiveReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListInteractiveReply) GetCode() int32
- func (x *ListInteractiveReply) GetData() []*GetOrListInteractive
- func (x *ListInteractiveReply) GetMsg() string
- func (*ListInteractiveReply) ProtoMessage()
- func (x *ListInteractiveReply) ProtoReflect() protoreflect.Message
- func (x *ListInteractiveReply) Reset()
- func (x *ListInteractiveReply) String() string
- type ListInteractiveRequest
- func (*ListInteractiveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListInteractiveRequest) GetPage() int32
- func (x *ListInteractiveRequest) GetSize() int64
- func (*ListInteractiveRequest) ProtoMessage()
- func (x *ListInteractiveRequest) ProtoReflect() protoreflect.Message
- func (x *ListInteractiveRequest) Reset()
- func (x *ListInteractiveRequest) String() string
- type UnimplementedInteractiveServer
- func (UnimplementedInteractiveServer) AddCollectCount(context.Context, *AddCountRequest) (*AddCountReply, error)
- func (UnimplementedInteractiveServer) AddLikeCount(context.Context, *AddCountRequest) (*AddCountReply, error)
- func (UnimplementedInteractiveServer) AddReadCount(context.Context, *AddCountRequest) (*AddCountReply, error)
- func (UnimplementedInteractiveServer) GetInteractive(context.Context, *GetInteractiveRequest) (*GetInteractiveReply, error)
- func (UnimplementedInteractiveServer) ListInteractive(context.Context, *ListInteractiveRequest) (*ListInteractiveReply, error)
- type UnsafeInteractiveServer
Constants ¶
const ( Interactive_GetInteractive_FullMethodName = "/api.interactive.v1.Interactive/GetInteractive" Interactive_ListInteractive_FullMethodName = "/api.interactive.v1.Interactive/ListInteractive" Interactive_AddReadCount_FullMethodName = "/api.interactive.v1.Interactive/AddReadCount" Interactive_AddLikeCount_FullMethodName = "/api.interactive.v1.Interactive/AddLikeCount" Interactive_AddCollectCount_FullMethodName = "/api.interactive.v1.Interactive/AddCollectCount" )
const OperationInteractiveGetInteractive = "/api.interactive.v1.Interactive/GetInteractive"
const OperationInteractiveListInteractive = "/api.interactive.v1.Interactive/ListInteractive"
Variables ¶
var File_api_interactive_v1_interactive_proto protoreflect.FileDescriptor
var Interactive_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.interactive.v1.Interactive", HandlerType: (*InteractiveServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetInteractive", Handler: _Interactive_GetInteractive_Handler, }, { MethodName: "ListInteractive", Handler: _Interactive_ListInteractive_Handler, }, { MethodName: "AddReadCount", Handler: _Interactive_AddReadCount_Handler, }, { MethodName: "AddLikeCount", Handler: _Interactive_AddLikeCount_Handler, }, { MethodName: "AddCollectCount", Handler: _Interactive_AddCollectCount_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/interactive/v1/interactive.proto", }
Interactive_ServiceDesc is the grpc.ServiceDesc for Interactive service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterInteractiveHTTPServer ¶
func RegisterInteractiveHTTPServer(s *http.Server, srv InteractiveHTTPServer)
func RegisterInteractiveServer ¶
func RegisterInteractiveServer(s grpc.ServiceRegistrar, srv InteractiveServer)
Types ¶
type AddCountReply ¶
type AddCountReply struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*AddCountReply) Descriptor
deprecated
func (*AddCountReply) Descriptor() ([]byte, []int)
Deprecated: Use AddCountReply.ProtoReflect.Descriptor instead.
func (*AddCountReply) GetCode ¶
func (x *AddCountReply) GetCode() int32
func (*AddCountReply) GetMsg ¶
func (x *AddCountReply) GetMsg() string
func (*AddCountReply) ProtoMessage ¶
func (*AddCountReply) ProtoMessage()
func (*AddCountReply) ProtoReflect ¶
func (x *AddCountReply) ProtoReflect() protoreflect.Message
func (*AddCountReply) Reset ¶
func (x *AddCountReply) Reset()
func (*AddCountReply) String ¶
func (x *AddCountReply) String() string
type AddCountRequest ¶
type AddCountRequest struct { PostId int64 `protobuf:"varint,1,opt,name=postId,proto3" json:"postId,omitempty"` BizName string `protobuf:"bytes,2,opt,name=bizName,proto3" json:"bizName,omitempty"` // contains filtered or unexported fields }
func (*AddCountRequest) Descriptor
deprecated
func (*AddCountRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddCountRequest.ProtoReflect.Descriptor instead.
func (*AddCountRequest) GetBizName ¶
func (x *AddCountRequest) GetBizName() string
func (*AddCountRequest) GetPostId ¶
func (x *AddCountRequest) GetPostId() int64
func (*AddCountRequest) ProtoMessage ¶
func (*AddCountRequest) ProtoMessage()
func (*AddCountRequest) ProtoReflect ¶
func (x *AddCountRequest) ProtoReflect() protoreflect.Message
func (*AddCountRequest) Reset ¶
func (x *AddCountRequest) Reset()
func (*AddCountRequest) String ¶
func (x *AddCountRequest) String() string
type GetInteractiveReply ¶
type GetInteractiveReply struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *GetOrListInteractive `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetInteractiveReply) Descriptor
deprecated
func (*GetInteractiveReply) Descriptor() ([]byte, []int)
Deprecated: Use GetInteractiveReply.ProtoReflect.Descriptor instead.
func (*GetInteractiveReply) GetCode ¶
func (x *GetInteractiveReply) GetCode() int32
func (*GetInteractiveReply) GetData ¶
func (x *GetInteractiveReply) GetData() *GetOrListInteractive
func (*GetInteractiveReply) GetMsg ¶
func (x *GetInteractiveReply) GetMsg() string
func (*GetInteractiveReply) ProtoMessage ¶
func (*GetInteractiveReply) ProtoMessage()
func (*GetInteractiveReply) ProtoReflect ¶
func (x *GetInteractiveReply) ProtoReflect() protoreflect.Message
func (*GetInteractiveReply) Reset ¶
func (x *GetInteractiveReply) Reset()
func (*GetInteractiveReply) String ¶
func (x *GetInteractiveReply) String() string
type GetInteractiveRequest ¶
type GetInteractiveRequest struct { PostId int64 `protobuf:"varint,1,opt,name=postId,proto3" json:"postId,omitempty"` // contains filtered or unexported fields }
func (*GetInteractiveRequest) Descriptor
deprecated
func (*GetInteractiveRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetInteractiveRequest.ProtoReflect.Descriptor instead.
func (*GetInteractiveRequest) GetPostId ¶
func (x *GetInteractiveRequest) GetPostId() int64
func (*GetInteractiveRequest) ProtoMessage ¶
func (*GetInteractiveRequest) ProtoMessage()
func (*GetInteractiveRequest) ProtoReflect ¶
func (x *GetInteractiveRequest) ProtoReflect() protoreflect.Message
func (*GetInteractiveRequest) Reset ¶
func (x *GetInteractiveRequest) Reset()
func (*GetInteractiveRequest) String ¶
func (x *GetInteractiveRequest) String() string
type GetOrListInteractive ¶
type GetOrListInteractive struct { ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` BizID int64 `protobuf:"varint,2,opt,name=BizID,proto3" json:"BizID,omitempty"` BizName string `protobuf:"bytes,3,opt,name=BizName,proto3" json:"BizName,omitempty"` ReadCount int64 `protobuf:"varint,4,opt,name=ReadCount,proto3" json:"ReadCount,omitempty"` LikeCount int64 `protobuf:"varint,5,opt,name=LikeCount,proto3" json:"LikeCount,omitempty"` CollectCount int64 `protobuf:"varint,6,opt,name=CollectCount,proto3" json:"CollectCount,omitempty"` UpdateTime int64 `protobuf:"varint,7,opt,name=UpdateTime,proto3" json:"UpdateTime,omitempty"` CreateTime int64 `protobuf:"varint,8,opt,name=CreateTime,proto3" json:"CreateTime,omitempty"` PostId int64 `protobuf:"varint,9,opt,name=PostId,proto3" json:"PostId,omitempty"` // contains filtered or unexported fields }
func (*GetOrListInteractive) Descriptor
deprecated
func (*GetOrListInteractive) Descriptor() ([]byte, []int)
Deprecated: Use GetOrListInteractive.ProtoReflect.Descriptor instead.
func (*GetOrListInteractive) GetBizID ¶
func (x *GetOrListInteractive) GetBizID() int64
func (*GetOrListInteractive) GetBizName ¶
func (x *GetOrListInteractive) GetBizName() string
func (*GetOrListInteractive) GetCollectCount ¶
func (x *GetOrListInteractive) GetCollectCount() int64
func (*GetOrListInteractive) GetCreateTime ¶
func (x *GetOrListInteractive) GetCreateTime() int64
func (*GetOrListInteractive) GetID ¶
func (x *GetOrListInteractive) GetID() int64
func (*GetOrListInteractive) GetLikeCount ¶
func (x *GetOrListInteractive) GetLikeCount() int64
func (*GetOrListInteractive) GetPostId ¶
func (x *GetOrListInteractive) GetPostId() int64
func (*GetOrListInteractive) GetReadCount ¶
func (x *GetOrListInteractive) GetReadCount() int64
func (*GetOrListInteractive) GetUpdateTime ¶
func (x *GetOrListInteractive) GetUpdateTime() int64
func (*GetOrListInteractive) ProtoMessage ¶
func (*GetOrListInteractive) ProtoMessage()
func (*GetOrListInteractive) ProtoReflect ¶
func (x *GetOrListInteractive) ProtoReflect() protoreflect.Message
func (*GetOrListInteractive) Reset ¶
func (x *GetOrListInteractive) Reset()
func (*GetOrListInteractive) String ¶
func (x *GetOrListInteractive) String() string
type InteractiveClient ¶
type InteractiveClient interface { GetInteractive(ctx context.Context, in *GetInteractiveRequest, opts ...grpc.CallOption) (*GetInteractiveReply, error) ListInteractive(ctx context.Context, in *ListInteractiveRequest, opts ...grpc.CallOption) (*ListInteractiveReply, error) AddReadCount(ctx context.Context, in *AddCountRequest, opts ...grpc.CallOption) (*AddCountReply, error) AddLikeCount(ctx context.Context, in *AddCountRequest, opts ...grpc.CallOption) (*AddCountReply, error) AddCollectCount(ctx context.Context, in *AddCountRequest, opts ...grpc.CallOption) (*AddCountReply, error) }
InteractiveClient is the client API for Interactive 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 NewInteractiveClient ¶
func NewInteractiveClient(cc grpc.ClientConnInterface) InteractiveClient
type InteractiveHTTPClient ¶
type InteractiveHTTPClient interface { GetInteractive(ctx context.Context, req *GetInteractiveRequest, opts ...http.CallOption) (rsp *GetInteractiveReply, err error) ListInteractive(ctx context.Context, req *ListInteractiveRequest, opts ...http.CallOption) (rsp *ListInteractiveReply, err error) }
func NewInteractiveHTTPClient ¶
func NewInteractiveHTTPClient(client *http.Client) InteractiveHTTPClient
type InteractiveHTTPClientImpl ¶
type InteractiveHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*InteractiveHTTPClientImpl) GetInteractive ¶
func (c *InteractiveHTTPClientImpl) GetInteractive(ctx context.Context, in *GetInteractiveRequest, opts ...http.CallOption) (*GetInteractiveReply, error)
func (*InteractiveHTTPClientImpl) ListInteractive ¶
func (c *InteractiveHTTPClientImpl) ListInteractive(ctx context.Context, in *ListInteractiveRequest, opts ...http.CallOption) (*ListInteractiveReply, error)
type InteractiveHTTPServer ¶
type InteractiveHTTPServer interface { GetInteractive(context.Context, *GetInteractiveRequest) (*GetInteractiveReply, error) ListInteractive(context.Context, *ListInteractiveRequest) (*ListInteractiveReply, error) }
type InteractiveServer ¶
type InteractiveServer interface { GetInteractive(context.Context, *GetInteractiveRequest) (*GetInteractiveReply, error) ListInteractive(context.Context, *ListInteractiveRequest) (*ListInteractiveReply, error) AddReadCount(context.Context, *AddCountRequest) (*AddCountReply, error) AddLikeCount(context.Context, *AddCountRequest) (*AddCountReply, error) AddCollectCount(context.Context, *AddCountRequest) (*AddCountReply, error) // contains filtered or unexported methods }
InteractiveServer is the server API for Interactive service. All implementations must embed UnimplementedInteractiveServer for forward compatibility
type ListInteractiveReply ¶
type ListInteractiveReply struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data []*GetOrListInteractive `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ListInteractiveReply) Descriptor
deprecated
func (*ListInteractiveReply) Descriptor() ([]byte, []int)
Deprecated: Use ListInteractiveReply.ProtoReflect.Descriptor instead.
func (*ListInteractiveReply) GetCode ¶
func (x *ListInteractiveReply) GetCode() int32
func (*ListInteractiveReply) GetData ¶
func (x *ListInteractiveReply) GetData() []*GetOrListInteractive
func (*ListInteractiveReply) GetMsg ¶
func (x *ListInteractiveReply) GetMsg() string
func (*ListInteractiveReply) ProtoMessage ¶
func (*ListInteractiveReply) ProtoMessage()
func (*ListInteractiveReply) ProtoReflect ¶
func (x *ListInteractiveReply) ProtoReflect() protoreflect.Message
func (*ListInteractiveReply) Reset ¶
func (x *ListInteractiveReply) Reset()
func (*ListInteractiveReply) String ¶
func (x *ListInteractiveReply) String() string
type ListInteractiveRequest ¶
type ListInteractiveRequest struct { Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
func (*ListInteractiveRequest) Descriptor
deprecated
func (*ListInteractiveRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListInteractiveRequest.ProtoReflect.Descriptor instead.
func (*ListInteractiveRequest) GetPage ¶
func (x *ListInteractiveRequest) GetPage() int32
func (*ListInteractiveRequest) GetSize ¶
func (x *ListInteractiveRequest) GetSize() int64
func (*ListInteractiveRequest) ProtoMessage ¶
func (*ListInteractiveRequest) ProtoMessage()
func (*ListInteractiveRequest) ProtoReflect ¶
func (x *ListInteractiveRequest) ProtoReflect() protoreflect.Message
func (*ListInteractiveRequest) Reset ¶
func (x *ListInteractiveRequest) Reset()
func (*ListInteractiveRequest) String ¶
func (x *ListInteractiveRequest) String() string
type UnimplementedInteractiveServer ¶
type UnimplementedInteractiveServer struct { }
UnimplementedInteractiveServer must be embedded to have forward compatible implementations.
func (UnimplementedInteractiveServer) AddCollectCount ¶
func (UnimplementedInteractiveServer) AddCollectCount(context.Context, *AddCountRequest) (*AddCountReply, error)
func (UnimplementedInteractiveServer) AddLikeCount ¶
func (UnimplementedInteractiveServer) AddLikeCount(context.Context, *AddCountRequest) (*AddCountReply, error)
func (UnimplementedInteractiveServer) AddReadCount ¶
func (UnimplementedInteractiveServer) AddReadCount(context.Context, *AddCountRequest) (*AddCountReply, error)
func (UnimplementedInteractiveServer) GetInteractive ¶
func (UnimplementedInteractiveServer) GetInteractive(context.Context, *GetInteractiveRequest) (*GetInteractiveReply, error)
func (UnimplementedInteractiveServer) ListInteractive ¶
func (UnimplementedInteractiveServer) ListInteractive(context.Context, *ListInteractiveRequest) (*ListInteractiveReply, error)
type UnsafeInteractiveServer ¶
type UnsafeInteractiveServer interface {
// contains filtered or unexported methods
}
UnsafeInteractiveServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InteractiveServer will result in compilation errors.