Documentation
¶
Index ¶
- Constants
- func CreateTopic(ctx context.Context, logger log.Logger, client Client, topicName string) (string, error)
- func GetTopicName(config cfg.Config, topicSettings TopicNameSettingsAware) (string, error)
- func IsValidAttributeName(name string) bool
- func NewClient(ctx context.Context, config cfg.Config, logger log.Logger, name string, ...) (*sns.Client, error)
- func NewLifecycleManager(settings *TopicSettings, topicArn *string) reslife.LifeCycleerFactory
- func NewTopic(ctx context.Context, config cfg.Config, logger log.Logger, ...) (*snsTopic, error)
- func NewTopicWithInterfaces(logger log.Logger, client Client, topicArn string) *snsTopic
- func ProvideClient(ctx context.Context, config cfg.Config, logger log.Logger, name string, ...) (*sns.Client, error)
- type Client
- type ClientConfig
- type ClientOption
- type ClientSettings
- type LifecycleManager
- type Message
- type Service
- type Topic
- type TopicMetadata
- type TopicNameSettings
- type TopicNameSettingsAware
- type TopicNamingSettings
- type TopicSettings
Constants ¶
View Source
const ( MaxBatchSize = 10 MetadataKeyTopics = "cloud.aws.sns.topics" )
Variables ¶
This section is empty.
Functions ¶
func CreateTopic ¶
func GetTopicName ¶
func GetTopicName(config cfg.Config, topicSettings TopicNameSettingsAware) (string, error)
func IsValidAttributeName ¶
func NewLifecycleManager ¶ added in v0.37.0
func NewLifecycleManager(settings *TopicSettings, topicArn *string) reslife.LifeCycleerFactory
func NewTopicWithInterfaces ¶
Types ¶
type Client ¶
type Client interface {
CreateTopic(ctx context.Context, params *sns.CreateTopicInput, optFns ...func(options *sns.Options)) (*sns.CreateTopicOutput, error)
GetSubscriptionAttributes(ctx context.Context, params *sns.GetSubscriptionAttributesInput, optFns ...func(*sns.Options)) (*sns.GetSubscriptionAttributesOutput, error)
GetTopicAttributes(ctx context.Context, params *sns.GetTopicAttributesInput, optFns ...func(options *sns.Options)) (*sns.GetTopicAttributesOutput, error)
ListSubscriptionsByTopic(ctx context.Context, params *sns.ListSubscriptionsByTopicInput, optFns ...func(*sns.Options)) (*sns.ListSubscriptionsByTopicOutput, error)
ListTopics(ctx context.Context, params *sns.ListTopicsInput, optFns ...func(options *sns.Options)) (*sns.ListTopicsOutput, error)
Publish(ctx context.Context, params *sns.PublishInput, optFns ...func(options *sns.Options)) (*sns.PublishOutput, error)
PublishBatch(ctx context.Context, input *sns.PublishBatchInput, optFns ...func(options *sns.Options)) (*sns.PublishBatchOutput, error)
Subscribe(ctx context.Context, params *sns.SubscribeInput, optFns ...func(options *sns.Options)) (*sns.SubscribeOutput, error)
Unsubscribe(ctx context.Context, params *sns.UnsubscribeInput, optFns ...func(*sns.Options)) (*sns.UnsubscribeOutput, error)
}
type ClientConfig ¶
type ClientConfig struct {
Settings ClientSettings
LoadOptions []func(options *awsCfg.LoadOptions) error
}
func (ClientConfig) GetLoadOptions ¶
func (c ClientConfig) GetLoadOptions() []func(options *awsCfg.LoadOptions) error
func (ClientConfig) GetRetryOptions ¶
func (c ClientConfig) GetRetryOptions() []func(*retry.StandardOptions)
func (ClientConfig) GetSettings ¶
func (c ClientConfig) GetSettings() gosoAws.ClientSettings
type ClientOption ¶
type ClientOption func(cfg *ClientConfig)
type ClientSettings ¶
type ClientSettings struct {
gosoAws.ClientSettings
}
type LifecycleManager ¶ added in v0.37.0
type LifecycleManager interface {
reslife.LifeCycleer
reslife.Creator
reslife.Initializer
reslife.Registerer
}
type Service ¶ added in v0.37.0
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶ added in v0.37.0
func NewServiceWithInterfaces ¶ added in v0.37.0
func (*Service) CreateTopic ¶ added in v0.37.0
type TopicMetadata ¶ added in v0.15.0
type TopicNameSettings ¶
func (TopicNameSettings) GetClientName ¶
func (s TopicNameSettings) GetClientName() string
func (TopicNameSettings) GetIdentity ¶ added in v0.56.0
func (s TopicNameSettings) GetIdentity() cfg.Identity
func (TopicNameSettings) GetTopicId ¶
func (s TopicNameSettings) GetTopicId() string
type TopicNameSettingsAware ¶
type TopicNamingSettings ¶
type TopicSettings ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.