client

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service struct info.

func New

func New(c *rpc.ClientConfig) (s *Service)

New new service instance and return.

func (*Service) AddArc

func (s *Service) AddArc(c context.Context, arg *feedmdl.ArgArc) (err error)

AddArc add archive when archive passed. purge cache.

func (*Service) AppFeed

func (s *Service) AppFeed(c context.Context, arg *feedmdl.ArgFeed) (res []*feedmdl.Feed, err error)

AppFeed receive ArgMid contains mid and real ip, then init app feed.

func (*Service) AppUnreadCount

func (s *Service) AppUnreadCount(c context.Context, arg *feedmdl.ArgUnreadCount) (res int, err error)

AppUnreadCount receive ArgUnreadCount contains mid, and withoutBangumi then return unread count.

func (*Service) ArchiveFeed

func (s *Service) ArchiveFeed(c context.Context, arg *feedmdl.ArgFeed) (res []*feedmdl.Feed, err error)

ArchiveFeed receive ArgMid contains mid and real ip

func (*Service) ArticleFeed

func (s *Service) ArticleFeed(c context.Context, arg *feedmdl.ArgFeed) (res []*artmdl.Meta, err error)

ArticleFeed receive ArgMid and return article feed.

func (*Service) ArticleUnreadCount

func (s *Service) ArticleUnreadCount(c context.Context, arg *feedmdl.ArgMid) (res int, err error)

ArticleUnreadCount return unread count of article feed.

func (*Service) BangumiFeed

func (s *Service) BangumiFeed(c context.Context, arg *feedmdl.ArgFeed) (res []*feedmdl.Feed, err error)

BangumiFeed receive ArgMid contains mid and real ip

func (*Service) ChangeArcUpper

func (s *Service) ChangeArcUpper(c context.Context, arg *feedmdl.ArgChangeUpper) (err error)

ChangeArcUpper refresh feed cache when change archive's author

func (*Service) DelArc

func (s *Service) DelArc(c context.Context, arg *feedmdl.ArgAidMid) (err error)

DelArc delete archive when archive not passed. purge cache.

func (*Service) Fold

func (s *Service) Fold(c context.Context, arg *feedmdl.ArgFold) (res []*feedmdl.Feed, err error)

Fold receive ArgFold contains mid, then return upper's fold archives.

func (*Service) PurgeFeedCache

func (s *Service) PurgeFeedCache(c context.Context, arg *feedmdl.ArgMid) (err error)

PurgeFeedCache purge cache when attention/unattention upper

func (*Service) WebFeed

func (s *Service) WebFeed(c context.Context, arg *feedmdl.ArgFeed) (res []*feedmdl.Feed, err error)

WebFeed receive ArgMid contains mid and real ip, then init web feed without fold.

func (*Service) WebUnreadCount

func (s *Service) WebUnreadCount(c context.Context, arg *feedmdl.ArgMid) (res int, err error)

WebUnreadCount receive ArgUnreadCount contains mid, then return unread count.

Jump to

Keyboard shortcuts

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