Documentation ¶
Index ¶
- type APIClient
- type GoogleGroup
- type SendClient
- type SendError
- type Sender
- func (s *Sender) Send(body, subject string) error
- func (s *Sender) SetAPIClient(client APIClient)
- func (s *Sender) SetDefaultSender() error
- func (s *Sender) SetGoogleGroupRecipients(groups ...GoogleGroup) error
- func (s *Sender) SetRecipients(recipientArgs ...string) error
- func (s *Sender) SetSendClient(client SendClient)
- func (s *Sender) SetSender(name, email string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleGroup ¶
type GoogleGroup string
GoogleGroup is a simple google group representation
const ( KubernetesAnnounceGoogleGroup GoogleGroup = "kubernetes-announce" KubernetesDevGoogleGroup GoogleGroup = "kubernetes-dev" KubernetesAnnounceTestGoogleGroup GoogleGroup = "kubernetes-announce-test" )
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
func (*Sender) SetAPIClient ¶
SetSendClient can be used to set the sendgrid API client
func (*Sender) SetDefaultSender ¶
func (*Sender) SetGoogleGroupRecipients ¶
func (s *Sender) SetGoogleGroupRecipients(groups ...GoogleGroup) error
SetGoogleGroupRecipient can be used to set multiple Google Groups as recipient
func (*Sender) SetRecipients ¶
func (*Sender) SetSendClient ¶
func (s *Sender) SetSendClient(client SendClient)
SetSendClient can be used to set the sendgrid sender client
Click to show internal directories.
Click to hide internal directories.