Documentation ¶
Index ¶
- Variables
- type MessageTask
- type NotificationTask
- type Service
- func (s *Service) AsyncMessage(ctx context.Context, in *v1.MessageRequest) (*v1.MessageResponse, error)
- func (s *Service) AsyncNotification(ctx context.Context, in *v1.NotificationRequest) (*v1.NotificationResponse, error)
- func (s *Service) Close()
- func (s *Service) Message(ctx context.Context, in *v1.MessageRequest) (*v1.MessageResponse, error)
- func (s *Service) Notification(ctx context.Context, in *v1.NotificationRequest) (*v1.NotificationResponse, error)
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 .
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 .
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service struct
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) 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 .
Click to show internal directories.
Click to hide internal directories.