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: 14 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 {
	Infoc *infoc.Infoc
	// contains filtered or unexported fields
}

Service struct

func New

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

New init

func (*Service) Close

func (s *Service) Close()

Close Service

func (*Service) CreateNotice

func (s *Service) CreateNotice(c context.Context, req *v1.NoticeBase) (res *empty.Empty, err error)

CreateNotice 创建消息

func (*Service) GetUnreadInfo

func (s *Service) GetUnreadInfo(ctx context.Context, req *v1.GetUnreadInfoRequest) (res *v1.UnreadInfo, err error)

GetUnreadInfo 获取未读情况

func (*Service) ListNotices

func (s *Service) ListNotices(c context.Context, req *v1.ListNoticesReq) (res *v1.ListNoticesReply, err error)

ListNotices 获取通知列表

func (*Service) Ping

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

Ping Service

func (*Service) PushCallback

func (s *Service) PushCallback(ctx context.Context, req *v1.PushCallbackRequest) (res *empty.Empty, err error)

PushCallback 推送回调

func (*Service) PushLogin

func (s *Service) PushLogin(ctx context.Context, req *v1.UserPushDev) (res *empty.Empty, err error)

PushLogin login

func (*Service) PushLogout

func (s *Service) PushLogout(ctx context.Context, req *v1.UserPushDev) (res *empty.Empty, err error)

PushLogout 推送回调

Jump to

Keyboard shortcuts

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