Documentation ¶
Index ¶
- type Agent
- type AgentMgr
- func (m *AgentMgr) Close()
- func (m *AgentMgr) CreateMsg(ctx context.Context, uniqueId core.UniqueId, request *CreateReq, token string) (string, error)
- func (m *AgentMgr) DeleteScheduleTask(ctx context.Context, uniqueId core.UniqueId, taskId, token string) (bool, error)
- func (m *AgentMgr) PushAll(ctx context.Context, uniqueId core.UniqueId, request *AllReq, token string) (string, error)
- func (m *AgentMgr) PushBatch(ctx context.Context, uniqueId core.UniqueId, request *BatchReq, token string) (map[string]map[string]string, error)
- func (m *AgentMgr) PushByTag(ctx context.Context, uniqueId core.UniqueId, request *ByTagReq, token string) (string, error)
- func (m *AgentMgr) PushList(ctx context.Context, uniqueId core.UniqueId, request *ListReq, token string) (map[string]map[string]string, error)
- func (m *AgentMgr) PushSingle(ctx context.Context, uniqueId core.UniqueId, request *SingleReq, token string) (map[string]map[string]string, error)
- func (m *AgentMgr) QueryDetail(ctx context.Context, uniqueId core.UniqueId, taskId, cId, token string) ([][2]string, error)
- func (m *AgentMgr) QueryScheduleTask(ctx context.Context, uniqueId core.UniqueId, taskId, token string) (map[string]string, error)
- func (m *AgentMgr) RegisterAgent(uniqueId core.UniqueId, agent Agent) error
- func (m *AgentMgr) StopPush(ctx context.Context, uniqueId core.UniqueId, taskId, token string) (bool, error)
- type AllReq
- type ApnsPush
- func (a *ApnsPush) Close()
- func (a *ApnsPush) CreateMsg(ctx context.Context, request *CreateReq, token string) (string, error)
- func (a *ApnsPush) DeleteScheduleTask(ctx context.Context, taskId, token string) (bool, error)
- func (a *ApnsPush) PushAll(ctx context.Context, request *AllReq, token string) (string, error)
- func (a *ApnsPush) PushBatchByAlias(ctx context.Context, request *BatchReq, token string) (map[string]map[string]string, error)
- func (a *ApnsPush) PushBatchByCid(ctx context.Context, request *BatchReq, token string) (map[string]map[string]string, error)
- func (a *ApnsPush) PushByFastCustomTag(ctx context.Context, request *ByTagReq, token string) (string, error)
- func (a *ApnsPush) PushByTag(ctx context.Context, request *ByTagReq, token string) (string, error)
- func (a *ApnsPush) PushListByAlias(ctx context.Context, request *ListReq, token string) (map[string]map[string]string, error)
- func (a *ApnsPush) PushListByCid(ctx context.Context, request *ListReq, token string) (map[string]map[string]string, error)
- func (a *ApnsPush) PushSingleByAlias(ctx context.Context, request *SingleReq, token string) (map[string]map[string]string, error)
- func (a *ApnsPush) PushSingleByCid(ctx context.Context, request *SingleReq, token string) (map[string]map[string]string, error)
- func (a *ApnsPush) QueryDetail(ctx context.Context, taskId, cId, token string) ([][2]string, error)
- func (a *ApnsPush) QueryScheduleTask(ctx context.Context, taskId, token string) (map[string]string, error)
- func (a *ApnsPush) StopPush(ctx context.Context, taskId, token string) (bool, error)
- type BatchReq
- type ByTagReq
- type CreateReq
- type GeTuiPush
- func (g *GeTuiPush) Close()
- func (g *GeTuiPush) CreateMsg(ctx context.Context, request *CreateReq, token string) (string, error)
- func (g *GeTuiPush) DeleteScheduleTask(ctx context.Context, taskId, token string) (bool, error)
- func (g *GeTuiPush) PushAll(ctx context.Context, request *AllReq, token string) (string, error)
- func (g *GeTuiPush) PushBatchByAlias(ctx context.Context, request *BatchReq, token string) (map[string]map[string]string, error)
- func (g *GeTuiPush) PushBatchByCid(ctx context.Context, request *BatchReq, token string) (map[string]map[string]string, error)
- func (g *GeTuiPush) PushByFastCustomTag(ctx context.Context, request *ByTagReq, token string) (string, error)
- func (g *GeTuiPush) PushByTag(ctx context.Context, request *ByTagReq, token string) (string, error)
- func (g *GeTuiPush) PushListByAlias(ctx context.Context, request *ListReq, token string) (map[string]map[string]string, error)
- func (g *GeTuiPush) PushListByCid(ctx context.Context, request *ListReq, token string) (map[string]map[string]string, error)
- func (g *GeTuiPush) PushSingleByAlias(ctx context.Context, request *SingleReq, token string) (map[string]map[string]string, error)
- func (g *GeTuiPush) PushSingleByCid(ctx context.Context, request *SingleReq, token string) (map[string]map[string]string, error)
- func (g *GeTuiPush) QueryDetail(ctx context.Context, taskId, cId, token string) ([][2]string, error)
- func (g *GeTuiPush) QueryScheduleTask(ctx context.Context, taskId, token string) (map[string]string, error)
- func (g *GeTuiPush) StopPush(ctx context.Context, taskId, token string) (bool, error)
- type ListReq
- type Server
- func (s *Server) CheckTask(ctx context.Context, in *proto.CheckTaskReq) (*proto.CheckTaskResp, error)
- func (s *Server) Close()
- func (s *Server) CreateTask(ctx context.Context, in *proto.CreateTaskReq) (*proto.CreateTaskResp, error)
- func (s *Server) PushToApp(ctx context.Context, in *proto.PushToAppReq) (*proto.PushToAppResp, error)
- func (s *Server) PushToList(ctx context.Context, in *proto.PushToListReq) (*proto.PushToListResp, error)
- func (s *Server) PushToSingle(ctx context.Context, in *proto.PushToSingleReq) (*proto.PushToSingleResp, error)
- func (s *Server) RemoveTask(ctx context.Context, in *proto.RemoveTaskReq) (*proto.RemoveTaskResp, error)
- func (s *Server) StopTask(ctx context.Context, in *proto.StopTaskReq) (*proto.StopTaskResp, error)
- func (s *Server) ViewDetail(ctx context.Context, in *proto.ViewDetailReq) (*proto.ViewDetailResp, error)
- type SingleReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent interface { PushSingleByCid(ctx context.Context, request *SingleReq, token string) (map[string]map[string]string, error) PushSingleByAlias(ctx context.Context, request *SingleReq, token string) (map[string]map[string]string, error) PushBatchByCid(ctx context.Context, request *BatchReq, token string) (map[string]map[string]string, error) PushBatchByAlias(ctx context.Context, request *BatchReq, token string) (map[string]map[string]string, error) CreateMsg(ctx context.Context, request *CreateReq, token string) (string, error) PushListByCid(ctx context.Context, request *ListReq, token string) (map[string]map[string]string, error) PushListByAlias(ctx context.Context, request *ListReq, token string) (map[string]map[string]string, error) PushAll(ctx context.Context, request *AllReq, token string) (string, error) PushByTag(ctx context.Context, request *ByTagReq, token string) (string, error) PushByFastCustomTag(ctx context.Context, request *ByTagReq, token string) (string, error) StopPush(ctx context.Context, taskId, token string) (bool, error) DeleteScheduleTask(ctx context.Context, taskId, token string) (bool, error) QueryScheduleTask(ctx context.Context, taskId, token string) (map[string]string, error) QueryDetail(ctx context.Context, taskId, cId, token string) ([][2]string, error) Close() }
type AgentMgr ¶
type AgentMgr struct {
// contains filtered or unexported fields
}
func NewAgentMgr ¶
func (*AgentMgr) DeleteScheduleTask ¶
func (*AgentMgr) PushSingle ¶
func (*AgentMgr) QueryDetail ¶
func (*AgentMgr) QueryScheduleTask ¶
func (*AgentMgr) RegisterAgent ¶
type AllReq ¶
type AllReq struct { RequestId string `json:"request_id"` // 必须,请求唯一标识号,10-32位之间;如果request_id重复,会导致消息丢失 GroupName string `json:"group_name,omitempty"` // 非必须,任务组名 Audience string `json:"audience"` // 必须字段,必须为all Settings *proto.Settings `json:"settings,omitempty"` // 非必须,推送条件设置 PushMessage *proto.PushMessage `json:"push_message"` // 必须字段,个推推送消息参数 PushChannel *proto.PushChannel `json:"push_channel,omitempty"` // 非必须,厂商推送消息参数,包含ios消息参数,android厂商消息参数 }
type ApnsPush ¶
type ApnsPush struct {
// contains filtered or unexported fields
}
func (*ApnsPush) DeleteScheduleTask ¶
func (*ApnsPush) PushBatchByAlias ¶
func (*ApnsPush) PushBatchByCid ¶
func (*ApnsPush) PushByFastCustomTag ¶
func (*ApnsPush) PushListByAlias ¶
func (*ApnsPush) PushListByCid ¶
func (*ApnsPush) PushSingleByAlias ¶
func (*ApnsPush) PushSingleByCid ¶
func (*ApnsPush) QueryDetail ¶
func (*ApnsPush) QueryScheduleTask ¶
type ByTagReq ¶
type ByTagReq struct { RequestId string `json:"request_id"` // 必须,请求唯一标识号,10-32位之间;如果request_id重复,会导致消息丢失 GroupName string `json:"group_name,omitempty"` // 非必须,任务组名 Settings *proto.Settings `json:"settings,omitempty"` // 非必须,推送条件设置 Audience *proto.Audience `json:"audience"` // 必须字段,tag数组 PushMessage *proto.PushMessage `json:"push_message"` // 必须字段,个推推送消息参数 PushChannel *proto.PushChannel `json:"push_channel,omitempty"` // 非必须,厂商推送消息参数,包含ios消息参数,android厂商消息参数 }
type CreateReq ¶
type CreateReq struct { RequestId string `json:"request_id,omitempty"` // 非必须,请求唯一标识号,10-32位之间;如果request_id重复,会导致消息丢失 GroupName string `json:"group_name,omitempty"` // 非必须,任务组名 Settings *proto.Settings `json:"settings,omitempty"` // 非必须,推送条件设置 PushMessage *proto.PushMessage `json:"push_message"` // 必须字段,个推推送消息参数 PushChannel *proto.PushChannel `json:"push_channel,omitempty"` // 非必须,厂商推送消息参数,包含ios消息参数,android厂商消息参数 }
type GeTuiPush ¶
type GeTuiPush struct {
// contains filtered or unexported fields
}
func (*GeTuiPush) DeleteScheduleTask ¶
func (*GeTuiPush) PushBatchByAlias ¶
func (*GeTuiPush) PushBatchByCid ¶
func (*GeTuiPush) PushByFastCustomTag ¶
func (*GeTuiPush) PushListByAlias ¶
func (*GeTuiPush) PushListByCid ¶
func (*GeTuiPush) PushSingleByAlias ¶
func (*GeTuiPush) PushSingleByCid ¶
func (*GeTuiPush) QueryDetail ¶
func (*GeTuiPush) QueryScheduleTask ¶
type Server ¶
type Server struct { *proto.UnimplementedPushServer // contains filtered or unexported fields }
func (*Server) CheckTask ¶
func (s *Server) CheckTask(ctx context.Context, in *proto.CheckTaskReq) (*proto.CheckTaskResp, error)
func (*Server) CreateTask ¶
func (s *Server) CreateTask(ctx context.Context, in *proto.CreateTaskReq) (*proto.CreateTaskResp, error)
func (*Server) PushToApp ¶
func (s *Server) PushToApp(ctx context.Context, in *proto.PushToAppReq) (*proto.PushToAppResp, error)
func (*Server) PushToList ¶
func (s *Server) PushToList(ctx context.Context, in *proto.PushToListReq) (*proto.PushToListResp, error)
func (*Server) PushToSingle ¶
func (s *Server) PushToSingle(ctx context.Context, in *proto.PushToSingleReq) (*proto.PushToSingleResp, error)
func (*Server) RemoveTask ¶
func (s *Server) RemoveTask(ctx context.Context, in *proto.RemoveTaskReq) (*proto.RemoveTaskResp, error)
func (*Server) StopTask ¶
func (s *Server) StopTask(ctx context.Context, in *proto.StopTaskReq) (*proto.StopTaskResp, error)
func (*Server) ViewDetail ¶
func (s *Server) ViewDetail(ctx context.Context, in *proto.ViewDetailReq) (*proto.ViewDetailResp, error)
type SingleReq ¶
type SingleReq struct { RequestId string `json:"request_id"` // 必须字段,请求唯一标识号,10-32位之间;如果request_id重复,会导致消息丢失 Audience *proto.Audience `json:"audience"` // 必须字段,cid数组,只能填一个cid Settings *proto.Settings `json:"settings,omitempty"` // 非必须,推送条件设置 PushMessage *proto.PushMessage `json:"push_message"` // 必须字段,个推推送消息参数 PushChannel *proto.PushChannel `json:"push_channel,omitempty"` // 非必须,厂商推送消息参数,包含ios消息参数,android厂商消息参数 }
Click to show internal directories.
Click to hide internal directories.