VideoServer

package
v0.0.0-...-7de97a6 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

Deprecated: Use BaseResp.ProtoReflect.Descriptor instead.

func (*BaseResp) FastRead

func (x *BaseResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*BaseResp) FastWrite

func (x *BaseResp) FastWrite(buf []byte) (offset int)

func (*BaseResp) GetStatusCode

func (x *BaseResp) GetStatusCode() int32

func (*BaseResp) GetStatusMsg

func (x *BaseResp) GetStatusMsg() string

func (*BaseResp) ProtoMessage

func (*BaseResp) ProtoMessage()

func (*BaseResp) ProtoReflect

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

func (*BaseResp) Reset

func (x *BaseResp) Reset()

func (*BaseResp) Size

func (x *BaseResp) Size() (n int)

func (*BaseResp) String

func (x *BaseResp) String() string

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) FastRead

func (x *DouyinFeedRequest) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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) FastRead

func (x *DouyinFeedResponse) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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) FastRead

func (x *DouyinPublishActionRequest) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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 (*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) FastRead

func (x *DouyinPublishActionResponse) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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 (*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) FastRead

func (x *DouyinPublishListRequest) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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) FastRead

func (x *DouyinPublishListResponse) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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 (*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) FastRead

func (x *DouyinVideoListByVideoId) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) FastRead

func (x *User) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*User) FastWrite

func (x *User) FastWrite(buf []byte) (offset int)

func (*User) GetFollowCount

func (x *User) GetFollowCount() int64

func (*User) GetFollowerCount

func (x *User) GetFollowerCount() int64

func (*User) GetId

func (x *User) GetId() int64

func (*User) GetIsFollow

func (x *User) GetIsFollow() bool

func (*User) GetName

func (x *User) GetName() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) Size

func (x *User) Size() (n int)

func (*User) String

func (x *User) String() string

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

Deprecated: Use Video.ProtoReflect.Descriptor instead.

func (*Video) FastRead

func (x *Video) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*Video) FastWrite

func (x *Video) FastWrite(buf []byte) (offset int)

func (*Video) GetAuthor

func (x *Video) GetAuthor() *User

func (*Video) GetCommentCount

func (x *Video) GetCommentCount() int64

func (*Video) GetCoverUrl

func (x *Video) GetCoverUrl() string

func (*Video) GetFavoriteCount

func (x *Video) GetFavoriteCount() int64

func (*Video) GetId

func (x *Video) GetId() int64

func (*Video) GetIsFavorite

func (x *Video) GetIsFavorite() bool

func (*Video) GetPlayUrl

func (x *Video) GetPlayUrl() string

func (*Video) GetTitle

func (x *Video) GetTitle() string

func (*Video) ProtoMessage

func (*Video) ProtoMessage()

func (*Video) ProtoReflect

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

func (*Video) Reset

func (x *Video) Reset()

func (*Video) Size

func (x *Video) Size() (n int)

func (*Video) String

func (x *Video) String() string

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)
}

Directories

Path Synopsis
Code generated by Kitex v0.4.4.
Code generated by Kitex v0.4.4.

Jump to

Keyboard shortcuts

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