Documentation ¶
Index ¶
- func New(c *conf.Config, s *service.Service) (svr *rpc.Server)
- type RPC
- func (r *RPC) Add(c context.Context, a *model.ArgAdd, res *struct{}) (err error)
- func (r *RPC) AddFolder(c context.Context, a *model.ArgAddFolder, res *int64) (err error)
- func (r *RPC) AddVideo(c context.Context, a *model.ArgAddVideo, res *struct{}) (err error)
- func (r *RPC) Adds(c context.Context, a *model.ArgAdds, res *struct{}) (err error)
- func (r *RPC) AllFolders(c context.Context, a *model.ArgAllFolders, res *[]*model.Folder) (err error)
- func (r *RPC) CntUserFolders(c context.Context, a *model.ArgCntUserFolders, count *int) (err error)
- func (r *RPC) Del(c context.Context, a *model.ArgDel, res *struct{}) (err error)
- func (r *RPC) DelFolder(c context.Context, a *model.ArgDelFolder, res *struct{}) (err error)
- func (r *RPC) Dels(c context.Context, a *model.ArgDels, res *struct{}) (err error)
- func (r *RPC) Favorites(c context.Context, a *model.ArgFavs, res *model.Favorites) (err error)
- func (r *RPC) Folder(c context.Context, a *model.ArgFolder, res *model.Folder) (err error)
- func (r *RPC) Folders(c context.Context, a *model.ArgFolders, res *[]*model.Folder) (err error)
- func (r *RPC) InDefault(c context.Context, a *model.ArgInDefaultFolder, in *bool) (err error)
- func (r *RPC) IsFav(c context.Context, a *model.ArgIsFav, faved *bool) (err error)
- func (r *RPC) IsFavedByFid(c context.Context, a *model.ArgIsFavedByFid, faved *bool) (err error)
- func (r *RPC) IsFavs(c context.Context, a *model.ArgIsFavs, res *map[int64]bool) (err error)
- func (r *RPC) MultiAdd(c context.Context, a *model.ArgMultiAdd, res *struct{}) (err error)
- func (r *RPC) MultiDel(c context.Context, a *model.ArgMultiDel, res *struct{}) (err error)
- func (r *RPC) Ping(c context.Context, arg *struct{}, res *struct{}) (err error)
- func (r *RPC) UpdateFolder(c context.Context, a *model.ArgUpdateFolder, res *struct{}) (err error)
- func (r *RPC) Users(c context.Context, a *model.ArgUsers, res *model.UserList) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RPC ¶
type RPC struct {
// contains filtered or unexported fields
}
RPC favorite rpc.
func (*RPC) AllFolders ¶
func (r *RPC) AllFolders(c context.Context, a *model.ArgAllFolders, res *[]*model.Folder) (err error)
AllFolders return users folders.
func (*RPC) CntUserFolders ¶
CntUserFolders count user's folders.
func (*RPC) IsFavedByFid ¶
IsFavedByFid check the oid and fid relation.
func (*RPC) UpdateFolder ¶
UpdateFolder update a Folder.
Click to show internal directories.
Click to hide internal directories.