server

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c *conf.Config, s *service.Service) (svr *rpc.Server)

New new rpc server.

Types

type RPC

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

RPC struct info

func (*RPC) AddArc

func (r *RPC) AddArc(c context.Context, arg *feedmdl.ArgArc, res *struct{}) (err error)

AddArc add archive when archive passed. purge cache.

func (*RPC) AppFeed

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

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

func (*RPC) AppUnreadCount

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

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

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

ArticleFeed receive ArgFeed contains mid and real ip

func (*RPC) ArticleUnreadCount

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

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) DelArc

func (r *RPC) DelArc(c context.Context, arg *feedmdl.ArgAidMid, res *struct{}) (err error)

DelArc delete archive when archive not passed. purge cache.

func (*RPC) Fold

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

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

func (*RPC) Ping

func (r *RPC) Ping(c context.Context, arg *struct{}, res *struct{}) (err error)

Ping check connection success.

func (*RPC) PurgeFeedCache

func (r *RPC) PurgeFeedCache(c context.Context, arg *feedmdl.ArgMid, res *struct{}) (err error)

PurgeFeedCache purge cache when attention/unattention upper

func (*RPC) WebFeed

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

WebFeed receive ArgMid contains mid and real ip, then return app feed.

func (*RPC) WebUnreadCount

func (r *RPC) 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