Documentation ¶
Index ¶
- Variables
- type BaseResp
- func (*BaseResp) Descriptor() ([]byte, []int)deprecated
- func (x *BaseResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *BaseResp) FastWrite(buf []byte) (offset int)
- func (x *BaseResp) GetStatusCode() int32
- func (x *BaseResp) GetStatusMsg() string
- func (*BaseResp) ProtoMessage()
- func (x *BaseResp) ProtoReflect() protoreflect.Message
- func (x *BaseResp) Reset()
- func (x *BaseResp) Size() (n int)
- func (x *BaseResp) String() string
- type DouyinFeedRequest
- func (*DouyinFeedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinFeedRequest) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DouyinFeedRequest) FastWrite(buf []byte) (offset int)
- func (x *DouyinFeedRequest) GetLatestTime() int64
- func (x *DouyinFeedRequest) GetUserId() int64
- func (*DouyinFeedRequest) ProtoMessage()
- func (x *DouyinFeedRequest) ProtoReflect() protoreflect.Message
- func (x *DouyinFeedRequest) Reset()
- func (x *DouyinFeedRequest) Size() (n int)
- func (x *DouyinFeedRequest) String() string
- type DouyinFeedResponse
- func (*DouyinFeedResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinFeedResponse) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DouyinFeedResponse) FastWrite(buf []byte) (offset int)
- func (x *DouyinFeedResponse) GetBaseResp() *BaseResp
- func (x *DouyinFeedResponse) GetNextTime() int64
- func (x *DouyinFeedResponse) GetVideoList() []*Video
- func (*DouyinFeedResponse) ProtoMessage()
- func (x *DouyinFeedResponse) ProtoReflect() protoreflect.Message
- func (x *DouyinFeedResponse) Reset()
- func (x *DouyinFeedResponse) Size() (n int)
- func (x *DouyinFeedResponse) String() string
- type DouyinPublishActionRequest
- func (*DouyinPublishActionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinPublishActionRequest) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DouyinPublishActionRequest) FastWrite(buf []byte) (offset int)
- func (x *DouyinPublishActionRequest) GetData() []byte
- func (x *DouyinPublishActionRequest) GetTitle() string
- func (x *DouyinPublishActionRequest) GetToken() string
- func (x *DouyinPublishActionRequest) GetUserId() int64
- func (*DouyinPublishActionRequest) ProtoMessage()
- func (x *DouyinPublishActionRequest) ProtoReflect() protoreflect.Message
- func (x *DouyinPublishActionRequest) Reset()
- func (x *DouyinPublishActionRequest) Size() (n int)
- func (x *DouyinPublishActionRequest) String() string
- type DouyinPublishActionResponse
- func (*DouyinPublishActionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinPublishActionResponse) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DouyinPublishActionResponse) FastWrite(buf []byte) (offset int)
- func (x *DouyinPublishActionResponse) GetBaseResp() *BaseResp
- func (*DouyinPublishActionResponse) ProtoMessage()
- func (x *DouyinPublishActionResponse) ProtoReflect() protoreflect.Message
- func (x *DouyinPublishActionResponse) Reset()
- func (x *DouyinPublishActionResponse) Size() (n int)
- func (x *DouyinPublishActionResponse) String() string
- type DouyinPublishListRequest
- func (*DouyinPublishListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinPublishListRequest) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DouyinPublishListRequest) FastWrite(buf []byte) (offset int)
- func (x *DouyinPublishListRequest) GetToUserId() int64
- func (x *DouyinPublishListRequest) GetUserId() int64
- func (*DouyinPublishListRequest) ProtoMessage()
- func (x *DouyinPublishListRequest) ProtoReflect() protoreflect.Message
- func (x *DouyinPublishListRequest) Reset()
- func (x *DouyinPublishListRequest) Size() (n int)
- func (x *DouyinPublishListRequest) String() string
- type DouyinPublishListResponse
- func (*DouyinPublishListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinPublishListResponse) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DouyinPublishListResponse) FastWrite(buf []byte) (offset int)
- func (x *DouyinPublishListResponse) GetBaseResp() *BaseResp
- func (x *DouyinPublishListResponse) GetVideoList() []*Video
- func (*DouyinPublishListResponse) ProtoMessage()
- func (x *DouyinPublishListResponse) ProtoReflect() protoreflect.Message
- func (x *DouyinPublishListResponse) Reset()
- func (x *DouyinPublishListResponse) Size() (n int)
- func (x *DouyinPublishListResponse) String() string
- type DouyinVideoListByVideoId
- func (*DouyinVideoListByVideoId) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinVideoListByVideoId) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DouyinVideoListByVideoId) FastWrite(buf []byte) (offset int)
- func (x *DouyinVideoListByVideoId) GetUserId() int64
- func (x *DouyinVideoListByVideoId) GetVideoId() []int64
- func (*DouyinVideoListByVideoId) ProtoMessage()
- func (x *DouyinVideoListByVideoId) ProtoReflect() protoreflect.Message
- func (x *DouyinVideoListByVideoId) Reset()
- func (x *DouyinVideoListByVideoId) Size() (n int)
- func (x *DouyinVideoListByVideoId) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *User) FastWrite(buf []byte) (offset int)
- func (x *User) GetFollowCount() int64
- func (x *User) GetFollowerCount() int64
- func (x *User) GetId() int64
- func (x *User) GetIsFollow() bool
- func (x *User) GetName() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) Size() (n int)
- func (x *User) String() string
- type Video
- func (*Video) Descriptor() ([]byte, []int)deprecated
- func (x *Video) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *Video) FastWrite(buf []byte) (offset int)
- func (x *Video) GetAuthor() *User
- func (x *Video) GetCommentCount() int64
- func (x *Video) GetCoverUrl() string
- func (x *Video) GetFavoriteCount() int64
- func (x *Video) GetId() int64
- func (x *Video) GetIsFavorite() bool
- func (x *Video) GetPlayUrl() string
- func (x *Video) GetTitle() string
- func (*Video) ProtoMessage()
- func (x *Video) ProtoReflect() protoreflect.Message
- func (x *Video) Reset()
- func (x *Video) Size() (n int)
- func (x *Video) String() string
- type VideoSrv
Constants ¶
This section is empty.
Variables ¶
View Source
var File_VideoServer_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BaseResp ¶
type BaseResp struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` // 状态码,0-成功,其他值-失败 StatusMsg string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg,proto3" json:"status_msg,omitempty"` // 返回状态描述--可选 // contains filtered or unexported fields }
func (*BaseResp) Descriptor
deprecated
func (*BaseResp) GetStatusCode ¶
func (*BaseResp) GetStatusMsg ¶
func (*BaseResp) ProtoMessage ¶
func (*BaseResp) ProtoMessage()
func (*BaseResp) ProtoReflect ¶
func (x *BaseResp) ProtoReflect() protoreflect.Message
type DouyinFeedRequest ¶
type DouyinFeedRequest struct { LatestTime int64 `protobuf:"varint,1,opt,name=latest_time,json=latestTime,proto3" json:"latest_time,omitempty"` // 可选参数,限制返回视频的最新投稿时间戳,精确到秒,不填表示当前时间。 UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` //用户id // contains filtered or unexported fields }
func (*DouyinFeedRequest) Descriptor
deprecated
func (*DouyinFeedRequest) Descriptor() ([]byte, []int)
Deprecated: Use DouyinFeedRequest.ProtoReflect.Descriptor instead.
func (*DouyinFeedRequest) FastWrite ¶
func (x *DouyinFeedRequest) FastWrite(buf []byte) (offset int)
func (*DouyinFeedRequest) GetLatestTime ¶
func (x *DouyinFeedRequest) GetLatestTime() int64
func (*DouyinFeedRequest) GetUserId ¶
func (x *DouyinFeedRequest) GetUserId() int64
func (*DouyinFeedRequest) ProtoMessage ¶
func (*DouyinFeedRequest) ProtoMessage()
func (*DouyinFeedRequest) ProtoReflect ¶
func (x *DouyinFeedRequest) ProtoReflect() protoreflect.Message
func (*DouyinFeedRequest) Reset ¶
func (x *DouyinFeedRequest) Reset()
func (*DouyinFeedRequest) Size ¶
func (x *DouyinFeedRequest) Size() (n int)
func (*DouyinFeedRequest) String ¶
func (x *DouyinFeedRequest) String() string
type DouyinFeedResponse ¶
type DouyinFeedResponse struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` VideoList []*Video `protobuf:"bytes,2,rep,name=video_list,json=videoList,proto3" json:"video_list,omitempty"` // 视频列表 NextTime int64 `protobuf:"varint,3,opt,name=next_time,json=nextTime,proto3" json:"next_time,omitempty"` // 本次返回的视频中,发布最早的时间,作为下次请求的latest_time // contains filtered or unexported fields }
func (*DouyinFeedResponse) Descriptor
deprecated
func (*DouyinFeedResponse) Descriptor() ([]byte, []int)
Deprecated: Use DouyinFeedResponse.ProtoReflect.Descriptor instead.
func (*DouyinFeedResponse) FastWrite ¶
func (x *DouyinFeedResponse) FastWrite(buf []byte) (offset int)
func (*DouyinFeedResponse) GetBaseResp ¶
func (x *DouyinFeedResponse) GetBaseResp() *BaseResp
func (*DouyinFeedResponse) GetNextTime ¶
func (x *DouyinFeedResponse) GetNextTime() int64
func (*DouyinFeedResponse) GetVideoList ¶
func (x *DouyinFeedResponse) GetVideoList() []*Video
func (*DouyinFeedResponse) ProtoMessage ¶
func (*DouyinFeedResponse) ProtoMessage()
func (*DouyinFeedResponse) ProtoReflect ¶
func (x *DouyinFeedResponse) ProtoReflect() protoreflect.Message
func (*DouyinFeedResponse) Reset ¶
func (x *DouyinFeedResponse) Reset()
func (*DouyinFeedResponse) Size ¶
func (x *DouyinFeedResponse) Size() (n int)
func (*DouyinFeedResponse) String ¶
func (x *DouyinFeedResponse) String() string
type DouyinPublishActionRequest ¶
type DouyinPublishActionRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` //用户鉴权token Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` //视频数据 Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` //视频标题 UserId int64 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` //传递用户id // contains filtered or unexported fields }
func (*DouyinPublishActionRequest) Descriptor
deprecated
func (*DouyinPublishActionRequest) Descriptor() ([]byte, []int)
Deprecated: Use DouyinPublishActionRequest.ProtoReflect.Descriptor instead.
func (*DouyinPublishActionRequest) FastWrite ¶
func (x *DouyinPublishActionRequest) FastWrite(buf []byte) (offset int)
func (*DouyinPublishActionRequest) GetData ¶
func (x *DouyinPublishActionRequest) GetData() []byte
func (*DouyinPublishActionRequest) GetTitle ¶
func (x *DouyinPublishActionRequest) GetTitle() string
func (*DouyinPublishActionRequest) GetToken ¶
func (x *DouyinPublishActionRequest) GetToken() string
func (*DouyinPublishActionRequest) GetUserId ¶
func (x *DouyinPublishActionRequest) GetUserId() int64
func (*DouyinPublishActionRequest) ProtoMessage ¶
func (*DouyinPublishActionRequest) ProtoMessage()
func (*DouyinPublishActionRequest) ProtoReflect ¶
func (x *DouyinPublishActionRequest) ProtoReflect() protoreflect.Message
func (*DouyinPublishActionRequest) Reset ¶
func (x *DouyinPublishActionRequest) Reset()
func (*DouyinPublishActionRequest) Size ¶
func (x *DouyinPublishActionRequest) Size() (n int)
func (*DouyinPublishActionRequest) String ¶
func (x *DouyinPublishActionRequest) String() string
type DouyinPublishActionResponse ¶
type DouyinPublishActionResponse struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` // contains filtered or unexported fields }
func (*DouyinPublishActionResponse) Descriptor
deprecated
func (*DouyinPublishActionResponse) Descriptor() ([]byte, []int)
Deprecated: Use DouyinPublishActionResponse.ProtoReflect.Descriptor instead.
func (*DouyinPublishActionResponse) FastWrite ¶
func (x *DouyinPublishActionResponse) FastWrite(buf []byte) (offset int)
func (*DouyinPublishActionResponse) GetBaseResp ¶
func (x *DouyinPublishActionResponse) GetBaseResp() *BaseResp
func (*DouyinPublishActionResponse) ProtoMessage ¶
func (*DouyinPublishActionResponse) ProtoMessage()
func (*DouyinPublishActionResponse) ProtoReflect ¶
func (x *DouyinPublishActionResponse) ProtoReflect() protoreflect.Message
func (*DouyinPublishActionResponse) Reset ¶
func (x *DouyinPublishActionResponse) Reset()
func (*DouyinPublishActionResponse) Size ¶
func (x *DouyinPublishActionResponse) Size() (n int)
func (*DouyinPublishActionResponse) String ¶
func (x *DouyinPublishActionResponse) String() string
type DouyinPublishListRequest ¶
type DouyinPublishListRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` //用户id ToUserId int64 `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` //用户鉴权token // contains filtered or unexported fields }
func (*DouyinPublishListRequest) Descriptor
deprecated
func (*DouyinPublishListRequest) Descriptor() ([]byte, []int)
Deprecated: Use DouyinPublishListRequest.ProtoReflect.Descriptor instead.
func (*DouyinPublishListRequest) FastWrite ¶
func (x *DouyinPublishListRequest) FastWrite(buf []byte) (offset int)
func (*DouyinPublishListRequest) GetToUserId ¶
func (x *DouyinPublishListRequest) GetToUserId() int64
func (*DouyinPublishListRequest) GetUserId ¶
func (x *DouyinPublishListRequest) GetUserId() int64
func (*DouyinPublishListRequest) ProtoMessage ¶
func (*DouyinPublishListRequest) ProtoMessage()
func (*DouyinPublishListRequest) ProtoReflect ¶
func (x *DouyinPublishListRequest) ProtoReflect() protoreflect.Message
func (*DouyinPublishListRequest) Reset ¶
func (x *DouyinPublishListRequest) Reset()
func (*DouyinPublishListRequest) Size ¶
func (x *DouyinPublishListRequest) Size() (n int)
func (*DouyinPublishListRequest) String ¶
func (x *DouyinPublishListRequest) String() string
type DouyinPublishListResponse ¶
type DouyinPublishListResponse struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` VideoList []*Video `protobuf:"bytes,2,rep,name=video_list,json=videoList,proto3" json:"video_list,omitempty"` //用户发布的视频列表 // contains filtered or unexported fields }
func (*DouyinPublishListResponse) Descriptor
deprecated
func (*DouyinPublishListResponse) Descriptor() ([]byte, []int)
Deprecated: Use DouyinPublishListResponse.ProtoReflect.Descriptor instead.
func (*DouyinPublishListResponse) FastWrite ¶
func (x *DouyinPublishListResponse) FastWrite(buf []byte) (offset int)
func (*DouyinPublishListResponse) GetBaseResp ¶
func (x *DouyinPublishListResponse) GetBaseResp() *BaseResp
func (*DouyinPublishListResponse) GetVideoList ¶
func (x *DouyinPublishListResponse) GetVideoList() []*Video
func (*DouyinPublishListResponse) ProtoMessage ¶
func (*DouyinPublishListResponse) ProtoMessage()
func (*DouyinPublishListResponse) ProtoReflect ¶
func (x *DouyinPublishListResponse) ProtoReflect() protoreflect.Message
func (*DouyinPublishListResponse) Reset ¶
func (x *DouyinPublishListResponse) Reset()
func (*DouyinPublishListResponse) Size ¶
func (x *DouyinPublishListResponse) Size() (n int)
func (*DouyinPublishListResponse) String ¶
func (x *DouyinPublishListResponse) String() string
type DouyinVideoListByVideoId ¶
type DouyinVideoListByVideoId struct { VideoId []int64 `protobuf:"varint,1,rep,packed,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // 视频id UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id // contains filtered or unexported fields }
func (*DouyinVideoListByVideoId) Descriptor
deprecated
func (*DouyinVideoListByVideoId) Descriptor() ([]byte, []int)
Deprecated: Use DouyinVideoListByVideoId.ProtoReflect.Descriptor instead.
func (*DouyinVideoListByVideoId) FastWrite ¶
func (x *DouyinVideoListByVideoId) FastWrite(buf []byte) (offset int)
func (*DouyinVideoListByVideoId) GetUserId ¶
func (x *DouyinVideoListByVideoId) GetUserId() int64
func (*DouyinVideoListByVideoId) GetVideoId ¶
func (x *DouyinVideoListByVideoId) GetVideoId() []int64
func (*DouyinVideoListByVideoId) ProtoMessage ¶
func (*DouyinVideoListByVideoId) ProtoMessage()
func (*DouyinVideoListByVideoId) ProtoReflect ¶
func (x *DouyinVideoListByVideoId) ProtoReflect() protoreflect.Message
func (*DouyinVideoListByVideoId) Reset ¶
func (x *DouyinVideoListByVideoId) Reset()
func (*DouyinVideoListByVideoId) Size ¶
func (x *DouyinVideoListByVideoId) Size() (n int)
func (*DouyinVideoListByVideoId) String ¶
func (x *DouyinVideoListByVideoId) String() string
type User ¶
type User struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 用户id Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 用户名称 FollowCount int64 `protobuf:"varint,3,opt,name=follow_count,json=followCount,proto3" json:"follow_count,omitempty"` // 关注总数--可选 FollowerCount int64 `protobuf:"varint,4,opt,name=follower_count,json=followerCount,proto3" json:"follower_count,omitempty"` // 粉丝总数--可选 IsFollow bool `protobuf:"varint,5,opt,name=is_follow,json=isFollow,proto3" json:"is_follow,omitempty"` // true-已关注,false-未关注 // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetFollowCount ¶
func (*User) GetFollowerCount ¶
func (*User) GetIsFollow ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type Video ¶
type Video struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Author *User `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"` PlayUrl string `protobuf:"bytes,3,opt,name=play_url,json=playUrl,proto3" json:"play_url,omitempty"` CoverUrl string `protobuf:"bytes,4,opt,name=cover_url,json=coverUrl,proto3" json:"cover_url,omitempty"` FavoriteCount int64 `protobuf:"varint,5,opt,name=favorite_count,json=favoriteCount,proto3" json:"favorite_count,omitempty"` CommentCount int64 `protobuf:"varint,6,opt,name=comment_count,json=commentCount,proto3" json:"comment_count,omitempty"` // 视频的评论总数 IsFavorite bool `protobuf:"varint,7,opt,name=is_favorite,json=isFavorite,proto3" json:"is_favorite,omitempty"` Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"` // contains filtered or unexported fields }
func (*Video) Descriptor
deprecated
func (*Video) GetCommentCount ¶
func (*Video) GetCoverUrl ¶
func (*Video) GetFavoriteCount ¶
func (*Video) GetIsFavorite ¶
func (*Video) GetPlayUrl ¶
func (*Video) ProtoMessage ¶
func (*Video) ProtoMessage()
func (*Video) ProtoReflect ¶
func (x *Video) ProtoReflect() protoreflect.Message
type VideoSrv ¶
type VideoSrv interface { Feed(ctx context.Context, req *DouyinFeedRequest) (res *DouyinFeedResponse, err error) PublishAction(ctx context.Context, req *DouyinPublishActionRequest) (res *DouyinPublishActionResponse, err error) PublishList(ctx context.Context, req *DouyinPublishListRequest) (res *DouyinPublishListResponse, err error) GetVideoListByVideoId(ctx context.Context, req *DouyinVideoListByVideoId) (res *DouyinPublishListResponse, err error) }
Click to show internal directories.
Click to hide internal directories.