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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Infoc lancer data collect
	Infoc *infoc.Infoc
)

Functions

This section is empty.

Types

type MessageTask

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

MessageTask .

func NewMessageTask

func NewMessageTask(ctx *context.Context, c *conf.JPushConfig, d *dao.Dao, dev *v1.Device, body *v1.MessageBody) *MessageTask

NewMessageTask .

func (*MessageTask) Run

func (pt *MessageTask) Run() *[]byte

Run .

type NotificationTask

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

NotificationTask .

func NewNotificationTask

func NewNotificationTask(ctx *context.Context, c *conf.JPushConfig, d *dao.Dao, dev *v1.Device, body *v1.NotificationBody) *NotificationTask

NewNotificationTask .

func (*NotificationTask) Run

func (pt *NotificationTask) Run() *[]byte

Run .

type Service

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

Service struct

func New

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

New init

func (*Service) AsyncMessage

func (s *Service) AsyncMessage(ctx context.Context, in *v1.MessageRequest) (*v1.MessageResponse, error)

AsyncMessage .

func (*Service) AsyncNotification

func (s *Service) AsyncNotification(ctx context.Context, in *v1.NotificationRequest) (*v1.NotificationResponse, error)

AsyncNotification .

func (*Service) Close

func (s *Service) Close()

Close Service

func (*Service) Message

func (s *Service) Message(ctx context.Context, in *v1.MessageRequest) (*v1.MessageResponse, error)

Message .

func (*Service) Notification

func (s *Service) Notification(ctx context.Context, in *v1.NotificationRequest) (*v1.NotificationResponse, error)

Notification .

Jump to

Keyboard shortcuts

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