userside

package
v0.0.0-...-dec19c8 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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 NewServer

func NewServer(cfg *g.Config, videoSvc *video.Service) (*Server, error)

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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