Documentation ¶
Index ¶
- type Client
- func (client *Client) ActivateTemplateVersion(templateId, versionId string) (*TemplateVersion, error)
- func (client *Client) CreateTemplate(template *Template) (*Template, error)
- func (client *Client) CreateTemplateVersion(version *TemplateVersion) (*TemplateVersion, error)
- func (client *Client) DeleteTemplate(id string) error
- func (client *Client) DeleteTemplateVersion(templateId, versionId string) error
- func (client *Client) GetAllTemplates() (bool, error)
- func (client *Client) GetBody(reqbody interface{}) ([]byte, error)
- func (client *Client) GetTemplate(id string) (*Template, error)
- func (client *Client) GetTemplateVersion(templateId, versionId string) (*TemplateVersion, error)
- func (client *Client) UpdateTemplate(id string, template *Template) error
- func (client *Client) UpdateTemplateVersion(id string, version *TemplateVersion) error
- func (client *Client) Validate() (bool, error)
- type Template
- type TemplateVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the object that handles talking to the Datadog API. This maintains state information for a particular application connection.
func NewClient ¶
NewClient returns a new datadog.Client which can be used to access the API methods. The expected argument is the API key.
func (*Client) ActivateTemplateVersion ¶
func (client *Client) ActivateTemplateVersion(templateId, versionId string) (*TemplateVersion, error)
func (*Client) CreateTemplate ¶
func (*Client) CreateTemplateVersion ¶
func (client *Client) CreateTemplateVersion(version *TemplateVersion) (*TemplateVersion, error)
func (*Client) DeleteTemplate ¶
func (*Client) DeleteTemplateVersion ¶
func (*Client) GetAllTemplates ¶
func (*Client) GetTemplateVersion ¶
func (client *Client) GetTemplateVersion(templateId, versionId string) (*TemplateVersion, error)
func (*Client) UpdateTemplate ¶
func (*Client) UpdateTemplateVersion ¶
func (client *Client) UpdateTemplateVersion(id string, version *TemplateVersion) error
type Template ¶
type Template struct { Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` Generation string `json:"generation,omitempty"` Versions []TemplateVersion `json:"versions,omitempty"` }
Sendgrid Template
type TemplateVersion ¶
type TemplateVersion struct { Id string `json:"id,omitempty"` TemplateId string `json:"template_id,omitempty"` Name string `json:"name,omitempty"` Subject string `json:"subject,omitempty"` HtmlContent string `json:"html_content,omitempty"` PlainContent string `json:"plain_content,omitempty"` Active int `json:"active,omitempty"` }
Sendgrid Template Version
Click to show internal directories.
Click to hide internal directories.