sns

package
v1.6.55 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KarmaFCMSNS

type KarmaFCMSNS struct {
	Client         *sns.Client
	ApplicationArn string
}

func NewFCM

func NewFCM(arn ...string) *KarmaFCMSNS

func (*KarmaFCMSNS) CreateApplicationPlatformEndpoint

func (k *KarmaFCMSNS) CreateApplicationPlatformEndpoint(user_data, token string) (string, error)

func (*KarmaFCMSNS) DeleteApplicationPlatformEndpoint

func (k *KarmaFCMSNS) DeleteApplicationPlatformEndpoint(endpoint_arn string) error

func (*KarmaFCMSNS) GetEndpointARNByUserData

func (k *KarmaFCMSNS) GetEndpointARNByUserData(user_data string) string

func (*KarmaFCMSNS) GetEndpointAttributes

func (k *KarmaFCMSNS) GetEndpointAttributes(endpoint_arn string)

func (*KarmaFCMSNS) ListAllEndpointARNs added in v1.6.55

func (k *KarmaFCMSNS) ListAllEndpointARNs() []string

func (*KarmaFCMSNS) PublishGCMMessage

func (k *KarmaFCMSNS) PublishGCMMessage(user_data, message string) error

func (*KarmaFCMSNS) PublishGCMMessageToAllEndpoints added in v1.6.55

func (k *KarmaFCMSNS) PublishGCMMessageToAllEndpoints(message string) error

func (*KarmaFCMSNS) PublishGCMMessageWithArn added in v1.6.54

func (k *KarmaFCMSNS) PublishGCMMessageWithArn(endpoint_arn, message string) error

type KarmaSNS

type KarmaSNS struct {
	Client *sns.Client
}

func New

func New() *KarmaSNS

func (*KarmaSNS) CreateTopic

func (k *KarmaSNS) CreateTopic(topicName string) string

func (*KarmaSNS) DeleteTopic

func (k *KarmaSNS) DeleteTopic(topicArn string)

func (*KarmaSNS) GetAllTopic

func (k *KarmaSNS) GetAllTopic() []string

func (*KarmaSNS) PublishToTopic

func (k *KarmaSNS) PublishToTopic(topicArn, message string)

func (*KarmaSNS) SubscribeToTopic

func (k *KarmaSNS) SubscribeToTopic(topicArn, protocol, endpoint string) string

func (*KarmaSNS) UnsubscribeFromTopic

func (k *KarmaSNS) UnsubscribeFromTopic(subscriptionArn string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL