Documentation
¶
Index ¶
- func CreateEventWrapper(eventType string) *event.Event
- func FmtDuration(d time.Duration) string
- func SendEmail(subject string, body string, recipients []string) error
- func SetEmailSender(es EmailSender)
- func SetSnsEmailSender(awsSession *session.Session, snsEventTopicARN string, ...)
- func ToEmailEvent(sender *string, recipients []string, subject *string, emailBody *string) *emailevent.EmailEvent
- type EmailSender
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEventWrapper ¶
CreateEventWrapper creates a new event with the specified event type
func FmtDuration ¶
FmtDuration is a helper function to format a duration in the HH:MM:SS.sss format
func SetEmailSender ¶ added in v1.0.8
func SetEmailSender(es EmailSender)
SetEmailSender sets up default email sender
func SetSnsEmailSender ¶ added in v1.0.8
func SetSnsEmailSender(awsSession *session.Session, snsEventTopicARN string, senderEmailAddress string)
SetSnsEmailSender set sns as mechanism to send email
func ToEmailEvent ¶
func ToEmailEvent(sender *string, recipients []string, subject *string, emailBody *string) *emailevent.EmailEvent
ToEmailEvent converts an organization model into a create org event model
Types ¶
type EmailSender ¶ added in v1.0.8
EmailSender contains method to send email
type Service ¶ added in v1.0.8
type Service interface {
}
Service interface defines methods of event service
func NewService ¶ added in v1.0.8
func NewService() Service
NewService creates new instance of event service
Click to show internal directories.
Click to hide internal directories.