Documentation ¶
Index ¶
- func New(c *conf.Config, s *service.Service) (svr *rpc.Server)
- type RPC
- func (r *RPC) AddArc(c context.Context, arg *feedmdl.ArgArc, res *struct{}) (err error)
- func (r *RPC) AppFeed(c context.Context, arg *feedmdl.ArgFeed, res *[]*feedmdl.Feed) (err error)
- func (r *RPC) AppUnreadCount(c context.Context, arg *feedmdl.ArgUnreadCount, res *int) (err error)
- func (r *RPC) ArchiveFeed(c context.Context, arg *feedmdl.ArgFeed, res *[]*feedmdl.Feed) (err error)
- func (r *RPC) ArticleFeed(c context.Context, arg *feedmdl.ArgFeed, res *[]*artmdl.Meta) (err error)
- func (r *RPC) ArticleUnreadCount(c context.Context, arg *feedmdl.ArgMid, res *int) (err error)
- func (r *RPC) BangumiFeed(c context.Context, arg *feedmdl.ArgFeed, res *[]*feedmdl.Feed) (err error)
- func (r *RPC) ChangeArcUpper(c context.Context, arg *feedmdl.ArgChangeUpper, res *struct{}) (err error)
- func (r *RPC) DelArc(c context.Context, arg *feedmdl.ArgAidMid, res *struct{}) (err error)
- func (r *RPC) Fold(c context.Context, arg *feedmdl.ArgFold, res *[]*feedmdl.Feed) (err error)
- func (r *RPC) Ping(c context.Context, arg *struct{}, res *struct{}) (err error)
- func (r *RPC) PurgeFeedCache(c context.Context, arg *feedmdl.ArgMid, res *struct{}) (err error)
- func (r *RPC) WebFeed(c context.Context, arg *feedmdl.ArgFeed, res *[]*feedmdl.Feed) (err error)
- func (r *RPC) WebUnreadCount(c context.Context, arg *feedmdl.ArgMid, res *int) (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 struct info
func (*RPC) AppUnreadCount ¶
AppUnreadCount receive ArgUnreadCount contains mid, then return unread count.
func (*RPC) ArchiveFeed ¶
func (r *RPC) ArchiveFeed(c context.Context, arg *feedmdl.ArgFeed, res *[]*feedmdl.Feed) (err error)
ArchiveFeed receive ArgFeed contains mid and real ip
func (*RPC) ArticleFeed ¶
ArticleFeed receive ArgFeed contains mid and real ip
func (*RPC) ArticleUnreadCount ¶
ArticleUnreadCount receive ArgUnreadCount contains mid, then return unread count.
func (*RPC) BangumiFeed ¶
func (r *RPC) BangumiFeed(c context.Context, arg *feedmdl.ArgFeed, res *[]*feedmdl.Feed) (err error)
BangumiFeed receive ArgFeed contains mid and real ip
func (*RPC) ChangeArcUpper ¶
func (r *RPC) ChangeArcUpper(c context.Context, arg *feedmdl.ArgChangeUpper, res *struct{}) (err error)
ChangeArcUpper refresh feed cache when change archive's author
func (*RPC) PurgeFeedCache ¶
PurgeFeedCache purge cache when attention/unattention upper
Click to show internal directories.
Click to hide internal directories.