Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPushClient ¶
func NewPushClient(conf *setting.ConfigIosCert) (setting.PushClientInterface, error)
Types ¶
type PushClient ¶
type PushClient struct {
// contains filtered or unexported fields
}
func (*PushClient) GetAccessToken ¶
func (p *PushClient) GetAccessToken(ctx context.Context) (interface{}, error)
func (*PushClient) PushNotice ¶
func (p *PushClient) PushNotice(ctx context.Context, pushRequest *setting.PushMessageRequest) (interface{}, error)
func (*PushClient) TopicFromCert ¶ added in v1.2.4
func (p *PushClient) TopicFromCert(cert tls.Certificate) string
TopicFromCert extracts topic from a certificate's common name.
Click to show internal directories.
Click to hide internal directories.