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: 18 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 {
	CloseCh     chan bool
	ForbidTimes []conf.ForbidTime
	// contains filtered or unexported fields
}

Service push service.

func New

func New(c *conf.Config) *Service

New creates a push service instance.

func (*Service) Close

func (s *Service) Close()

Close closes service.

func (*Service) Ping

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

Ping checks service.

func (*Service) SetSetting

func (s *Service) SetSetting(c context.Context, mid int64, st *model.Setting) (err error)

SetSetting saves user's archive-result setting.

func (*Service) Setting

func (s *Service) Setting(c context.Context, mid int64) (st *model.Setting, err error)

Setting gets user's archive-result setting.

func (*Service) Test

func (s *Service) Test(arc *model.Archive)

Test for test TODO delete, for test

Jump to

Keyboard shortcuts

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