Пример #1
0
Файл: lmk.go Проект: ryansb/lmk
func PublishMessage(msgOpts *sns.PublishOpt) {
	var conn *sns.SNS = sns.New(aws.Auth{AccessKeyId, AccessSecret}, aws.USEast)
	_, err := conn.Publish(msgOpts)
	if err != nil {
		fmt.Println(err)
		os.Exit(1)
	}
}
Пример #2
0
func (s *S) SetUpSuite(c *C) {
	s.HTTPSuite.SetUpSuite(c)
	auth := aws.Auth{"abc", "123"}
	s.sns = sns.New(auth, aws.Region{SNSEndpoint: testServer.URL})
}