Documentation ¶
Index ¶
- func NewSendGrid(logger logger.Logger) bindings.OutputBinding
- func UnmarshalDynamicTemplateData(jsonString string, result *map[string]any) error
- type SendGrid
- func (sg *SendGrid) GetComponentMetadata() (metadataInfo metadata.MetadataMap)
- func (sg *SendGrid) Init(_ context.Context, metadata bindings.Metadata) error
- func (sg *SendGrid) Invoke(ctx context.Context, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
- func (sg *SendGrid) Operations() []bindings.OperationKind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSendGrid ¶
func NewSendGrid(logger logger.Logger) bindings.OutputBinding
NewSendGrid returns a new SendGrid bindings instance.
Types ¶
type SendGrid ¶
type SendGrid struct {
// contains filtered or unexported fields
}
SendGrid allows sending of emails using the 3rd party SendGrid service.
func (*SendGrid) GetComponentMetadata ¶ added in v1.11.0
func (sg *SendGrid) GetComponentMetadata() (metadataInfo metadata.MetadataMap)
GetComponentMetadata returns the metadata of the component.
func (*SendGrid) Invoke ¶
func (sg *SendGrid) Invoke(ctx context.Context, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
Write does the work of sending message to SendGrid API.
func (*SendGrid) Operations ¶
func (sg *SendGrid) Operations() []bindings.OperationKind
Click to show internal directories.
Click to hide internal directories.