rpc

package
v0.0.0-...-cb3206a Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckUser

func CheckUser(ctx context.Context, req *user.CheckUserRequest) (int64, error)

CheckUser check user info

func CommentList

func CommentList(ctx context.Context, req *comment.CommentListRequest) ([]*comment.Comment, error)

CommentList get comment list info

func CreateComment

func CreateComment(ctx context.Context, req *comment.CreateCommentRequest) (*comment.Comment, error)

CreateComment add comment

func DeleteComment

func DeleteComment(ctx context.Context, req *comment.DeleteCommentRequest) (*comment.Comment, error)

DeleteComment delete comment

func FavoriteAction

func FavoriteAction(ctx context.Context, req *favorite.FavoriteActionRequest) error

FavoriteAction implement like and unlike operations

func FavoriteList

func FavoriteList(ctx context.Context, req *favorite.FavoriteListRequest) ([]*favorite.Video, error)

FavoriteList get favorite list info

func Feed

func Feed(ctx context.Context, req *feed.FeedRequest) ([]*feed.Video, int64, error)

Feed query list of video info

func FollowList

func FollowList(ctx context.Context, req *relation.FollowListRequest) ([]*relation.User, error)

FollowList get user follow list info

func FollowerList

func FollowerList(ctx context.Context, req *relation.FollowerListRequest) ([]*relation.User, error)

FollowerList get user follower list info

func InitRPC

func InitRPC()

InitRPC init rpc client

func PublishVideoData

func PublishVideoData(ctx context.Context, req *publish.PublishActionRequest) error

PublishVideoData upload video data

func QueryVideoList

func QueryVideoList(ctx context.Context, req *publish.PublishListRequest) ([]*publish.Video, error)

QueryVideoList get a list of video releases

func RegisterUser

func RegisterUser(ctx context.Context, req *user.RegisterUserRequest) (int64, string, error)

RegisterUser register user info

func RelationAction

func RelationAction(ctx context.Context, req *relation.RelationActionRequest) error

RelationAction implement follow and unfollow actions

func UserInfo

func UserInfo(ctx context.Context, req *user.UserInfoRequest) (*user.User, error)

UserInfo get user info

Types

This section is empty.

Jump to

Keyboard shortcuts

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