service

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: 12 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 service struct info

func New

func New(c *conf.Config) (s *Service)

New .

func (*Service) ArticleFeed

func (s *Service) ArticleFeed(c context.Context, mid int64, pn, ps int) (res []*artmdl.Meta, err error)

ArticleFeed get feed of ups and bangumi.

func (*Service) ArticleUnreadCount

func (s *Service) ArticleUnreadCount(c context.Context, mid int64) (count int, err error)

ArticleUnreadCount get unread count of feed

func (*Service) Close

func (s *Service) Close()

Close closes dao.

func (*Service) Feed

func (s *Service) Feed(c context.Context, mid int64, pn, ps int) (res []*model.Feed, err error)

Feed get feed of ups and bangumi.

func (*Service) Ping

func (s *Service) Ping(c context.Context) (err error)

Ping is check server ping.

func (*Service) UnreadCount

func (s *Service) UnreadCount(c context.Context, mid int64) (count int, err error)

UnreadCount get unread count of feed

Jump to

Keyboard shortcuts

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