Documentation ¶
Index ¶
- Constants
- type RegisterClient
- func (r *RegisterClient) GetHUAWEIClient() (client setting.PushClientInterface, err error)
- func (r *RegisterClient) GetIosCertClient() (client setting.PushClientInterface, err error)
- func (r *RegisterClient) GetIosTokenClient() (client setting.PushClientInterface, err error)
- func (r *RegisterClient) GetMEIZUClient() (client setting.PushClientInterface, err error)
- func (r *RegisterClient) GetOPPOClient() (client setting.PushClientInterface, err error)
- func (r *RegisterClient) GetPlatformClient(platform setting.PlatformType) (setting.PushClientInterface, error)
- func (r *RegisterClient) GetVIVOClient() (client setting.PushClientInterface, err error)
- func (r *RegisterClient) GetXIAOMIClient() (client setting.PushClientInterface, err error)
Constants ¶
View Source
const (
//DefaultConfFile 推荐的配置文件存放路径
DefaultConfFile = "/usr/local/etc/go-push-sdk/setting.json"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RegisterClient ¶
type RegisterClient struct {
// contains filtered or unexported fields
}
RegisterClient 厂商客户端连接
func NewRegisterClient ¶
func NewRegisterClient(configFilePath string) (*RegisterClient, error)
func NewRegisterClientMap ¶ added in v1.1.2
func NewRegisterClientMap(configMap map[string]map[string]string) (*RegisterClient, error)
func NewRegisterClientWithConf ¶
func NewRegisterClientWithConf(cfgJson string, platformType setting.PlatformType) (*RegisterClient, error)
func (*RegisterClient) GetHUAWEIClient ¶
func (r *RegisterClient) GetHUAWEIClient() (client setting.PushClientInterface, err error)
func (*RegisterClient) GetIosCertClient ¶
func (r *RegisterClient) GetIosCertClient() (client setting.PushClientInterface, err error)
func (*RegisterClient) GetIosTokenClient ¶
func (r *RegisterClient) GetIosTokenClient() (client setting.PushClientInterface, err error)
func (*RegisterClient) GetMEIZUClient ¶
func (r *RegisterClient) GetMEIZUClient() (client setting.PushClientInterface, err error)
func (*RegisterClient) GetOPPOClient ¶
func (r *RegisterClient) GetOPPOClient() (client setting.PushClientInterface, err error)
func (*RegisterClient) GetPlatformClient ¶
func (r *RegisterClient) GetPlatformClient(platform setting.PlatformType) (setting.PushClientInterface, error)
func (*RegisterClient) GetVIVOClient ¶
func (r *RegisterClient) GetVIVOClient() (client setting.PushClientInterface, err error)
func (*RegisterClient) GetXIAOMIClient ¶
func (r *RegisterClient) GetXIAOMIClient() (client setting.PushClientInterface, err error)
Click to show internal directories.
Click to hide internal directories.