Documentation ¶
Index ¶
- type Server
- func (srv *Server) CreateVideo(ctx context.Context, req *pb.CreateVideoRequest) (*pb.VideoResponse, error)
- func (srv *Server) DeleteVideo(ctx context.Context, req *pb.DeleteRequest) (*pb.DeleteVideoResponse, error)
- func (srv *Server) GetQuota(ctx context.Context, _ *pb.GetQuotaRequest) (*pb.QuotaResponse, error)
- func (srv *Server) GetVideo(ctx context.Context, req *pb.VideoRequest) (*pb.VideoResponse, error)
- func (srv *Server) GetVideos(ctx context.Context, _ *pb.GetVideosRequest) (*pb.VideosResponse, error)
- func (srv *Server) WatchVideo(ctx context.Context, req *pb.WatchRequest) (*pb.WatchVideoResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { *pb.UnimplementedUsersideapiServer *g.Server // contains filtered or unexported fields }
func (*Server) CreateVideo ¶
func (srv *Server) CreateVideo(ctx context.Context, req *pb.CreateVideoRequest) (*pb.VideoResponse, error)
CreateVideo handles video create & upload request.
func (*Server) DeleteVideo ¶
func (srv *Server) DeleteVideo(ctx context.Context, req *pb.DeleteRequest) (*pb.DeleteVideoResponse, error)
func (*Server) GetQuota ¶
func (srv *Server) GetQuota(ctx context.Context, _ *pb.GetQuotaRequest) (*pb.QuotaResponse, error)
func (*Server) GetVideo ¶
func (srv *Server) GetVideo(ctx context.Context, req *pb.VideoRequest) (*pb.VideoResponse, error)
func (*Server) GetVideos ¶
func (srv *Server) GetVideos(ctx context.Context, _ *pb.GetVideosRequest) (*pb.VideosResponse, error)
func (*Server) WatchVideo ¶
func (srv *Server) WatchVideo(ctx context.Context, req *pb.WatchRequest) (*pb.WatchVideoResponse, error)
Click to show internal directories.
Click to hide internal directories.