Documentation
¶
Index ¶
- type Agent
- type AgentMgr
- func (m *AgentMgr) AddBlackList(ctx context.Context, uniqueId core.UniqueId, cidList []string, token string) error
- func (m *AgentMgr) BindAlias(ctx context.Context, uniqueId core.UniqueId, list *AliasList, token string) error
- func (m *AgentMgr) BindTagWithUser(ctx context.Context, uniqueId core.UniqueId, tag string, list *CidList, ...) (map[string]bool, error)
- func (m *AgentMgr) BindUserWithTag(ctx context.Context, uniqueId core.UniqueId, cid string, list *CustomTagList, ...) error
- func (m *AgentMgr) Close()
- func (m *AgentMgr) DelBlackList(ctx context.Context, uniqueId core.UniqueId, cidList []string, token string) error
- func (m *AgentMgr) ManageCidAndDeviceToken(ctx context.Context, uniqueId core.UniqueId, manufacturer string, ...) ([]*DTError, error)
- func (m *AgentMgr) QueryAliasByCid(ctx context.Context, uniqueId core.UniqueId, cid string, token string) (string, error)
- func (m *AgentMgr) QueryCidByAlias(ctx context.Context, uniqueId core.UniqueId, alias string, token string) ([]string, error)
- func (m *AgentMgr) QueryDeviceStatus(ctx context.Context, uniqueId core.UniqueId, cidList []string, token string) (map[string]map[string]string, error)
- func (m *AgentMgr) QueryUserCount(ctx context.Context, uniqueId core.UniqueId, list *ComplexTagList, ...) (int, error)
- func (m *AgentMgr) QueryUserInfo(ctx context.Context, uniqueId core.UniqueId, cidList []string, token string) ([]string, map[string]map[string]string, error)
- func (m *AgentMgr) QueryUserStatus(ctx context.Context, uniqueId core.UniqueId, cidList []string, token string) (map[string]map[string]string, error)
- func (m *AgentMgr) QueryUserTag(ctx context.Context, uniqueId core.UniqueId, cid string, token string) ([]string, error)
- func (m *AgentMgr) RegisterAgent(uniqueId core.UniqueId, agent Agent) error
- func (m *AgentMgr) RevokeAlias(ctx context.Context, uniqueId core.UniqueId, alias string, token string) error
- func (m *AgentMgr) SetPushBadge(ctx context.Context, uniqueId core.UniqueId, cidList []string, op *Operation, ...) error
- func (m *AgentMgr) UnbindAlias(ctx context.Context, uniqueId core.UniqueId, list *AliasList, token string) error
- func (m *AgentMgr) UnbindTagFromUser(ctx context.Context, uniqueId core.UniqueId, tag string, list *CidList, ...) (map[string]bool, error)
- type AliasList
- type CidAndDeviceTokenList
- type CidList
- type ComplexTagList
- type CustomTagList
- type DT
- type DTError
- type DataList
- type GeTuiUser
- func (g *GeTuiUser) AddBlackList(ctx context.Context, cidList []string, token string) error
- func (g *GeTuiUser) BindAlias(ctx context.Context, list *AliasList, token string) error
- func (g *GeTuiUser) BindTagWithUser(ctx context.Context, tag string, list *CidList, token string) (map[string]bool, error)
- func (g *GeTuiUser) BindUserWithTag(ctx context.Context, cid string, list *CustomTagList, token string) error
- func (g *GeTuiUser) Close()
- func (g *GeTuiUser) DelBlackList(ctx context.Context, cidList []string, token string) error
- func (g *GeTuiUser) ManageCidAndDeviceToken(ctx context.Context, manufacturer string, dtList *CidAndDeviceTokenList, ...) ([]*DTError, error)
- func (g *GeTuiUser) QueryAliasByCid(ctx context.Context, cid string, token string) (string, error)
- func (g *GeTuiUser) QueryCidByAlias(ctx context.Context, alias string, token string) ([]string, error)
- func (g *GeTuiUser) QueryDeviceStatus(ctx context.Context, cidList []string, token string) (map[string]map[string]string, error)
- func (g *GeTuiUser) QueryUserCount(ctx context.Context, list *ComplexTagList, token string) (int, error)
- func (g *GeTuiUser) QueryUserInfo(ctx context.Context, cidList []string, token string) ([]string, map[string]map[string]string, error)
- func (g *GeTuiUser) QueryUserStatus(ctx context.Context, cidList []string, token string) (map[string]map[string]string, error)
- func (g *GeTuiUser) QueryUserTag(ctx context.Context, cid string, token string) ([]string, error)
- func (g *GeTuiUser) RevokeAlias(ctx context.Context, alias string, token string) error
- func (g *GeTuiUser) SetPushBadge(ctx context.Context, cidList []string, op *Operation, token string) error
- func (g *GeTuiUser) UnbindAlias(ctx context.Context, list *AliasList, token string) error
- func (g *GeTuiUser) UnbindTagFromUser(ctx context.Context, tag string, list *CidList, token string) (map[string]bool, error)
- type Operation
- type Server
- func (s *Server) AddBlackList(ctx context.Context, in *proto.AddBlackListReq) (*proto.AddBlackListResp, error)
- func (s *Server) BindAlias(ctx context.Context, in *proto.BindAliasReq) (*proto.BindAliasResp, error)
- func (s *Server) BindTagWithUser(ctx context.Context, in *proto.BindTagWithUserReq) (*proto.BindTagWithUserResp, error)
- func (s *Server) BindUserWithTag(ctx context.Context, in *proto.BindUserWithTagReq) (*proto.BindUserWithTagResp, error)
- func (s *Server) Close() error
- func (s *Server) DelBlackList(ctx context.Context, in *proto.DelBlackListReq) (*proto.DelBlackListResp, error)
- func (s *Server) ManageCidAndDeviceToken(ctx context.Context, in *proto.ManageCidAndDeviceTokenReq) (*proto.ManageCidAndDeviceTokenResp, error)
- func (s *Server) QueryAliasByCid(ctx context.Context, in *proto.QueryAliasReq) (*proto.QueryAliasResp, error)
- func (s *Server) QueryCidByAlias(ctx context.Context, in *proto.QueryCidReq) (*proto.QueryCidResp, error)
- func (s *Server) QueryDeviceStatus(ctx context.Context, in *proto.QueryDeviceStatusReq) (*proto.QueryDeviceStatusResp, error)
- func (s *Server) QueryUserCount(ctx context.Context, in *proto.QueryUserCountReq) (*proto.QueryUserCountResp, error)
- func (s *Server) QueryUserInfo(ctx context.Context, in *proto.QueryUserInfoReq) (*proto.QueryUserInfoResp, error)
- func (s *Server) QueryUserStatus(ctx context.Context, in *proto.QueryUserStatusReq) (*proto.QueryUserStatusResp, error)
- func (s *Server) QueryUserTag(ctx context.Context, in *proto.QueryUserTagReq) (*proto.QueryUserTagResp, error)
- func (s *Server) RevokeAlias(ctx context.Context, in *proto.RevokeAliasReq) (*proto.RevokeAliasResp, error)
- func (s *Server) SetPushBadge(ctx context.Context, in *proto.SetPushBadgeReq) (*proto.SetPushBadgeResp, error)
- func (s *Server) UnbindAlias(ctx context.Context, in *proto.UnbindAliasReq) (*proto.UnbindAliasResp, error)
- func (s *Server) UnbindTagFromUser(ctx context.Context, in *proto.UnbindTagFromUserReq) (*proto.UnbindTagFromUserResp, error)
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent interface { BindAlias(ctx context.Context, list *AliasList, token string) error QueryAliasByCid(ctx context.Context, cid string, token string) (string, error) QueryCidByAlias(ctx context.Context, alias string, token string) ([]string, error) UnbindAlias(ctx context.Context, list *AliasList, token string) error RevokeAlias(ctx context.Context, alias string, token string) error BindUserWithTag(ctx context.Context, cid string, list *CustomTagList, token string) error BindTagWithUser(ctx context.Context, tag string, list *CidList, token string) (map[string]bool, error) UnbindTagFromUser(ctx context.Context, tag string, list *CidList, token string) (map[string]bool, error) QueryUserTag(ctx context.Context, cid string, token string) ([]string, error) AddBlackList(ctx context.Context, cidList []string, token string) error DelBlackList(ctx context.Context, cidList []string, token string) error QueryUserStatus(ctx context.Context, cidList []string, token string) (map[string]map[string]string, error) QueryDeviceStatus(ctx context.Context, cidList []string, token string) (map[string]map[string]string, error) QueryUserInfo(ctx context.Context, cidList []string, token string) ([]string, map[string]map[string]string, error) SetPushBadge(ctx context.Context, cidList []string, op *Operation, token string) error QueryUserCount(ctx context.Context, list *ComplexTagList, token string) (int, error) ManageCidAndDeviceToken(ctx context.Context, manufacturer string, dtList *CidAndDeviceTokenList, token string) ([]*DTError, error) Close() }
type AgentMgr ¶
type AgentMgr struct {
// contains filtered or unexported fields
}
func NewUserMgr ¶
func (*AgentMgr) AddBlackList ¶
func (*AgentMgr) BindTagWithUser ¶
func (*AgentMgr) BindUserWithTag ¶
func (*AgentMgr) DelBlackList ¶
func (*AgentMgr) ManageCidAndDeviceToken ¶
func (*AgentMgr) QueryAliasByCid ¶
func (*AgentMgr) QueryCidByAlias ¶
func (*AgentMgr) QueryDeviceStatus ¶
func (*AgentMgr) QueryUserCount ¶
func (*AgentMgr) QueryUserInfo ¶
func (*AgentMgr) QueryUserStatus ¶
func (*AgentMgr) QueryUserTag ¶
func (*AgentMgr) RegisterAgent ¶
func (*AgentMgr) RevokeAlias ¶
func (*AgentMgr) SetPushBadge ¶
func (*AgentMgr) UnbindAlias ¶
type CidAndDeviceTokenList ¶
type CidAndDeviceTokenList struct {
DTList []*DT `json:"dt_list"`
}
type ComplexTagList ¶
type ComplexTagList struct {
Tag []*Tag `json:"tag"`
}
type CustomTagList ¶
type CustomTagList struct {
TagList []string `json:"custom_tag"`
}
type GeTuiUser ¶
type GeTuiUser struct {
// contains filtered or unexported fields
}
func (*GeTuiUser) AddBlackList ¶
func (*GeTuiUser) BindTagWithUser ¶
func (*GeTuiUser) BindUserWithTag ¶
func (*GeTuiUser) DelBlackList ¶
func (*GeTuiUser) ManageCidAndDeviceToken ¶
func (*GeTuiUser) QueryAliasByCid ¶
func (*GeTuiUser) QueryCidByAlias ¶
func (*GeTuiUser) QueryDeviceStatus ¶
func (*GeTuiUser) QueryUserCount ¶
func (*GeTuiUser) QueryUserInfo ¶
func (*GeTuiUser) QueryUserStatus ¶
func (*GeTuiUser) QueryUserTag ¶
func (*GeTuiUser) RevokeAlias ¶
func (*GeTuiUser) SetPushBadge ¶
func (*GeTuiUser) UnbindAlias ¶
type Server ¶
type Server struct { *proto.UnimplementedUserServer // contains filtered or unexported fields }
func (*Server) AddBlackList ¶
func (s *Server) AddBlackList(ctx context.Context, in *proto.AddBlackListReq) (*proto.AddBlackListResp, error)
func (*Server) BindAlias ¶
func (s *Server) BindAlias(ctx context.Context, in *proto.BindAliasReq) (*proto.BindAliasResp, error)
func (*Server) BindTagWithUser ¶
func (s *Server) BindTagWithUser(ctx context.Context, in *proto.BindTagWithUserReq) (*proto.BindTagWithUserResp, error)
func (*Server) BindUserWithTag ¶
func (s *Server) BindUserWithTag(ctx context.Context, in *proto.BindUserWithTagReq) (*proto.BindUserWithTagResp, error)
func (*Server) DelBlackList ¶
func (s *Server) DelBlackList(ctx context.Context, in *proto.DelBlackListReq) (*proto.DelBlackListResp, error)
func (*Server) ManageCidAndDeviceToken ¶
func (s *Server) ManageCidAndDeviceToken(ctx context.Context, in *proto.ManageCidAndDeviceTokenReq) (*proto.ManageCidAndDeviceTokenResp, error)
func (*Server) QueryAliasByCid ¶
func (s *Server) QueryAliasByCid(ctx context.Context, in *proto.QueryAliasReq) (*proto.QueryAliasResp, error)
func (*Server) QueryCidByAlias ¶
func (s *Server) QueryCidByAlias(ctx context.Context, in *proto.QueryCidReq) (*proto.QueryCidResp, error)
func (*Server) QueryDeviceStatus ¶
func (s *Server) QueryDeviceStatus(ctx context.Context, in *proto.QueryDeviceStatusReq) (*proto.QueryDeviceStatusResp, error)
func (*Server) QueryUserCount ¶
func (s *Server) QueryUserCount(ctx context.Context, in *proto.QueryUserCountReq) (*proto.QueryUserCountResp, error)
func (*Server) QueryUserInfo ¶
func (s *Server) QueryUserInfo(ctx context.Context, in *proto.QueryUserInfoReq) (*proto.QueryUserInfoResp, error)
func (*Server) QueryUserStatus ¶
func (s *Server) QueryUserStatus(ctx context.Context, in *proto.QueryUserStatusReq) (*proto.QueryUserStatusResp, error)
func (*Server) QueryUserTag ¶
func (s *Server) QueryUserTag(ctx context.Context, in *proto.QueryUserTagReq) (*proto.QueryUserTagResp, error)
func (*Server) RevokeAlias ¶
func (s *Server) RevokeAlias(ctx context.Context, in *proto.RevokeAliasReq) (*proto.RevokeAliasResp, error)
func (*Server) SetPushBadge ¶
func (s *Server) SetPushBadge(ctx context.Context, in *proto.SetPushBadgeReq) (*proto.SetPushBadgeResp, error)
func (*Server) UnbindAlias ¶
func (s *Server) UnbindAlias(ctx context.Context, in *proto.UnbindAliasReq) (*proto.UnbindAliasResp, error)
func (*Server) UnbindTagFromUser ¶
func (s *Server) UnbindTagFromUser(ctx context.Context, in *proto.UnbindTagFromUserReq) (*proto.UnbindTagFromUserResp, error)
Click to show internal directories.
Click to hide internal directories.