Documentation
¶
Overview ¶
Package resendtest provides an OpenAPI-derived, protocol-level test server for the Resend HTTP API.
Every operation can be replaced with a typed function. Unconfigured operations return a Resend-shaped 501 Not Implemented response.
Package resendtest provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Index ¶
- Constants
- func GetSpec() (swagger *openapi3.T, err error)
- func GetSpecJSON() ([]byte, error)
- func GetSwagger() (*openapi3.T, error)deprecated
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type APIKey
- type AddContactToSegment200JSONResponse
- type AddContactToSegmentRequestObject
- type AddContactToSegmentResponseFunc
- type AddContactToSegmentResponseObject
- type AddContactToSegmentResponseSuccess
- type AddContactToSegmentdefaultJSONResponse
- type Attachment
- type Call
- type CallLog
- func (l *CallLog[Request, Response]) All() []Call[Request, Response]
- func (l *CallLog[Request, Response]) Count() int
- func (l *CallLog[Request, Response]) Last() (Call[Request, Response], bool)
- func (l *CallLog[Request, Response]) Reset()
- func (l *CallLog[Request, Response]) Wait(ctx context.Context) (Call[Request, Response], error)
- func (l *CallLog[Request, Response]) WaitForCount(ctx context.Context, count int) ([]Call[Request, Response], error)
- type Calls
- type CancelEmail200JSONResponse
- type CancelEmailRequestObject
- type CancelEmailResponseFunc
- type CancelEmailResponseObject
- type CancelEmaildefaultJSONResponse
- type CreateAPIKey201JSONResponse
- type CreateAPIKeyJSONRequestBody
- type CreateAPIKeyRequest
- type CreateAPIKeyRequestObject
- type CreateAPIKeyRequestPermission
- type CreateAPIKeyResponse
- type CreateAPIKeyResponseFunc
- type CreateAPIKeyResponseObject
- type CreateAPIKeydefaultJSONResponse
- type CreateAudience201JSONResponse
- type CreateAudienceJSONRequestBodydeprecated
- type CreateAudienceOptionsdeprecated
- type CreateAudienceRequestObject
- type CreateAudienceResponseFunc
- type CreateAudienceResponseObject
- type CreateAudienceResponseSuccessdeprecated
- type CreateAudiencedefaultJSONResponse
- type CreateBatchEmailsResponse
- type CreateBroadcast201JSONResponse
- type CreateBroadcastJSONRequestBody
- type CreateBroadcastOptions
- type CreateBroadcastRequestObject
- type CreateBroadcastResponseFunc
- type CreateBroadcastResponseObject
- type CreateBroadcastResponseSuccess
- type CreateBroadcastdefaultJSONResponse
- type CreateContact201JSONResponse
- type CreateContactJSONRequestBody
- type CreateContactOptions
- type CreateContactOptionsTopicsSubscription
- type CreateContactProperty201JSONResponse
- type CreateContactPropertyJSONRequestBody
- type CreateContactPropertyOptions
- type CreateContactPropertyOptionsFallbackValue0
- type CreateContactPropertyOptionsFallbackValue1
- type CreateContactPropertyOptionsType
- type CreateContactPropertyOptions_FallbackValue
- func (t CreateContactPropertyOptions_FallbackValue) AsCreateContactPropertyOptionsFallbackValue0() (CreateContactPropertyOptionsFallbackValue0, error)
- func (t CreateContactPropertyOptions_FallbackValue) AsCreateContactPropertyOptionsFallbackValue1() (CreateContactPropertyOptionsFallbackValue1, error)
- func (t *CreateContactPropertyOptions_FallbackValue) FromCreateContactPropertyOptionsFallbackValue0(v CreateContactPropertyOptionsFallbackValue0) error
- func (t *CreateContactPropertyOptions_FallbackValue) FromCreateContactPropertyOptionsFallbackValue1(v CreateContactPropertyOptionsFallbackValue1) error
- func (t CreateContactPropertyOptions_FallbackValue) MarshalJSON() ([]byte, error)
- func (t *CreateContactPropertyOptions_FallbackValue) MergeCreateContactPropertyOptionsFallbackValue0(v CreateContactPropertyOptionsFallbackValue0) error
- func (t *CreateContactPropertyOptions_FallbackValue) MergeCreateContactPropertyOptionsFallbackValue1(v CreateContactPropertyOptionsFallbackValue1) error
- func (t *CreateContactPropertyOptions_FallbackValue) UnmarshalJSON(b []byte) error
- type CreateContactPropertyRequestObject
- type CreateContactPropertyResponseFunc
- type CreateContactPropertyResponseObject
- type CreateContactPropertyResponseSuccess
- type CreateContactPropertydefaultJSONResponse
- type CreateContactRequestObject
- type CreateContactResponseFunc
- type CreateContactResponseObject
- type CreateContactResponseSuccess
- type CreateContactdefaultJSONResponse
- type CreateDomain201JSONResponse
- type CreateDomainJSONRequestBody
- type CreateDomainRequest
- type CreateDomainRequestObject
- type CreateDomainRequestRegion
- type CreateDomainRequestTLS
- type CreateDomainResponse
- type CreateDomainResponseFunc
- type CreateDomainResponseObject
- type CreateDomaindefaultJSONResponse
- type CreateSegment201JSONResponse
- type CreateSegmentJSONRequestBody
- type CreateSegmentOptions
- type CreateSegmentRequestObject
- type CreateSegmentResponseFunc
- type CreateSegmentResponseObject
- type CreateSegmentResponseSuccess
- type CreateSegmentdefaultJSONResponse
- type CreateTemplate201JSONResponse
- type CreateTemplateJSONRequestBody
- type CreateTemplateRequest
- type CreateTemplateRequestObject
- type CreateTemplateResponseFunc
- type CreateTemplateResponseObject
- type CreateTemplateResponseSuccess
- type CreateTemplatedefaultJSONResponse
- type CreateTopic201JSONResponse
- type CreateTopicJSONRequestBody
- type CreateTopicOptions
- type CreateTopicOptionsDefaultSubscription
- type CreateTopicOptionsVisibility
- type CreateTopicRequestObject
- type CreateTopicResponseFunc
- type CreateTopicResponseObject
- type CreateTopicResponseSuccess
- type CreateTopicdefaultJSONResponse
- type CreateWebhook201JSONResponse
- type CreateWebhookJSONRequestBody
- type CreateWebhookRequest
- type CreateWebhookRequestObject
- type CreateWebhookResponse
- type CreateWebhookResponseFunc
- type CreateWebhookResponseObject
- type CreateWebhookdefaultJSONResponse
- type DeleteAPIKey200Response
- type DeleteAPIKeyRequestObject
- type DeleteAPIKeyResponseFunc
- type DeleteAPIKeyResponseObject
- type DeleteAPIKeydefaultJSONResponse
- type DeleteAudience200JSONResponse
- type DeleteAudienceRequestObject
- type DeleteAudienceResponseFunc
- type DeleteAudienceResponseObject
- type DeleteAudiencedefaultJSONResponse
- type DeleteBroadcast200JSONResponse
- type DeleteBroadcastRequestObject
- type DeleteBroadcastResponseFunc
- type DeleteBroadcastResponseObject
- type DeleteBroadcastdefaultJSONResponse
- type DeleteContact200JSONResponse
- type DeleteContactProperty200JSONResponse
- type DeleteContactPropertyRequestObject
- type DeleteContactPropertyResponseFunc
- type DeleteContactPropertyResponseObject
- type DeleteContactPropertydefaultJSONResponse
- type DeleteContactRequestObject
- type DeleteContactResponseFunc
- type DeleteContactResponseObject
- type DeleteContactdefaultJSONResponse
- type DeleteDomain200JSONResponse
- type DeleteDomainRequestObject
- type DeleteDomainResponse
- type DeleteDomainResponseFunc
- type DeleteDomainResponseObject
- type DeleteDomaindefaultJSONResponse
- type DeleteSegment200JSONResponse
- type DeleteSegmentRequestObject
- type DeleteSegmentResponseFunc
- type DeleteSegmentResponseObject
- type DeleteSegmentdefaultJSONResponse
- type DeleteTemplate200JSONResponse
- type DeleteTemplateRequestObject
- type DeleteTemplateResponseFunc
- type DeleteTemplateResponseObject
- type DeleteTemplatedefaultJSONResponse
- type DeleteTopic200JSONResponse
- type DeleteTopicRequestObject
- type DeleteTopicResponseFunc
- type DeleteTopicResponseObject
- type DeleteTopicdefaultJSONResponse
- type DeleteWebhook200JSONResponse
- type DeleteWebhookRequestObject
- type DeleteWebhookResponse
- type DeleteWebhookResponseFunc
- type DeleteWebhookResponseObject
- type DeleteWebhookdefaultJSONResponse
- type Domain
- type DomainCapabilities
- type DomainCapabilitiesReceiving
- type DomainCapabilitiesSending
- type DomainRecord
- type DomainRecordRecord
- type DomainRecordStatus
- type DomainRecordType
- type DuplicateTemplate200JSONResponse
- type DuplicateTemplateRequestObject
- type DuplicateTemplateResponseFunc
- type DuplicateTemplateResponseObject
- type DuplicateTemplateResponseSuccess
- type DuplicateTemplatedefaultJSONResponse
- type Email
- type EmailTemplateInput
- type EmailTemplateInputVariables0
- type EmailTemplateInputVariables1
- type EmailTemplateInput_Variables_AdditionalProperties
- func (t EmailTemplateInput_Variables_AdditionalProperties) AsEmailTemplateInputVariables0() (EmailTemplateInputVariables0, error)
- func (t EmailTemplateInput_Variables_AdditionalProperties) AsEmailTemplateInputVariables1() (EmailTemplateInputVariables1, error)
- func (t *EmailTemplateInput_Variables_AdditionalProperties) FromEmailTemplateInputVariables0(v EmailTemplateInputVariables0) error
- func (t *EmailTemplateInput_Variables_AdditionalProperties) FromEmailTemplateInputVariables1(v EmailTemplateInputVariables1) error
- func (t EmailTemplateInput_Variables_AdditionalProperties) MarshalJSON() ([]byte, error)
- func (t *EmailTemplateInput_Variables_AdditionalProperties) MergeEmailTemplateInputVariables0(v EmailTemplateInputVariables0) error
- func (t *EmailTemplateInput_Variables_AdditionalProperties) MergeEmailTemplateInputVariables1(v EmailTemplateInputVariables1) error
- func (t *EmailTemplateInput_Variables_AdditionalProperties) UnmarshalJSON(b []byte) error
- type GetAudience200JSONResponse
- type GetAudienceRequestObject
- type GetAudienceResponseFunc
- type GetAudienceResponseObject
- type GetAudienceResponseSuccessdeprecated
- type GetAudiencedefaultJSONResponse
- type GetBroadcast200JSONResponse
- type GetBroadcastRequestObject
- type GetBroadcastResponseFunc
- type GetBroadcastResponseObject
- type GetBroadcastResponseSuccess
- type GetBroadcastdefaultJSONResponse
- type GetContact200JSONResponse
- type GetContactProperty200JSONResponse
- type GetContactPropertyRequestObject
- type GetContactPropertyResponseFunc
- type GetContactPropertyResponseObject
- type GetContactPropertyResponseSuccess
- type GetContactPropertyResponseSuccessFallbackValue0
- type GetContactPropertyResponseSuccessFallbackValue1
- type GetContactPropertyResponseSuccess_FallbackValue
- func (t GetContactPropertyResponseSuccess_FallbackValue) AsGetContactPropertyResponseSuccessFallbackValue0() (GetContactPropertyResponseSuccessFallbackValue0, error)
- func (t GetContactPropertyResponseSuccess_FallbackValue) AsGetContactPropertyResponseSuccessFallbackValue1() (GetContactPropertyResponseSuccessFallbackValue1, error)
- func (t *GetContactPropertyResponseSuccess_FallbackValue) FromGetContactPropertyResponseSuccessFallbackValue0(v GetContactPropertyResponseSuccessFallbackValue0) error
- func (t *GetContactPropertyResponseSuccess_FallbackValue) FromGetContactPropertyResponseSuccessFallbackValue1(v GetContactPropertyResponseSuccessFallbackValue1) error
- func (t GetContactPropertyResponseSuccess_FallbackValue) MarshalJSON() ([]byte, error)
- func (t *GetContactPropertyResponseSuccess_FallbackValue) MergeGetContactPropertyResponseSuccessFallbackValue0(v GetContactPropertyResponseSuccessFallbackValue0) error
- func (t *GetContactPropertyResponseSuccess_FallbackValue) MergeGetContactPropertyResponseSuccessFallbackValue1(v GetContactPropertyResponseSuccessFallbackValue1) error
- func (t *GetContactPropertyResponseSuccess_FallbackValue) UnmarshalJSON(b []byte) error
- type GetContactPropertydefaultJSONResponse
- type GetContactRequestObject
- type GetContactResponseFunc
- type GetContactResponseObject
- type GetContactResponseSuccess
- type GetContactTopicsResponseSuccess
- type GetContactTopicsResponseSuccessDataSubscription
- type GetContactdefaultJSONResponse
- type GetDomain200JSONResponse
- type GetDomainRequestObject
- type GetDomainResponseFunc
- type GetDomainResponseObject
- type GetDomaindefaultJSONResponse
- type GetEmail200JSONResponse
- type GetEmailAttachment200JSONResponse
- type GetEmailAttachmentRequestObject
- type GetEmailAttachmentResponseFunc
- type GetEmailAttachmentResponseObject
- type GetEmailAttachmentdefaultJSONResponse
- type GetEmailRequestObject
- type GetEmailResponseFunc
- type GetEmailResponseObject
- type GetEmaildefaultJSONResponse
- type GetReceivedEmail200JSONResponse
- type GetReceivedEmailAttachment200JSONResponse
- type GetReceivedEmailAttachmentRequestObject
- type GetReceivedEmailAttachmentResponseFunc
- type GetReceivedEmailAttachmentResponseObject
- type GetReceivedEmailAttachmentdefaultJSONResponse
- type GetReceivedEmailRequestObject
- type GetReceivedEmailResponse
- type GetReceivedEmailResponseAttachmentsContentDisposition
- type GetReceivedEmailResponseFunc
- type GetReceivedEmailResponseObject
- type GetReceivedEmaildefaultJSONResponse
- type GetSegment200JSONResponse
- type GetSegmentRequestObject
- type GetSegmentResponseFunc
- type GetSegmentResponseObject
- type GetSegmentResponseSuccess
- type GetSegmentdefaultJSONResponse
- type GetTemplate200JSONResponse
- type GetTemplateRequestObject
- type GetTemplateResponseFunc
- type GetTemplateResponseObject
- type GetTemplatedefaultJSONResponse
- type GetTopic200JSONResponse
- type GetTopicRequestObject
- type GetTopicResponseFunc
- type GetTopicResponseObject
- type GetTopicResponseSuccess
- type GetTopicResponseSuccessDefaultSubscription
- type GetTopicResponseSuccessVisibility
- type GetTopicdefaultJSONResponse
- type GetWebhook200JSONResponse
- type GetWebhookRequestObject
- type GetWebhookResponse
- type GetWebhookResponseFunc
- type GetWebhookResponseObject
- type GetWebhookdefaultJSONResponse
- type HandlerFunc
- type Handlers
- type InvalidParamFormatError
- type ListAPIKeys200JSONResponse
- type ListAPIKeysParams
- type ListAPIKeysRequestObject
- type ListAPIKeysResponse
- type ListAPIKeysResponseFunc
- type ListAPIKeysResponseObject
- type ListAPIKeysdefaultJSONResponse
- type ListAttachmentsResponse
- type ListAttachmentsResponseDataContentDisposition
- type ListAudiences200JSONResponse
- type ListAudiencesRequestObject
- type ListAudiencesResponseFunc
- type ListAudiencesResponseObject
- type ListAudiencesResponseSuccessdeprecated
- type ListAudiencesdefaultJSONResponse
- type ListBroadcasts200JSONResponse
- type ListBroadcastsParams
- type ListBroadcastsRequestObject
- type ListBroadcastsResponseFunc
- type ListBroadcastsResponseObject
- type ListBroadcastsResponseSuccess
- type ListBroadcastsdefaultJSONResponse
- type ListContactProperties200JSONResponse
- type ListContactPropertiesParams
- type ListContactPropertiesRequestObject
- type ListContactPropertiesResponseFunc
- type ListContactPropertiesResponseObject
- type ListContactPropertiesResponseSuccess
- type ListContactPropertiesResponseSuccessDataFallbackValue0
- type ListContactPropertiesResponseSuccessDataFallbackValue1
- type ListContactPropertiesResponseSuccess_Data_FallbackValue
- func (t ListContactPropertiesResponseSuccess_Data_FallbackValue) AsListContactPropertiesResponseSuccessDataFallbackValue0() (ListContactPropertiesResponseSuccessDataFallbackValue0, error)
- func (t ListContactPropertiesResponseSuccess_Data_FallbackValue) AsListContactPropertiesResponseSuccessDataFallbackValue1() (ListContactPropertiesResponseSuccessDataFallbackValue1, error)
- func (t *ListContactPropertiesResponseSuccess_Data_FallbackValue) FromListContactPropertiesResponseSuccessDataFallbackValue0(v ListContactPropertiesResponseSuccessDataFallbackValue0) error
- func (t *ListContactPropertiesResponseSuccess_Data_FallbackValue) FromListContactPropertiesResponseSuccessDataFallbackValue1(v ListContactPropertiesResponseSuccessDataFallbackValue1) error
- func (t ListContactPropertiesResponseSuccess_Data_FallbackValue) MarshalJSON() ([]byte, error)
- func (t *ListContactPropertiesResponseSuccess_Data_FallbackValue) MergeListContactPropertiesResponseSuccessDataFallbackValue0(v ListContactPropertiesResponseSuccessDataFallbackValue0) error
- func (t *ListContactPropertiesResponseSuccess_Data_FallbackValue) MergeListContactPropertiesResponseSuccessDataFallbackValue1(v ListContactPropertiesResponseSuccessDataFallbackValue1) error
- func (t *ListContactPropertiesResponseSuccess_Data_FallbackValue) UnmarshalJSON(b []byte) error
- type ListContactPropertiesdefaultJSONResponse
- type ListContactSegments200JSONResponse
- type ListContactSegmentsParams
- type ListContactSegmentsRequestObject
- type ListContactSegmentsResponseFunc
- type ListContactSegmentsResponseObject
- type ListContactSegmentsResponseSuccess
- type ListContactSegmentsdefaultJSONResponse
- type ListContactTopics200JSONResponse
- type ListContactTopicsParams
- type ListContactTopicsRequestObject
- type ListContactTopicsResponseFunc
- type ListContactTopicsResponseObject
- type ListContactTopicsdefaultJSONResponse
- type ListContacts200JSONResponse
- type ListContactsParams
- type ListContactsRequestObject
- type ListContactsResponseFunc
- type ListContactsResponseObject
- type ListContactsResponseSuccess
- type ListContactsdefaultJSONResponse
- type ListDomains200JSONResponse
- type ListDomainsItem
- type ListDomainsParams
- type ListDomainsRequestObject
- type ListDomainsResponse
- type ListDomainsResponseFunc
- type ListDomainsResponseObject
- type ListDomainsdefaultJSONResponse
- type ListEmailAttachments200JSONResponse
- type ListEmailAttachmentsParams
- type ListEmailAttachmentsRequestObject
- type ListEmailAttachmentsResponseFunc
- type ListEmailAttachmentsResponseObject
- type ListEmailAttachmentsdefaultJSONResponse
- type ListEmails200JSONResponse
- type ListEmailsParams
- type ListEmailsRequestObject
- type ListEmailsResponse
- type ListEmailsResponseFunc
- type ListEmailsResponseObject
- type ListEmailsdefaultJSONResponse
- type ListReceivedEmailAttachments200JSONResponse
- type ListReceivedEmailAttachmentsParams
- type ListReceivedEmailAttachmentsRequestObject
- type ListReceivedEmailAttachmentsResponseFunc
- type ListReceivedEmailAttachmentsResponseObject
- type ListReceivedEmailAttachmentsdefaultJSONResponse
- type ListReceivedEmails200JSONResponse
- type ListReceivedEmailsParams
- type ListReceivedEmailsRequestObject
- type ListReceivedEmailsResponse
- type ListReceivedEmailsResponseDataAttachmentsContentDisposition
- type ListReceivedEmailsResponseFunc
- type ListReceivedEmailsResponseObject
- type ListReceivedEmailsdefaultJSONResponse
- type ListSegments200JSONResponse
- type ListSegmentsParams
- type ListSegmentsRequestObject
- type ListSegmentsResponseFunc
- type ListSegmentsResponseObject
- type ListSegmentsResponseSuccess
- type ListSegmentsdefaultJSONResponse
- type ListTemplates200JSONResponse
- type ListTemplatesParams
- type ListTemplatesRequestObject
- type ListTemplatesResponseFunc
- type ListTemplatesResponseObject
- type ListTemplatesResponseSuccess
- type ListTemplatesdefaultJSONResponse
- type ListTopics200JSONResponse
- type ListTopicsParams
- type ListTopicsRequestObject
- type ListTopicsResponseFunc
- type ListTopicsResponseObject
- type ListTopicsResponseSuccess
- type ListTopicsResponseSuccessDataDefaultSubscription
- type ListTopicsResponseSuccessDataVisibility
- type ListTopicsdefaultJSONResponse
- type ListWebhooks200JSONResponse
- type ListWebhooksParams
- type ListWebhooksRequestObject
- type ListWebhooksResponse
- type ListWebhooksResponseFunc
- type ListWebhooksResponseObject
- type ListWebhooksdefaultJSONResponse
- type Middleware
- type MiddlewareFunc
- type Option
- func WithAPIKey(apiKey string) Option
- func WithCallLimit(limit int) Option
- func WithCallRecording(enabled bool) Option
- func WithHandlers(handlers Handlers) Option
- func WithMiddleware(middlewares ...Middleware) Option
- func WithRequestValidation(enabled bool) Option
- func WithUserAgentValidation(enabled bool) Option
- type PaginationAfter
- type PaginationBefore
- type PaginationLimit
- type PublishTemplate200JSONResponse
- type PublishTemplateRequestObject
- type PublishTemplateResponseFunc
- type PublishTemplateResponseObject
- type PublishTemplateResponseSuccess
- type PublishTemplatedefaultJSONResponse
- type RemoveAudienceResponseSuccessdeprecated
- type RemoveBroadcastResponseSuccess
- type RemoveContactFromSegment200JSONResponse
- type RemoveContactFromSegmentRequestObject
- type RemoveContactFromSegmentResponseFunc
- type RemoveContactFromSegmentResponseObject
- type RemoveContactFromSegmentResponseSuccess
- type RemoveContactFromSegmentdefaultJSONResponse
- type RemoveContactPropertyResponseSuccess
- type RemoveContactResponseSuccess
- type RemoveSegmentResponseSuccess
- type RemoveTemplateResponseSuccess
- type RemoveTopicResponseSuccess
- type RequiredHeaderError
- type RequiredParamError
- type ResendError
- type RetrievedAttachment
- type RetrievedAttachmentContentDisposition
- type SendBatchEmails200JSONResponse
- type SendBatchEmailsJSONBody
- type SendBatchEmailsJSONRequestBody
- type SendBatchEmailsParams
- type SendBatchEmailsRequestObject
- type SendBatchEmailsResponseFunc
- type SendBatchEmailsResponseObject
- type SendBatchEmailsdefaultJSONResponse
- type SendBroadcast200JSONResponse
- type SendBroadcastJSONRequestBody
- type SendBroadcastOptions
- type SendBroadcastRequestObject
- type SendBroadcastResponseFunc
- type SendBroadcastResponseObject
- type SendBroadcastResponseSuccess
- type SendBroadcastdefaultJSONResponse
- type SendEmail200JSONResponse
- type SendEmailJSONRequestBody
- type SendEmailParams
- type SendEmailRequest
- type SendEmailRequestBcc0
- type SendEmailRequestBcc1
- type SendEmailRequestCc0
- type SendEmailRequestCc1
- type SendEmailRequestObject
- type SendEmailRequestReplyTo0
- type SendEmailRequestReplyTo1
- type SendEmailRequestTemplateVariables0
- type SendEmailRequestTemplateVariables1
- type SendEmailRequestTo0
- type SendEmailRequestTo1
- type SendEmailRequest_Bcc
- func (t SendEmailRequest_Bcc) AsSendEmailRequestBcc0() (SendEmailRequestBcc0, error)
- func (t SendEmailRequest_Bcc) AsSendEmailRequestBcc1() (SendEmailRequestBcc1, error)
- func (t *SendEmailRequest_Bcc) FromSendEmailRequestBcc0(v SendEmailRequestBcc0) error
- func (t *SendEmailRequest_Bcc) FromSendEmailRequestBcc1(v SendEmailRequestBcc1) error
- func (t SendEmailRequest_Bcc) MarshalJSON() ([]byte, error)
- func (t *SendEmailRequest_Bcc) MergeSendEmailRequestBcc0(v SendEmailRequestBcc0) error
- func (t *SendEmailRequest_Bcc) MergeSendEmailRequestBcc1(v SendEmailRequestBcc1) error
- func (t *SendEmailRequest_Bcc) UnmarshalJSON(b []byte) error
- type SendEmailRequest_Cc
- func (t SendEmailRequest_Cc) AsSendEmailRequestCc0() (SendEmailRequestCc0, error)
- func (t SendEmailRequest_Cc) AsSendEmailRequestCc1() (SendEmailRequestCc1, error)
- func (t *SendEmailRequest_Cc) FromSendEmailRequestCc0(v SendEmailRequestCc0) error
- func (t *SendEmailRequest_Cc) FromSendEmailRequestCc1(v SendEmailRequestCc1) error
- func (t SendEmailRequest_Cc) MarshalJSON() ([]byte, error)
- func (t *SendEmailRequest_Cc) MergeSendEmailRequestCc0(v SendEmailRequestCc0) error
- func (t *SendEmailRequest_Cc) MergeSendEmailRequestCc1(v SendEmailRequestCc1) error
- func (t *SendEmailRequest_Cc) UnmarshalJSON(b []byte) error
- type SendEmailRequest_ReplyTo
- func (t SendEmailRequest_ReplyTo) AsSendEmailRequestReplyTo0() (SendEmailRequestReplyTo0, error)
- func (t SendEmailRequest_ReplyTo) AsSendEmailRequestReplyTo1() (SendEmailRequestReplyTo1, error)
- func (t *SendEmailRequest_ReplyTo) FromSendEmailRequestReplyTo0(v SendEmailRequestReplyTo0) error
- func (t *SendEmailRequest_ReplyTo) FromSendEmailRequestReplyTo1(v SendEmailRequestReplyTo1) error
- func (t SendEmailRequest_ReplyTo) MarshalJSON() ([]byte, error)
- func (t *SendEmailRequest_ReplyTo) MergeSendEmailRequestReplyTo0(v SendEmailRequestReplyTo0) error
- func (t *SendEmailRequest_ReplyTo) MergeSendEmailRequestReplyTo1(v SendEmailRequestReplyTo1) error
- func (t *SendEmailRequest_ReplyTo) UnmarshalJSON(b []byte) error
- type SendEmailRequest_Template_Variables_AdditionalProperties
- func (t SendEmailRequest_Template_Variables_AdditionalProperties) AsSendEmailRequestTemplateVariables0() (SendEmailRequestTemplateVariables0, error)
- func (t SendEmailRequest_Template_Variables_AdditionalProperties) AsSendEmailRequestTemplateVariables1() (SendEmailRequestTemplateVariables1, error)
- func (t *SendEmailRequest_Template_Variables_AdditionalProperties) FromSendEmailRequestTemplateVariables0(v SendEmailRequestTemplateVariables0) error
- func (t *SendEmailRequest_Template_Variables_AdditionalProperties) FromSendEmailRequestTemplateVariables1(v SendEmailRequestTemplateVariables1) error
- func (t SendEmailRequest_Template_Variables_AdditionalProperties) MarshalJSON() ([]byte, error)
- func (t *SendEmailRequest_Template_Variables_AdditionalProperties) MergeSendEmailRequestTemplateVariables0(v SendEmailRequestTemplateVariables0) error
- func (t *SendEmailRequest_Template_Variables_AdditionalProperties) MergeSendEmailRequestTemplateVariables1(v SendEmailRequestTemplateVariables1) error
- func (t *SendEmailRequest_Template_Variables_AdditionalProperties) UnmarshalJSON(b []byte) error
- type SendEmailRequest_To
- func (t SendEmailRequest_To) AsSendEmailRequestTo0() (SendEmailRequestTo0, error)
- func (t SendEmailRequest_To) AsSendEmailRequestTo1() (SendEmailRequestTo1, error)
- func (t *SendEmailRequest_To) FromSendEmailRequestTo0(v SendEmailRequestTo0) error
- func (t *SendEmailRequest_To) FromSendEmailRequestTo1(v SendEmailRequestTo1) error
- func (t SendEmailRequest_To) MarshalJSON() ([]byte, error)
- func (t *SendEmailRequest_To) MergeSendEmailRequestTo0(v SendEmailRequestTo0) error
- func (t *SendEmailRequest_To) MergeSendEmailRequestTo1(v SendEmailRequestTo1) error
- func (t *SendEmailRequest_To) UnmarshalJSON(b []byte) error
- type SendEmailResponse
- type SendEmailResponseFunc
- type SendEmailResponseObject
- type SendEmaildefaultJSONResponse
- type ServeMux
- type Server
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) AddContactToSegment(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CancelEmail(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateAudience(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateBroadcast(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateContact(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateContactProperty(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateDomain(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateSegment(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateTemplate(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateTopic(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateWebhook(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteAudience(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteBroadcast(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteContact(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteContactProperty(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteDomain(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteSegment(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteTemplate(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteTopic(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteWebhook(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DuplicateTemplate(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAudience(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetBroadcast(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetContact(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetContactProperty(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetDomain(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetEmail(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetEmailAttachment(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetReceivedEmail(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetReceivedEmailAttachment(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSegment(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetTemplate(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetTopic(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetWebhook(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListAPIKeys(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListAudiences(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListBroadcasts(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListContactProperties(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListContactSegments(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListContactTopics(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListContacts(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListDomains(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListEmailAttachments(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListEmails(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListReceivedEmailAttachments(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListReceivedEmails(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSegments(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListTemplates(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListTopics(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListWebhooks(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PublishTemplate(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RemoveContactFromSegment(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) SendBatchEmails(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) SendBroadcast(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) SendEmail(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateBroadcast(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateContact(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateContactProperty(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateContactTopics(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateDomain(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateEmail(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateTemplate(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateTopic(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateWebhook(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) VerifyDomain(w http.ResponseWriter, r *http.Request)
- type StdHTTPServerOptions
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type Tag
- type Template
- type TemplateListItem
- type TemplateListItemStatus
- type TemplateStatus
- type TemplateVariable
- type TemplateVariableFallbackValue0
- type TemplateVariableFallbackValue1
- type TemplateVariableFallbackValue2
- type TemplateVariableFallbackValue3
- type TemplateVariableFallbackValue4
- type TemplateVariableInput
- type TemplateVariableInputFallbackValue0
- type TemplateVariableInputFallbackValue1
- type TemplateVariableInputFallbackValue2
- type TemplateVariableInputFallbackValue3
- type TemplateVariableInputFallbackValue4
- type TemplateVariableInputType
- type TemplateVariableInput_FallbackValue
- func (t TemplateVariableInput_FallbackValue) AsTemplateVariableInputFallbackValue0() (TemplateVariableInputFallbackValue0, error)
- func (t TemplateVariableInput_FallbackValue) AsTemplateVariableInputFallbackValue1() (TemplateVariableInputFallbackValue1, error)
- func (t TemplateVariableInput_FallbackValue) AsTemplateVariableInputFallbackValue2() (TemplateVariableInputFallbackValue2, error)
- func (t TemplateVariableInput_FallbackValue) AsTemplateVariableInputFallbackValue3() (TemplateVariableInputFallbackValue3, error)
- func (t TemplateVariableInput_FallbackValue) AsTemplateVariableInputFallbackValue4() (TemplateVariableInputFallbackValue4, error)
- func (t *TemplateVariableInput_FallbackValue) FromTemplateVariableInputFallbackValue0(v TemplateVariableInputFallbackValue0) error
- func (t *TemplateVariableInput_FallbackValue) FromTemplateVariableInputFallbackValue1(v TemplateVariableInputFallbackValue1) error
- func (t *TemplateVariableInput_FallbackValue) FromTemplateVariableInputFallbackValue2(v TemplateVariableInputFallbackValue2) error
- func (t *TemplateVariableInput_FallbackValue) FromTemplateVariableInputFallbackValue3(v TemplateVariableInputFallbackValue3) error
- func (t *TemplateVariableInput_FallbackValue) FromTemplateVariableInputFallbackValue4(v TemplateVariableInputFallbackValue4) error
- func (t TemplateVariableInput_FallbackValue) MarshalJSON() ([]byte, error)
- func (t *TemplateVariableInput_FallbackValue) MergeTemplateVariableInputFallbackValue0(v TemplateVariableInputFallbackValue0) error
- func (t *TemplateVariableInput_FallbackValue) MergeTemplateVariableInputFallbackValue1(v TemplateVariableInputFallbackValue1) error
- func (t *TemplateVariableInput_FallbackValue) MergeTemplateVariableInputFallbackValue2(v TemplateVariableInputFallbackValue2) error
- func (t *TemplateVariableInput_FallbackValue) MergeTemplateVariableInputFallbackValue3(v TemplateVariableInputFallbackValue3) error
- func (t *TemplateVariableInput_FallbackValue) MergeTemplateVariableInputFallbackValue4(v TemplateVariableInputFallbackValue4) error
- func (t *TemplateVariableInput_FallbackValue) UnmarshalJSON(b []byte) error
- type TemplateVariableType
- type TemplateVariable_FallbackValue
- func (t TemplateVariable_FallbackValue) AsTemplateVariableFallbackValue0() (TemplateVariableFallbackValue0, error)
- func (t TemplateVariable_FallbackValue) AsTemplateVariableFallbackValue1() (TemplateVariableFallbackValue1, error)
- func (t TemplateVariable_FallbackValue) AsTemplateVariableFallbackValue2() (TemplateVariableFallbackValue2, error)
- func (t TemplateVariable_FallbackValue) AsTemplateVariableFallbackValue3() (TemplateVariableFallbackValue3, error)
- func (t TemplateVariable_FallbackValue) AsTemplateVariableFallbackValue4() (TemplateVariableFallbackValue4, error)
- func (t *TemplateVariable_FallbackValue) FromTemplateVariableFallbackValue0(v TemplateVariableFallbackValue0) error
- func (t *TemplateVariable_FallbackValue) FromTemplateVariableFallbackValue1(v TemplateVariableFallbackValue1) error
- func (t *TemplateVariable_FallbackValue) FromTemplateVariableFallbackValue2(v TemplateVariableFallbackValue2) error
- func (t *TemplateVariable_FallbackValue) FromTemplateVariableFallbackValue3(v TemplateVariableFallbackValue3) error
- func (t *TemplateVariable_FallbackValue) FromTemplateVariableFallbackValue4(v TemplateVariableFallbackValue4) error
- func (t TemplateVariable_FallbackValue) MarshalJSON() ([]byte, error)
- func (t *TemplateVariable_FallbackValue) MergeTemplateVariableFallbackValue0(v TemplateVariableFallbackValue0) error
- func (t *TemplateVariable_FallbackValue) MergeTemplateVariableFallbackValue1(v TemplateVariableFallbackValue1) error
- func (t *TemplateVariable_FallbackValue) MergeTemplateVariableFallbackValue2(v TemplateVariableFallbackValue2) error
- func (t *TemplateVariable_FallbackValue) MergeTemplateVariableFallbackValue3(v TemplateVariableFallbackValue3) error
- func (t *TemplateVariable_FallbackValue) MergeTemplateVariableFallbackValue4(v TemplateVariableFallbackValue4) error
- func (t *TemplateVariable_FallbackValue) UnmarshalJSON(b []byte) error
- type TestHandler
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type UnmarshalingParamError
- type UpdateBroadcast200JSONResponse
- type UpdateBroadcastJSONRequestBody
- type UpdateBroadcastOptions
- type UpdateBroadcastRequestObject
- type UpdateBroadcastResponseFunc
- type UpdateBroadcastResponseObject
- type UpdateBroadcastResponseSuccess
- type UpdateBroadcastdefaultJSONResponse
- type UpdateContact200JSONResponse
- type UpdateContactJSONRequestBody
- type UpdateContactOptions
- type UpdateContactProperty200JSONResponse
- type UpdateContactPropertyJSONRequestBody
- type UpdateContactPropertyOptions
- type UpdateContactPropertyOptionsFallbackValue0
- type UpdateContactPropertyOptionsFallbackValue1
- type UpdateContactPropertyOptions_FallbackValue
- func (t UpdateContactPropertyOptions_FallbackValue) AsUpdateContactPropertyOptionsFallbackValue0() (UpdateContactPropertyOptionsFallbackValue0, error)
- func (t UpdateContactPropertyOptions_FallbackValue) AsUpdateContactPropertyOptionsFallbackValue1() (UpdateContactPropertyOptionsFallbackValue1, error)
- func (t *UpdateContactPropertyOptions_FallbackValue) FromUpdateContactPropertyOptionsFallbackValue0(v UpdateContactPropertyOptionsFallbackValue0) error
- func (t *UpdateContactPropertyOptions_FallbackValue) FromUpdateContactPropertyOptionsFallbackValue1(v UpdateContactPropertyOptionsFallbackValue1) error
- func (t UpdateContactPropertyOptions_FallbackValue) MarshalJSON() ([]byte, error)
- func (t *UpdateContactPropertyOptions_FallbackValue) MergeUpdateContactPropertyOptionsFallbackValue0(v UpdateContactPropertyOptionsFallbackValue0) error
- func (t *UpdateContactPropertyOptions_FallbackValue) MergeUpdateContactPropertyOptionsFallbackValue1(v UpdateContactPropertyOptionsFallbackValue1) error
- func (t *UpdateContactPropertyOptions_FallbackValue) UnmarshalJSON(b []byte) error
- type UpdateContactPropertyRequestObject
- type UpdateContactPropertyResponseFunc
- type UpdateContactPropertyResponseObject
- type UpdateContactPropertyResponseSuccess
- type UpdateContactPropertydefaultJSONResponse
- type UpdateContactRequestObject
- type UpdateContactResponseFunc
- type UpdateContactResponseObject
- type UpdateContactResponseSuccess
- type UpdateContactTopics200JSONResponse
- type UpdateContactTopicsJSONRequestBody
- type UpdateContactTopicsOptions
- type UpdateContactTopicsOptionsTopicsSubscription
- type UpdateContactTopicsRequestObject
- type UpdateContactTopicsResponseFunc
- type UpdateContactTopicsResponseObject
- type UpdateContactTopicsResponseSuccess
- type UpdateContactTopicsResponseSuccessTopicsSubscription
- type UpdateContactTopicsdefaultJSONResponse
- type UpdateContactdefaultJSONResponse
- type UpdateDomain200JSONResponse
- type UpdateDomainJSONRequestBody
- type UpdateDomainOptions
- type UpdateDomainRequestObject
- type UpdateDomainResponseFunc
- type UpdateDomainResponseObject
- type UpdateDomainResponseSuccess
- type UpdateDomaindefaultJSONResponse
- type UpdateEmail200JSONResponse
- type UpdateEmailOptions
- type UpdateEmailRequestObject
- type UpdateEmailResponseFunc
- type UpdateEmailResponseObject
- type UpdateEmaildefaultJSONResponse
- type UpdateTemplate200JSONResponse
- type UpdateTemplateJSONRequestBody
- type UpdateTemplateOptions
- type UpdateTemplateRequestObject
- type UpdateTemplateResponseFunc
- type UpdateTemplateResponseObject
- type UpdateTemplateResponseSuccess
- type UpdateTemplatedefaultJSONResponse
- type UpdateTopic200JSONResponse
- type UpdateTopicJSONRequestBody
- type UpdateTopicOptions
- type UpdateTopicOptionsVisibility
- type UpdateTopicRequestObject
- type UpdateTopicResponseFunc
- type UpdateTopicResponseObject
- type UpdateTopicResponseSuccess
- type UpdateTopicdefaultJSONResponse
- type UpdateWebhook200JSONResponse
- type UpdateWebhookJSONRequestBody
- type UpdateWebhookRequest
- type UpdateWebhookRequestObject
- type UpdateWebhookRequestStatus
- type UpdateWebhookResponse
- type UpdateWebhookResponseFunc
- type UpdateWebhookResponseObject
- type UpdateWebhookdefaultJSONResponse
- type VerifyDomain200JSONResponse
- type VerifyDomainRequestObject
- type VerifyDomainResponse
- type VerifyDomainResponseFunc
- type VerifyDomainResponseObject
- type VerifyDomaindefaultJSONResponse
Constants ¶
const OperationAddContactToSegment = "AddContactToSegment"
OperationAddContactToSegment is the stable OpenAPI operation ID for POST /contacts/{contact_id}/segments/{segment_id}.
const OperationCancelEmail = "CancelEmail"
OperationCancelEmail is the stable OpenAPI operation ID for POST /emails/{email_id}/cancel.
const OperationCreateAPIKey = "CreateAPIKey"
OperationCreateAPIKey is the stable OpenAPI operation ID for POST /api-keys.
const OperationCreateAudience = "CreateAudience"
OperationCreateAudience is the stable OpenAPI operation ID for POST /audiences.
const OperationCreateBroadcast = "CreateBroadcast"
OperationCreateBroadcast is the stable OpenAPI operation ID for POST /broadcasts.
const OperationCreateContact = "CreateContact"
OperationCreateContact is the stable OpenAPI operation ID for POST /contacts.
const OperationCreateContactProperty = "CreateContactProperty"
OperationCreateContactProperty is the stable OpenAPI operation ID for POST /contact-properties.
const OperationCreateDomain = "CreateDomain"
OperationCreateDomain is the stable OpenAPI operation ID for POST /domains.
const OperationCreateSegment = "CreateSegment"
OperationCreateSegment is the stable OpenAPI operation ID for POST /segments.
const OperationCreateTemplate = "CreateTemplate"
OperationCreateTemplate is the stable OpenAPI operation ID for POST /templates.
const OperationCreateTopic = "CreateTopic"
OperationCreateTopic is the stable OpenAPI operation ID for POST /topics.
const OperationCreateWebhook = "CreateWebhook"
OperationCreateWebhook is the stable OpenAPI operation ID for POST /webhooks.
const OperationDeleteAPIKey = "DeleteAPIKey"
OperationDeleteAPIKey is the stable OpenAPI operation ID for DELETE /api-keys/{api_key_id}.
const OperationDeleteAudience = "DeleteAudience"
OperationDeleteAudience is the stable OpenAPI operation ID for DELETE /audiences/{id}.
const OperationDeleteBroadcast = "DeleteBroadcast"
OperationDeleteBroadcast is the stable OpenAPI operation ID for DELETE /broadcasts/{id}.
const OperationDeleteContact = "DeleteContact"
OperationDeleteContact is the stable OpenAPI operation ID for DELETE /contacts/{id}.
const OperationDeleteContactProperty = "DeleteContactProperty"
OperationDeleteContactProperty is the stable OpenAPI operation ID for DELETE /contact-properties/{id}.
const OperationDeleteDomain = "DeleteDomain"
OperationDeleteDomain is the stable OpenAPI operation ID for DELETE /domains/{domain_id}.
const OperationDeleteSegment = "DeleteSegment"
OperationDeleteSegment is the stable OpenAPI operation ID for DELETE /segments/{id}.
const OperationDeleteTemplate = "DeleteTemplate"
OperationDeleteTemplate is the stable OpenAPI operation ID for DELETE /templates/{id}.
const OperationDeleteTopic = "DeleteTopic"
OperationDeleteTopic is the stable OpenAPI operation ID for DELETE /topics/{id}.
const OperationDeleteWebhook = "DeleteWebhook"
OperationDeleteWebhook is the stable OpenAPI operation ID for DELETE /webhooks/{webhook_id}.
const OperationDuplicateTemplate = "DuplicateTemplate"
OperationDuplicateTemplate is the stable OpenAPI operation ID for POST /templates/{id}/duplicate.
const OperationGetAudience = "GetAudience"
OperationGetAudience is the stable OpenAPI operation ID for GET /audiences/{id}.
const OperationGetBroadcast = "GetBroadcast"
OperationGetBroadcast is the stable OpenAPI operation ID for GET /broadcasts/{id}.
const OperationGetContact = "GetContact"
OperationGetContact is the stable OpenAPI operation ID for GET /contacts/{id}.
const OperationGetContactProperty = "GetContactProperty"
OperationGetContactProperty is the stable OpenAPI operation ID for GET /contact-properties/{id}.
const OperationGetDomain = "GetDomain"
OperationGetDomain is the stable OpenAPI operation ID for GET /domains/{domain_id}.
const OperationGetEmail = "GetEmail"
OperationGetEmail is the stable OpenAPI operation ID for GET /emails/{email_id}.
const OperationGetEmailAttachment = "GetEmailAttachment"
OperationGetEmailAttachment is the stable OpenAPI operation ID for GET /emails/{email_id}/attachments/{attachment_id}.
const OperationGetReceivedEmail = "GetReceivedEmail"
OperationGetReceivedEmail is the stable OpenAPI operation ID for GET /emails/receiving/{email_id}.
const OperationGetReceivedEmailAttachment = "GetReceivedEmailAttachment"
OperationGetReceivedEmailAttachment is the stable OpenAPI operation ID for GET /emails/receiving/{email_id}/attachments/{attachment_id}.
const OperationGetSegment = "GetSegment"
OperationGetSegment is the stable OpenAPI operation ID for GET /segments/{id}.
const OperationGetTemplate = "GetTemplate"
OperationGetTemplate is the stable OpenAPI operation ID for GET /templates/{id}.
const OperationGetTopic = "GetTopic"
OperationGetTopic is the stable OpenAPI operation ID for GET /topics/{id}.
const OperationGetWebhook = "GetWebhook"
OperationGetWebhook is the stable OpenAPI operation ID for GET /webhooks/{webhook_id}.
const OperationListAPIKeys = "ListAPIKeys"
OperationListAPIKeys is the stable OpenAPI operation ID for GET /api-keys.
const OperationListAudiences = "ListAudiences"
OperationListAudiences is the stable OpenAPI operation ID for GET /audiences.
const OperationListBroadcasts = "ListBroadcasts"
OperationListBroadcasts is the stable OpenAPI operation ID for GET /broadcasts.
const OperationListContactProperties = "ListContactProperties"
OperationListContactProperties is the stable OpenAPI operation ID for GET /contact-properties.
const OperationListContactSegments = "ListContactSegments"
OperationListContactSegments is the stable OpenAPI operation ID for GET /contacts/{contact_id}/segments.
const OperationListContactTopics = "ListContactTopics"
OperationListContactTopics is the stable OpenAPI operation ID for GET /contacts/{contact_id}/topics.
const OperationListContacts = "ListContacts"
OperationListContacts is the stable OpenAPI operation ID for GET /contacts.
const OperationListDomains = "ListDomains"
OperationListDomains is the stable OpenAPI operation ID for GET /domains.
const OperationListEmailAttachments = "ListEmailAttachments"
OperationListEmailAttachments is the stable OpenAPI operation ID for GET /emails/{email_id}/attachments.
const OperationListEmails = "ListEmails"
OperationListEmails is the stable OpenAPI operation ID for GET /emails.
const OperationListReceivedEmailAttachments = "ListReceivedEmailAttachments"
OperationListReceivedEmailAttachments is the stable OpenAPI operation ID for GET /emails/receiving/{email_id}/attachments.
const OperationListReceivedEmails = "ListReceivedEmails"
OperationListReceivedEmails is the stable OpenAPI operation ID for GET /emails/receiving.
const OperationListSegments = "ListSegments"
OperationListSegments is the stable OpenAPI operation ID for GET /segments.
const OperationListTemplates = "ListTemplates"
OperationListTemplates is the stable OpenAPI operation ID for GET /templates.
const OperationListTopics = "ListTopics"
OperationListTopics is the stable OpenAPI operation ID for GET /topics.
const OperationListWebhooks = "ListWebhooks"
OperationListWebhooks is the stable OpenAPI operation ID for GET /webhooks.
const OperationPublishTemplate = "PublishTemplate"
OperationPublishTemplate is the stable OpenAPI operation ID for POST /templates/{id}/publish.
const OperationRemoveContactFromSegment = "RemoveContactFromSegment"
OperationRemoveContactFromSegment is the stable OpenAPI operation ID for DELETE /contacts/{contact_id}/segments/{segment_id}.
const OperationSendBatchEmails = "SendBatchEmails"
OperationSendBatchEmails is the stable OpenAPI operation ID for POST /emails/batch.
const OperationSendBroadcast = "SendBroadcast"
OperationSendBroadcast is the stable OpenAPI operation ID for POST /broadcasts/{id}/send.
const OperationSendEmail = "SendEmail"
OperationSendEmail is the stable OpenAPI operation ID for POST /emails.
const OperationUpdateBroadcast = "UpdateBroadcast"
OperationUpdateBroadcast is the stable OpenAPI operation ID for PATCH /broadcasts/{id}.
const OperationUpdateContact = "UpdateContact"
OperationUpdateContact is the stable OpenAPI operation ID for PATCH /contacts/{id}.
const OperationUpdateContactProperty = "UpdateContactProperty"
OperationUpdateContactProperty is the stable OpenAPI operation ID for PATCH /contact-properties/{id}.
const OperationUpdateContactTopics = "UpdateContactTopics"
OperationUpdateContactTopics is the stable OpenAPI operation ID for PATCH /contacts/{contact_id}/topics.
const OperationUpdateDomain = "UpdateDomain"
OperationUpdateDomain is the stable OpenAPI operation ID for PATCH /domains/{domain_id}.
const OperationUpdateEmail = "UpdateEmail"
OperationUpdateEmail is the stable OpenAPI operation ID for PATCH /emails/{email_id}.
const OperationUpdateTemplate = "UpdateTemplate"
OperationUpdateTemplate is the stable OpenAPI operation ID for PATCH /templates/{id}.
const OperationUpdateTopic = "UpdateTopic"
OperationUpdateTopic is the stable OpenAPI operation ID for PATCH /topics/{id}.
const OperationUpdateWebhook = "UpdateWebhook"
OperationUpdateWebhook is the stable OpenAPI operation ID for PATCH /webhooks/{webhook_id}.
const OperationVerifyDomain = "VerifyDomain"
OperationVerifyDomain is the stable OpenAPI operation ID for POST /domains/{domain_id}/verify.
Variables ¶
This section is empty.
Functions ¶
func GetSpec ¶
GetSpec returns the OpenAPI specification corresponding to the generated code in this file. External references in the spec are resolved through PathToRawSpec; externally-referenced files must be embedded in their corresponding Go packages (via the import-mapping feature). URL-based external refs are not supported.
func GetSpecJSON ¶
GetSpecJSON returns the raw JSON bytes of the embedded OpenAPI specification: decompressed but not unmarshaled. External references are not resolved here; the bytes are the spec exactly as embedded by codegen. The result is cached at package init time, so repeated calls are cheap.
func GetSwagger
deprecated
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerFromMuxWithBaseURL ¶
func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
Types ¶
type APIKey ¶
type APIKey struct {
// CreatedAt The date and time the API key was created.
CreatedAt *time.Time `json:"created_at,omitempty"`
// ID The ID of the API key.
ID *string `json:"id,omitempty"`
// Name The name of the API key.
Name *string `json:"name,omitempty"`
}
APIKey defines model for ApiKey.
type AddContactToSegment200JSONResponse ¶
type AddContactToSegment200JSONResponse AddContactToSegmentResponseSuccess
func (AddContactToSegment200JSONResponse) VisitAddContactToSegmentResponse ¶
func (response AddContactToSegment200JSONResponse) VisitAddContactToSegmentResponse(w http.ResponseWriter) error
type AddContactToSegmentResponseFunc ¶
type AddContactToSegmentResponseFunc func(http.ResponseWriter) error
AddContactToSegmentResponseFunc writes a fully custom response for AddContactToSegment.
func (AddContactToSegmentResponseFunc) VisitAddContactToSegmentResponse ¶
func (f AddContactToSegmentResponseFunc) VisitAddContactToSegmentResponse(w http.ResponseWriter) error
VisitAddContactToSegmentResponse implements AddContactToSegmentResponseObject.
type AddContactToSegmentResponseObject ¶
type AddContactToSegmentResponseObject interface {
VisitAddContactToSegmentResponse(w http.ResponseWriter) error
}
type AddContactToSegmentResponseSuccess ¶
type AddContactToSegmentResponseSuccess struct {
// ContactID The ID of the contact.
ContactID *string `json:"contact_id,omitempty"`
// Object The object type.
//
// Example: contact_segment
Object *string `json:"object,omitempty"`
// SegmentID The ID of the segment.
SegmentID *string `json:"segment_id,omitempty"`
}
AddContactToSegmentResponseSuccess defines model for AddContactToSegmentResponseSuccess.
type AddContactToSegmentdefaultJSONResponse ¶
type AddContactToSegmentdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (AddContactToSegmentdefaultJSONResponse) VisitAddContactToSegmentResponse ¶
func (response AddContactToSegmentdefaultJSONResponse) VisitAddContactToSegmentResponse(w http.ResponseWriter) error
type Attachment ¶
type Attachment struct {
// Content Content of an attached file.
Content *openapi_types.File `json:"content,omitempty"`
// ContentID Content ID for embedding inline images using cid references (e.g., cid:image001).
ContentID *string `json:"content_id,omitempty"`
// ContentType Optional content type for the attachment, if not set it will be derived from the filename property
ContentType *string `json:"content_type,omitempty"`
// Filename Name of attached file.
Filename *string `json:"filename,omitempty"`
// Path Path where the attachment file is hosted
Path *string `json:"path,omitempty"`
}
Attachment defines model for Attachment.
type Call ¶
type Call[Request, Response any] struct { Sequence uint64 StartedAt time.Time CompletedAt time.Time Request Request Response Response HandlerError error SnapshotError error }
Call is one completed invocation of a typed Resend API operation.
type CallLog ¶
type CallLog[Request, Response any] struct { // contains filtered or unexported fields }
CallLog stores completed calls for one Resend API operation.
CallLog is safe for concurrent use. Request values are copied through their JSON representation before being retained because every request in the pinned Resend OpenAPI specification uses application/json.
func (*CallLog[Request, Response]) Reset ¶
func (l *CallLog[Request, Response]) Reset()
Reset removes all retained calls from this operation.
type Calls ¶
type Calls struct {
AddContactToSegment *CallLog[AddContactToSegmentRequestObject, AddContactToSegmentResponseObject]
CancelEmail *CallLog[CancelEmailRequestObject, CancelEmailResponseObject]
CreateAPIKey *CallLog[CreateAPIKeyRequestObject, CreateAPIKeyResponseObject]
CreateAudience *CallLog[CreateAudienceRequestObject, CreateAudienceResponseObject]
CreateBroadcast *CallLog[CreateBroadcastRequestObject, CreateBroadcastResponseObject]
CreateContact *CallLog[CreateContactRequestObject, CreateContactResponseObject]
CreateContactProperty *CallLog[CreateContactPropertyRequestObject, CreateContactPropertyResponseObject]
CreateDomain *CallLog[CreateDomainRequestObject, CreateDomainResponseObject]
CreateSegment *CallLog[CreateSegmentRequestObject, CreateSegmentResponseObject]
CreateTemplate *CallLog[CreateTemplateRequestObject, CreateTemplateResponseObject]
CreateTopic *CallLog[CreateTopicRequestObject, CreateTopicResponseObject]
CreateWebhook *CallLog[CreateWebhookRequestObject, CreateWebhookResponseObject]
DeleteAPIKey *CallLog[DeleteAPIKeyRequestObject, DeleteAPIKeyResponseObject]
DeleteAudience *CallLog[DeleteAudienceRequestObject, DeleteAudienceResponseObject]
DeleteBroadcast *CallLog[DeleteBroadcastRequestObject, DeleteBroadcastResponseObject]
DeleteContact *CallLog[DeleteContactRequestObject, DeleteContactResponseObject]
DeleteContactProperty *CallLog[DeleteContactPropertyRequestObject, DeleteContactPropertyResponseObject]
DeleteDomain *CallLog[DeleteDomainRequestObject, DeleteDomainResponseObject]
DeleteSegment *CallLog[DeleteSegmentRequestObject, DeleteSegmentResponseObject]
DeleteTemplate *CallLog[DeleteTemplateRequestObject, DeleteTemplateResponseObject]
DeleteTopic *CallLog[DeleteTopicRequestObject, DeleteTopicResponseObject]
DeleteWebhook *CallLog[DeleteWebhookRequestObject, DeleteWebhookResponseObject]
DuplicateTemplate *CallLog[DuplicateTemplateRequestObject, DuplicateTemplateResponseObject]
GetAudience *CallLog[GetAudienceRequestObject, GetAudienceResponseObject]
GetBroadcast *CallLog[GetBroadcastRequestObject, GetBroadcastResponseObject]
GetContact *CallLog[GetContactRequestObject, GetContactResponseObject]
GetContactProperty *CallLog[GetContactPropertyRequestObject, GetContactPropertyResponseObject]
GetDomain *CallLog[GetDomainRequestObject, GetDomainResponseObject]
GetEmail *CallLog[GetEmailRequestObject, GetEmailResponseObject]
GetEmailAttachment *CallLog[GetEmailAttachmentRequestObject, GetEmailAttachmentResponseObject]
GetReceivedEmail *CallLog[GetReceivedEmailRequestObject, GetReceivedEmailResponseObject]
GetReceivedEmailAttachment *CallLog[GetReceivedEmailAttachmentRequestObject, GetReceivedEmailAttachmentResponseObject]
GetSegment *CallLog[GetSegmentRequestObject, GetSegmentResponseObject]
GetTemplate *CallLog[GetTemplateRequestObject, GetTemplateResponseObject]
GetTopic *CallLog[GetTopicRequestObject, GetTopicResponseObject]
GetWebhook *CallLog[GetWebhookRequestObject, GetWebhookResponseObject]
ListAPIKeys *CallLog[ListAPIKeysRequestObject, ListAPIKeysResponseObject]
ListAudiences *CallLog[ListAudiencesRequestObject, ListAudiencesResponseObject]
ListBroadcasts *CallLog[ListBroadcastsRequestObject, ListBroadcastsResponseObject]
ListContactProperties *CallLog[ListContactPropertiesRequestObject, ListContactPropertiesResponseObject]
ListContactSegments *CallLog[ListContactSegmentsRequestObject, ListContactSegmentsResponseObject]
ListContactTopics *CallLog[ListContactTopicsRequestObject, ListContactTopicsResponseObject]
ListContacts *CallLog[ListContactsRequestObject, ListContactsResponseObject]
ListDomains *CallLog[ListDomainsRequestObject, ListDomainsResponseObject]
ListEmailAttachments *CallLog[ListEmailAttachmentsRequestObject, ListEmailAttachmentsResponseObject]
ListEmails *CallLog[ListEmailsRequestObject, ListEmailsResponseObject]
ListReceivedEmailAttachments *CallLog[ListReceivedEmailAttachmentsRequestObject, ListReceivedEmailAttachmentsResponseObject]
ListReceivedEmails *CallLog[ListReceivedEmailsRequestObject, ListReceivedEmailsResponseObject]
ListSegments *CallLog[ListSegmentsRequestObject, ListSegmentsResponseObject]
ListTemplates *CallLog[ListTemplatesRequestObject, ListTemplatesResponseObject]
ListTopics *CallLog[ListTopicsRequestObject, ListTopicsResponseObject]
ListWebhooks *CallLog[ListWebhooksRequestObject, ListWebhooksResponseObject]
PublishTemplate *CallLog[PublishTemplateRequestObject, PublishTemplateResponseObject]
RemoveContactFromSegment *CallLog[RemoveContactFromSegmentRequestObject, RemoveContactFromSegmentResponseObject]
SendBatchEmails *CallLog[SendBatchEmailsRequestObject, SendBatchEmailsResponseObject]
SendBroadcast *CallLog[SendBroadcastRequestObject, SendBroadcastResponseObject]
SendEmail *CallLog[SendEmailRequestObject, SendEmailResponseObject]
UpdateBroadcast *CallLog[UpdateBroadcastRequestObject, UpdateBroadcastResponseObject]
UpdateContact *CallLog[UpdateContactRequestObject, UpdateContactResponseObject]
UpdateContactProperty *CallLog[UpdateContactPropertyRequestObject, UpdateContactPropertyResponseObject]
UpdateContactTopics *CallLog[UpdateContactTopicsRequestObject, UpdateContactTopicsResponseObject]
UpdateDomain *CallLog[UpdateDomainRequestObject, UpdateDomainResponseObject]
UpdateEmail *CallLog[UpdateEmailRequestObject, UpdateEmailResponseObject]
UpdateTemplate *CallLog[UpdateTemplateRequestObject, UpdateTemplateResponseObject]
UpdateTopic *CallLog[UpdateTopicRequestObject, UpdateTopicResponseObject]
UpdateWebhook *CallLog[UpdateWebhookRequestObject, UpdateWebhookResponseObject]
VerifyDomain *CallLog[VerifyDomainRequestObject, VerifyDomainResponseObject]
// contains filtered or unexported fields
}
Calls contains a concurrency-safe typed call log for every Resend API operation.
type CancelEmail200JSONResponse ¶
type CancelEmail200JSONResponse Email
func (CancelEmail200JSONResponse) VisitCancelEmailResponse ¶
func (response CancelEmail200JSONResponse) VisitCancelEmailResponse(w http.ResponseWriter) error
type CancelEmailRequestObject ¶
type CancelEmailRequestObject struct {
EmailID string `json:"email_id"`
}
type CancelEmailResponseFunc ¶
type CancelEmailResponseFunc func(http.ResponseWriter) error
CancelEmailResponseFunc writes a fully custom response for CancelEmail.
func (CancelEmailResponseFunc) VisitCancelEmailResponse ¶
func (f CancelEmailResponseFunc) VisitCancelEmailResponse(w http.ResponseWriter) error
VisitCancelEmailResponse implements CancelEmailResponseObject.
type CancelEmailResponseObject ¶
type CancelEmailResponseObject interface {
VisitCancelEmailResponse(w http.ResponseWriter) error
}
type CancelEmaildefaultJSONResponse ¶
type CancelEmaildefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (CancelEmaildefaultJSONResponse) VisitCancelEmailResponse ¶
func (response CancelEmaildefaultJSONResponse) VisitCancelEmailResponse(w http.ResponseWriter) error
type CreateAPIKey201JSONResponse ¶
type CreateAPIKey201JSONResponse CreateAPIKeyResponse
func (CreateAPIKey201JSONResponse) VisitCreateAPIKeyResponse ¶
func (response CreateAPIKey201JSONResponse) VisitCreateAPIKeyResponse(w http.ResponseWriter) error
type CreateAPIKeyJSONRequestBody ¶
type CreateAPIKeyJSONRequestBody = CreateAPIKeyRequest
CreateAPIKeyJSONRequestBody defines body for CreateAPIKey for application/json ContentType.
type CreateAPIKeyRequest ¶
type CreateAPIKeyRequest struct {
// DomainID Restrict an API key to send emails only from a specific domain. Only used when the permission is sending_acces.
DomainID *string `json:"domain_id,omitempty"`
// Name The API key name.
Name string `json:"name"`
// Permission The API key can have full access to Resend’s API or be only restricted to send emails. * full_access - Can create, delete, get, and update any resource. * sending_access - Can only send emails.
Permission *CreateAPIKeyRequestPermission `json:"permission,omitempty"`
}
CreateAPIKeyRequest defines model for CreateApiKeyRequest.
type CreateAPIKeyRequestObject ¶
type CreateAPIKeyRequestObject struct {
Body *CreateAPIKeyJSONRequestBody
}
type CreateAPIKeyRequestPermission ¶
type CreateAPIKeyRequestPermission string
CreateAPIKeyRequestPermission The API key can have full access to Resend’s API or be only restricted to send emails. * full_access - Can create, delete, get, and update any resource. * sending_access - Can only send emails.
const ( FullAccess CreateAPIKeyRequestPermission = "full_access" SendingAccess CreateAPIKeyRequestPermission = "sending_access" )
Defines values for CreateAPIKeyRequestPermission.
func (CreateAPIKeyRequestPermission) Valid ¶
func (e CreateAPIKeyRequestPermission) Valid() bool
Valid indicates whether the value is a known member of the CreateAPIKeyRequestPermission enum.
type CreateAPIKeyResponse ¶
type CreateAPIKeyResponse struct {
// ID The ID of the API key.
ID *string `json:"id,omitempty"`
// Token The token of the API key.
Token *string `json:"token,omitempty"`
}
CreateAPIKeyResponse defines model for CreateApiKeyResponse.
type CreateAPIKeyResponseFunc ¶
type CreateAPIKeyResponseFunc func(http.ResponseWriter) error
CreateAPIKeyResponseFunc writes a fully custom response for CreateAPIKey.
func (CreateAPIKeyResponseFunc) VisitCreateAPIKeyResponse ¶
func (f CreateAPIKeyResponseFunc) VisitCreateAPIKeyResponse(w http.ResponseWriter) error
VisitCreateAPIKeyResponse implements CreateAPIKeyResponseObject.
type CreateAPIKeyResponseObject ¶
type CreateAPIKeyResponseObject interface {
VisitCreateAPIKeyResponse(w http.ResponseWriter) error
}
type CreateAPIKeydefaultJSONResponse ¶
type CreateAPIKeydefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (CreateAPIKeydefaultJSONResponse) VisitCreateAPIKeyResponse ¶
func (response CreateAPIKeydefaultJSONResponse) VisitCreateAPIKeyResponse(w http.ResponseWriter) error
type CreateAudience201JSONResponse ¶
type CreateAudience201JSONResponse CreateAudienceResponseSuccess
func (CreateAudience201JSONResponse) VisitCreateAudienceResponse ¶
func (response CreateAudience201JSONResponse) VisitCreateAudienceResponse(w http.ResponseWriter) error
type CreateAudienceJSONRequestBody
deprecated
type CreateAudienceJSONRequestBody = CreateAudienceOptions
CreateAudienceJSONRequestBody defines body for CreateAudience for application/json ContentType.
Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set
type CreateAudienceOptions
deprecated
type CreateAudienceOptions struct {
// Name The name of the audience you want to create.
Name string `json:"name"`
}
CreateAudienceOptions defines model for CreateAudienceOptions.
Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set
type CreateAudienceRequestObject ¶
type CreateAudienceRequestObject struct {
Body *CreateAudienceJSONRequestBody
}
type CreateAudienceResponseFunc ¶
type CreateAudienceResponseFunc func(http.ResponseWriter) error
CreateAudienceResponseFunc writes a fully custom response for CreateAudience.
func (CreateAudienceResponseFunc) VisitCreateAudienceResponse ¶
func (f CreateAudienceResponseFunc) VisitCreateAudienceResponse(w http.ResponseWriter) error
VisitCreateAudienceResponse implements CreateAudienceResponseObject.
type CreateAudienceResponseObject ¶
type CreateAudienceResponseObject interface {
VisitCreateAudienceResponse(w http.ResponseWriter) error
}
type CreateAudienceResponseSuccess
deprecated
type CreateAudienceResponseSuccess struct {
// ID The ID of the audience.
//
// Example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
ID *string `json:"id,omitempty"`
// Name The name of the audience.
//
// Example: Registered Users
Name *string `json:"name,omitempty"`
// Object The object of the audience.
//
// Example: audience
Object *string `json:"object,omitempty"`
}
CreateAudienceResponseSuccess defines model for CreateAudienceResponseSuccess.
Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set
type CreateAudiencedefaultJSONResponse ¶
type CreateAudiencedefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (CreateAudiencedefaultJSONResponse) VisitCreateAudienceResponse ¶
func (response CreateAudiencedefaultJSONResponse) VisitCreateAudienceResponse(w http.ResponseWriter) error
type CreateBatchEmailsResponse ¶
type CreateBatchEmailsResponse struct {
Data *[]struct {
// ID The ID of the sent email.
ID *string `json:"id,omitempty"`
} `json:"data,omitempty"`
}
CreateBatchEmailsResponse defines model for CreateBatchEmailsResponse.
type CreateBroadcast201JSONResponse ¶
type CreateBroadcast201JSONResponse CreateBroadcastResponseSuccess
func (CreateBroadcast201JSONResponse) VisitCreateBroadcastResponse ¶
func (response CreateBroadcast201JSONResponse) VisitCreateBroadcastResponse(w http.ResponseWriter) error
type CreateBroadcastJSONRequestBody ¶
type CreateBroadcastJSONRequestBody = CreateBroadcastOptions
CreateBroadcastJSONRequestBody defines body for CreateBroadcast for application/json ContentType.
type CreateBroadcastOptions ¶
type CreateBroadcastOptions struct {
// AudienceID Use `segment_id` instead. Unique identifier of the segment this broadcast will be sent to.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
AudienceID *string `json:"audience_id,omitempty"`
// From The email address of the sender.
From string `json:"from"`
// HTML The HTML version of the message.
HTML *string `json:"html,omitempty"`
// Name Name of the broadcast.
Name *string `json:"name,omitempty"`
// PreviewText The preview text of the email.
//
// Example: Here are our announcements
PreviewText *string `json:"preview_text,omitempty"`
// ReplyTo The email addresses to which replies should be sent.
ReplyTo *[]string `json:"reply_to,omitempty"`
// ScheduledAt Schedule time to send the broadcast. Can only be used if `send` is true.
ScheduledAt *string `json:"scheduled_at,omitempty"`
// SegmentID Unique identifier of the segment this broadcast will be sent to.
SegmentID string `json:"segment_id"`
// Send Whether to send the broadcast immediately or keep it as a draft.
Send *bool `json:"send,omitempty"`
// Subject The subject line of the email.
Subject string `json:"subject"`
// Text The plain text version of the message.
Text *string `json:"text,omitempty"`
// TopicID The topic ID that the broadcast will be scoped to.
TopicID *string `json:"topic_id,omitempty"`
}
CreateBroadcastOptions defines model for CreateBroadcastOptions.
type CreateBroadcastRequestObject ¶
type CreateBroadcastRequestObject struct {
Body *CreateBroadcastJSONRequestBody
}
type CreateBroadcastResponseFunc ¶
type CreateBroadcastResponseFunc func(http.ResponseWriter) error
CreateBroadcastResponseFunc writes a fully custom response for CreateBroadcast.
func (CreateBroadcastResponseFunc) VisitCreateBroadcastResponse ¶
func (f CreateBroadcastResponseFunc) VisitCreateBroadcastResponse(w http.ResponseWriter) error
VisitCreateBroadcastResponse implements CreateBroadcastResponseObject.
type CreateBroadcastResponseObject ¶
type CreateBroadcastResponseObject interface {
VisitCreateBroadcastResponse(w http.ResponseWriter) error
}
type CreateBroadcastResponseSuccess ¶
type CreateBroadcastResponseSuccess struct {
// ID The ID of the broadcast.
//
// Example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
ID *string `json:"id,omitempty"`
// Object The object type of the response.
//
// Example: broadcast
Object *string `json:"object,omitempty"`
}
CreateBroadcastResponseSuccess defines model for CreateBroadcastResponseSuccess.
type CreateBroadcastdefaultJSONResponse ¶
type CreateBroadcastdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (CreateBroadcastdefaultJSONResponse) VisitCreateBroadcastResponse ¶
func (response CreateBroadcastdefaultJSONResponse) VisitCreateBroadcastResponse(w http.ResponseWriter) error
type CreateContact201JSONResponse ¶
type CreateContact201JSONResponse CreateContactResponseSuccess
func (CreateContact201JSONResponse) VisitCreateContactResponse ¶
func (response CreateContact201JSONResponse) VisitCreateContactResponse(w http.ResponseWriter) error
type CreateContactJSONRequestBody ¶
type CreateContactJSONRequestBody = CreateContactOptions
CreateContactJSONRequestBody defines body for CreateContact for application/json ContentType.
type CreateContactOptions ¶
type CreateContactOptions struct {
// AudienceID Unique identifier of the audience to which the contact belongs.
//
// Example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
AudienceID *string `json:"audience_id,omitempty"`
// Email Email address of the contact.
//
// Example: steve.wozniak@gmail.com
Email string `json:"email"`
// FirstName First name of the contact.
//
// Example: Steve
FirstName *string `json:"first_name,omitempty"`
// LastName Last name of the contact.
//
// Example: Wozniak
LastName *string `json:"last_name,omitempty"`
// Properties A map of custom property keys and values to create.
Properties *map[string]interface{} `json:"properties,omitempty"`
// Segments Array of segment IDs to add the contact to.
Segments *[]string `json:"segments,omitempty"`
// Topics Array of topic subscriptions for the contact.
Topics *[]struct {
// ID The topic ID.
ID *string `json:"id,omitempty"`
// Subscription The subscription status for this topic.
Subscription *CreateContactOptionsTopicsSubscription `json:"subscription,omitempty"`
} `json:"topics,omitempty"`
// Unsubscribed The Contact's global subscription status. If set to true, the contact will be unsubscribed from all Broadcasts.
//
// Example: false
Unsubscribed *bool `json:"unsubscribed,omitempty"`
}
CreateContactOptions defines model for CreateContactOptions.
type CreateContactOptionsTopicsSubscription ¶
type CreateContactOptionsTopicsSubscription string
CreateContactOptionsTopicsSubscription The subscription status for this topic.
const ( CreateContactOptionsTopicsSubscriptionOptIn CreateContactOptionsTopicsSubscription = "opt_in" CreateContactOptionsTopicsSubscriptionOptOut CreateContactOptionsTopicsSubscription = "opt_out" )
Defines values for CreateContactOptionsTopicsSubscription.
func (CreateContactOptionsTopicsSubscription) Valid ¶
func (e CreateContactOptionsTopicsSubscription) Valid() bool
Valid indicates whether the value is a known member of the CreateContactOptionsTopicsSubscription enum.
type CreateContactProperty201JSONResponse ¶
type CreateContactProperty201JSONResponse CreateContactPropertyResponseSuccess
func (CreateContactProperty201JSONResponse) VisitCreateContactPropertyResponse ¶
func (response CreateContactProperty201JSONResponse) VisitCreateContactPropertyResponse(w http.ResponseWriter) error
type CreateContactPropertyJSONRequestBody ¶
type CreateContactPropertyJSONRequestBody = CreateContactPropertyOptions
CreateContactPropertyJSONRequestBody defines body for CreateContactProperty for application/json ContentType.
type CreateContactPropertyOptions ¶
type CreateContactPropertyOptions struct {
// FallbackValue The default value to use when the property is not set for a contact. Must match the type specified in the type field.
FallbackValue *CreateContactPropertyOptions_FallbackValue `json:"fallback_value,omitempty"`
// Key The property key. Max length is 50 characters. Only alphanumeric characters and underscores are allowed.
Key string `json:"key"`
// Type The property type.
Type CreateContactPropertyOptionsType `json:"type"`
}
CreateContactPropertyOptions defines model for CreateContactPropertyOptions.
type CreateContactPropertyOptionsFallbackValue0 ¶
type CreateContactPropertyOptionsFallbackValue0 = string
CreateContactPropertyOptionsFallbackValue0 defines model for CreateContactPropertyOptions.FallbackValue.0.
type CreateContactPropertyOptionsFallbackValue1 ¶
type CreateContactPropertyOptionsFallbackValue1 = float32
CreateContactPropertyOptionsFallbackValue1 defines model for CreateContactPropertyOptions.FallbackValue.1.
type CreateContactPropertyOptionsType ¶
type CreateContactPropertyOptionsType string
CreateContactPropertyOptionsType The property type.
const ( CreateContactPropertyOptionsTypeNumber CreateContactPropertyOptionsType = "number" CreateContactPropertyOptionsTypeString CreateContactPropertyOptionsType = "string" )
Defines values for CreateContactPropertyOptionsType.
func (CreateContactPropertyOptionsType) Valid ¶
func (e CreateContactPropertyOptionsType) Valid() bool
Valid indicates whether the value is a known member of the CreateContactPropertyOptionsType enum.
type CreateContactPropertyOptions_FallbackValue ¶
type CreateContactPropertyOptions_FallbackValue struct {
// contains filtered or unexported fields
}
CreateContactPropertyOptions_FallbackValue The default value to use when the property is not set for a contact. Must match the type specified in the type field.
func (CreateContactPropertyOptions_FallbackValue) AsCreateContactPropertyOptionsFallbackValue0 ¶
func (t CreateContactPropertyOptions_FallbackValue) AsCreateContactPropertyOptionsFallbackValue0() (CreateContactPropertyOptionsFallbackValue0, error)
AsCreateContactPropertyOptionsFallbackValue0 returns the union data inside the CreateContactPropertyOptions_FallbackValue as a CreateContactPropertyOptionsFallbackValue0
func (CreateContactPropertyOptions_FallbackValue) AsCreateContactPropertyOptionsFallbackValue1 ¶
func (t CreateContactPropertyOptions_FallbackValue) AsCreateContactPropertyOptionsFallbackValue1() (CreateContactPropertyOptionsFallbackValue1, error)
AsCreateContactPropertyOptionsFallbackValue1 returns the union data inside the CreateContactPropertyOptions_FallbackValue as a CreateContactPropertyOptionsFallbackValue1
func (*CreateContactPropertyOptions_FallbackValue) FromCreateContactPropertyOptionsFallbackValue0 ¶
func (t *CreateContactPropertyOptions_FallbackValue) FromCreateContactPropertyOptionsFallbackValue0(v CreateContactPropertyOptionsFallbackValue0) error
FromCreateContactPropertyOptionsFallbackValue0 overwrites any union data inside the CreateContactPropertyOptions_FallbackValue as the provided CreateContactPropertyOptionsFallbackValue0
func (*CreateContactPropertyOptions_FallbackValue) FromCreateContactPropertyOptionsFallbackValue1 ¶
func (t *CreateContactPropertyOptions_FallbackValue) FromCreateContactPropertyOptionsFallbackValue1(v CreateContactPropertyOptionsFallbackValue1) error
FromCreateContactPropertyOptionsFallbackValue1 overwrites any union data inside the CreateContactPropertyOptions_FallbackValue as the provided CreateContactPropertyOptionsFallbackValue1
func (CreateContactPropertyOptions_FallbackValue) MarshalJSON ¶
func (t CreateContactPropertyOptions_FallbackValue) MarshalJSON() ([]byte, error)
func (*CreateContactPropertyOptions_FallbackValue) MergeCreateContactPropertyOptionsFallbackValue0 ¶
func (t *CreateContactPropertyOptions_FallbackValue) MergeCreateContactPropertyOptionsFallbackValue0(v CreateContactPropertyOptionsFallbackValue0) error
MergeCreateContactPropertyOptionsFallbackValue0 performs a merge with any union data inside the CreateContactPropertyOptions_FallbackValue, using the provided CreateContactPropertyOptionsFallbackValue0
func (*CreateContactPropertyOptions_FallbackValue) MergeCreateContactPropertyOptionsFallbackValue1 ¶
func (t *CreateContactPropertyOptions_FallbackValue) MergeCreateContactPropertyOptionsFallbackValue1(v CreateContactPropertyOptionsFallbackValue1) error
MergeCreateContactPropertyOptionsFallbackValue1 performs a merge with any union data inside the CreateContactPropertyOptions_FallbackValue, using the provided CreateContactPropertyOptionsFallbackValue1
func (*CreateContactPropertyOptions_FallbackValue) UnmarshalJSON ¶
func (t *CreateContactPropertyOptions_FallbackValue) UnmarshalJSON(b []byte) error
type CreateContactPropertyRequestObject ¶
type CreateContactPropertyRequestObject struct {
Body *CreateContactPropertyJSONRequestBody
}
type CreateContactPropertyResponseFunc ¶
type CreateContactPropertyResponseFunc func(http.ResponseWriter) error
CreateContactPropertyResponseFunc writes a fully custom response for CreateContactProperty.
func (CreateContactPropertyResponseFunc) VisitCreateContactPropertyResponse ¶
func (f CreateContactPropertyResponseFunc) VisitCreateContactPropertyResponse(w http.ResponseWriter) error
VisitCreateContactPropertyResponse implements CreateContactPropertyResponseObject.
type CreateContactPropertyResponseObject ¶
type CreateContactPropertyResponseObject interface {
VisitCreateContactPropertyResponse(w http.ResponseWriter) error
}
type CreateContactPropertyResponseSuccess ¶
type CreateContactPropertyResponseSuccess struct {
// ID The ID of the contact property.
//
// Example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
ID *string `json:"id,omitempty"`
// Object The object type of the response.
//
// Example: contact_property
Object *string `json:"object,omitempty"`
}
CreateContactPropertyResponseSuccess defines model for CreateContactPropertyResponseSuccess.
type CreateContactPropertydefaultJSONResponse ¶
type CreateContactPropertydefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (CreateContactPropertydefaultJSONResponse) VisitCreateContactPropertyResponse ¶
func (response CreateContactPropertydefaultJSONResponse) VisitCreateContactPropertyResponse(w http.ResponseWriter) error
type CreateContactRequestObject ¶
type CreateContactRequestObject struct {
Body *CreateContactJSONRequestBody
}
type CreateContactResponseFunc ¶
type CreateContactResponseFunc func(http.ResponseWriter) error
CreateContactResponseFunc writes a fully custom response for CreateContact.
func (CreateContactResponseFunc) VisitCreateContactResponse ¶
func (f CreateContactResponseFunc) VisitCreateContactResponse(w http.ResponseWriter) error
VisitCreateContactResponse implements CreateContactResponseObject.
type CreateContactResponseObject ¶
type CreateContactResponseObject interface {
VisitCreateContactResponse(w http.ResponseWriter) error
}
type CreateContactResponseSuccess ¶
type CreateContactResponseSuccess struct {
// ID Unique identifier for the created contact.
//
// Example: 479e3145-dd38-476b-932c-529ceb705947
ID *string `json:"id,omitempty"`
// Object Type of the response object.
//
// Example: contact
Object *string `json:"object,omitempty"`
}
CreateContactResponseSuccess defines model for CreateContactResponseSuccess.
type CreateContactdefaultJSONResponse ¶
type CreateContactdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (CreateContactdefaultJSONResponse) VisitCreateContactResponse ¶
func (response CreateContactdefaultJSONResponse) VisitCreateContactResponse(w http.ResponseWriter) error
type CreateDomain201JSONResponse ¶
type CreateDomain201JSONResponse CreateDomainResponse
func (CreateDomain201JSONResponse) VisitCreateDomainResponse ¶
func (response CreateDomain201JSONResponse) VisitCreateDomainResponse(w http.ResponseWriter) error
type CreateDomainJSONRequestBody ¶
type CreateDomainJSONRequestBody = CreateDomainRequest
CreateDomainJSONRequestBody defines body for CreateDomain for application/json ContentType.
type CreateDomainRequest ¶
type CreateDomainRequest struct {
// Capabilities Configure the domain capabilities for sending and receiving emails. At least one capability must be enabled.
Capabilities *DomainCapabilities `json:"capabilities,omitempty"`
// ClickTracking Track clicks within the body of each HTML email.
ClickTracking *bool `json:"click_tracking,omitempty"`
// CustomReturnPath For advanced use cases, choose a subdomain for the Return-Path address. Defaults to 'send' (i.e., send.yourdomain.tld).
CustomReturnPath *string `json:"custom_return_path,omitempty"`
// Name The name of the domain you want to create.
Name string `json:"name"`
// OpenTracking Track the open rate of each email.
OpenTracking *bool `json:"open_tracking,omitempty"`
// Region The region where emails will be sent from. Possible values are us-east-1 | eu-west-1 | sa-east-1 | ap-northeast-1
Region *CreateDomainRequestRegion `json:"region,omitempty"`
// TLS TLS mode. Opportunistic attempts secure connection but falls back to unencrypted. Enforced requires TLS or email won't be sent.
TLS *CreateDomainRequestTLS `json:"tls,omitempty"`
}
CreateDomainRequest defines model for CreateDomainRequest.
type CreateDomainRequestObject ¶
type CreateDomainRequestObject struct {
Body *CreateDomainJSONRequestBody
}
type CreateDomainRequestRegion ¶
type CreateDomainRequestRegion string
CreateDomainRequestRegion The region where emails will be sent from. Possible values are us-east-1 | eu-west-1 | sa-east-1 | ap-northeast-1
const ( ApNortheast1 CreateDomainRequestRegion = "ap-northeast-1" EuWest1 CreateDomainRequestRegion = "eu-west-1" SaEast1 CreateDomainRequestRegion = "sa-east-1" UsEast1 CreateDomainRequestRegion = "us-east-1" )
Defines values for CreateDomainRequestRegion.
func (CreateDomainRequestRegion) Valid ¶
func (e CreateDomainRequestRegion) Valid() bool
Valid indicates whether the value is a known member of the CreateDomainRequestRegion enum.
type CreateDomainRequestTLS ¶
type CreateDomainRequestTLS string
CreateDomainRequestTLS TLS mode. Opportunistic attempts secure connection but falls back to unencrypted. Enforced requires TLS or email won't be sent.
const ( Enforced CreateDomainRequestTLS = "enforced" Opportunistic CreateDomainRequestTLS = "opportunistic" )
Defines values for CreateDomainRequestTLS.
func (CreateDomainRequestTLS) Valid ¶
func (e CreateDomainRequestTLS) Valid() bool
Valid indicates whether the value is a known member of the CreateDomainRequestTLS enum.
type CreateDomainResponse ¶
type CreateDomainResponse struct {
// Capabilities Configure the domain capabilities for sending and receiving emails. At least one capability must be enabled.
Capabilities *DomainCapabilities `json:"capabilities,omitempty"`
// CreatedAt The date and time the domain was created.
CreatedAt *time.Time `json:"created_at,omitempty"`
// ID The ID of the domain.
ID *string `json:"id,omitempty"`
// Name The name of the domain.
Name *string `json:"name,omitempty"`
Records *[]DomainRecord `json:"records,omitempty"`
// Region The region where the domain is hosted.
Region *string `json:"region,omitempty"`
// Status The status of the domain.
Status *string `json:"status,omitempty"`
}
CreateDomainResponse defines model for CreateDomainResponse.
type CreateDomainResponseFunc ¶
type CreateDomainResponseFunc func(http.ResponseWriter) error
CreateDomainResponseFunc writes a fully custom response for CreateDomain.
func (CreateDomainResponseFunc) VisitCreateDomainResponse ¶
func (f CreateDomainResponseFunc) VisitCreateDomainResponse(w http.ResponseWriter) error
VisitCreateDomainResponse implements CreateDomainResponseObject.
type CreateDomainResponseObject ¶
type CreateDomainResponseObject interface {
VisitCreateDomainResponse(w http.ResponseWriter) error
}
type CreateDomaindefaultJSONResponse ¶
type CreateDomaindefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (CreateDomaindefaultJSONResponse) VisitCreateDomainResponse ¶
func (response CreateDomaindefaultJSONResponse) VisitCreateDomainResponse(w http.ResponseWriter) error
type CreateSegment201JSONResponse ¶
type CreateSegment201JSONResponse CreateSegmentResponseSuccess
func (CreateSegment201JSONResponse) VisitCreateSegmentResponse ¶
func (response CreateSegment201JSONResponse) VisitCreateSegmentResponse(w http.ResponseWriter) error
type CreateSegmentJSONRequestBody ¶
type CreateSegmentJSONRequestBody = CreateSegmentOptions
CreateSegmentJSONRequestBody defines body for CreateSegment for application/json ContentType.
type CreateSegmentOptions ¶
type CreateSegmentOptions struct {
// AudienceID The ID of the audience this segment belongs to.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
AudienceID *string `json:"audience_id,omitempty"`
// Filter Filter conditions for the segment.
Filter *map[string]interface{} `json:"filter,omitempty"`
// Name The name of the segment.
Name string `json:"name"`
}
CreateSegmentOptions defines model for CreateSegmentOptions.
type CreateSegmentRequestObject ¶
type CreateSegmentRequestObject struct {
Body *CreateSegmentJSONRequestBody
}
type CreateSegmentResponseFunc ¶
type CreateSegmentResponseFunc func(http.ResponseWriter) error
CreateSegmentResponseFunc writes a fully custom response for CreateSegment.
func (CreateSegmentResponseFunc) VisitCreateSegmentResponse ¶
func (f CreateSegmentResponseFunc) VisitCreateSegmentResponse(w http.ResponseWriter) error
VisitCreateSegmentResponse implements CreateSegmentResponseObject.
type CreateSegmentResponseObject ¶
type CreateSegmentResponseObject interface {
VisitCreateSegmentResponse(w http.ResponseWriter) error
}
type CreateSegmentResponseSuccess ¶
type CreateSegmentResponseSuccess struct {
// ID The ID of the segment.
//
// Example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
ID *string `json:"id,omitempty"`
// Object The object type of the response.
//
// Example: segment
Object *string `json:"object,omitempty"`
}
CreateSegmentResponseSuccess defines model for CreateSegmentResponseSuccess.
type CreateSegmentdefaultJSONResponse ¶
type CreateSegmentdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (CreateSegmentdefaultJSONResponse) VisitCreateSegmentResponse ¶
func (response CreateSegmentdefaultJSONResponse) VisitCreateSegmentResponse(w http.ResponseWriter) error
type CreateTemplate201JSONResponse ¶
type CreateTemplate201JSONResponse CreateTemplateResponseSuccess
func (CreateTemplate201JSONResponse) VisitCreateTemplateResponse ¶
func (response CreateTemplate201JSONResponse) VisitCreateTemplateResponse(w http.ResponseWriter) error
type CreateTemplateJSONRequestBody ¶
type CreateTemplateJSONRequestBody = CreateTemplateRequest
CreateTemplateJSONRequestBody defines body for CreateTemplate for application/json ContentType.
type CreateTemplateRequest ¶
type CreateTemplateRequest struct {
// Alias The alias of the template.
Alias *string `json:"alias,omitempty"`
// From Sender email address. To include a friendly name, use the format "Your Name <sender@domain.com>".
From *string `json:"from,omitempty"`
// HTML The HTML version of the template.
HTML string `json:"html"`
// Name The name of the template.
Name string `json:"name"`
// ReplyTo Reply-to email addresses.
ReplyTo *[]string `json:"reply_to,omitempty"`
// Subject Email subject.
Subject *string `json:"subject,omitempty"`
// Text The plain text version of the template.
Text *string `json:"text,omitempty"`
Variables *[]TemplateVariableInput `json:"variables,omitempty"`
}
CreateTemplateRequest defines model for CreateTemplateRequest.
type CreateTemplateRequestObject ¶
type CreateTemplateRequestObject struct {
Body *CreateTemplateJSONRequestBody
}
type CreateTemplateResponseFunc ¶
type CreateTemplateResponseFunc func(http.ResponseWriter) error
CreateTemplateResponseFunc writes a fully custom response for CreateTemplate.
func (CreateTemplateResponseFunc) VisitCreateTemplateResponse ¶
func (f CreateTemplateResponseFunc) VisitCreateTemplateResponse(w http.ResponseWriter) error
VisitCreateTemplateResponse implements CreateTemplateResponseObject.
type CreateTemplateResponseObject ¶
type CreateTemplateResponseObject interface {
VisitCreateTemplateResponse(w http.ResponseWriter) error
}
type CreateTemplateResponseSuccess ¶
type CreateTemplateResponseSuccess struct {
// ID The ID of the template.
ID *string `json:"id,omitempty"`
// Object The object type of the response.
//
// Example: template
Object *string `json:"object,omitempty"`
}
CreateTemplateResponseSuccess defines model for CreateTemplateResponseSuccess.
type CreateTemplatedefaultJSONResponse ¶
type CreateTemplatedefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (CreateTemplatedefaultJSONResponse) VisitCreateTemplateResponse ¶
func (response CreateTemplatedefaultJSONResponse) VisitCreateTemplateResponse(w http.ResponseWriter) error
type CreateTopic201JSONResponse ¶
type CreateTopic201JSONResponse CreateTopicResponseSuccess
func (CreateTopic201JSONResponse) VisitCreateTopicResponse ¶
func (response CreateTopic201JSONResponse) VisitCreateTopicResponse(w http.ResponseWriter) error
type CreateTopicJSONRequestBody ¶
type CreateTopicJSONRequestBody = CreateTopicOptions
CreateTopicJSONRequestBody defines body for CreateTopic for application/json ContentType.
type CreateTopicOptions ¶
type CreateTopicOptions struct {
// DefaultSubscription The default subscription status for the topic. Cannot be changed after creation.
DefaultSubscription CreateTopicOptionsDefaultSubscription `json:"default_subscription"`
// Description A description of the topic. Max 200 characters.
Description *string `json:"description,omitempty"`
// Name The name of the topic. Max 50 characters.
Name string `json:"name"`
// Visibility The visibility of the topic. Public topics are visible to all contacts on the unsubscribe page. Private topics are only visible to opted-in contacts.
Visibility *CreateTopicOptionsVisibility `json:"visibility,omitempty"`
}
CreateTopicOptions defines model for CreateTopicOptions.
type CreateTopicOptionsDefaultSubscription ¶
type CreateTopicOptionsDefaultSubscription string
CreateTopicOptionsDefaultSubscription The default subscription status for the topic. Cannot be changed after creation.
const ( CreateTopicOptionsDefaultSubscriptionOptIn CreateTopicOptionsDefaultSubscription = "opt_in" CreateTopicOptionsDefaultSubscriptionOptOut CreateTopicOptionsDefaultSubscription = "opt_out" )
Defines values for CreateTopicOptionsDefaultSubscription.
func (CreateTopicOptionsDefaultSubscription) Valid ¶
func (e CreateTopicOptionsDefaultSubscription) Valid() bool
Valid indicates whether the value is a known member of the CreateTopicOptionsDefaultSubscription enum.
type CreateTopicOptionsVisibility ¶
type CreateTopicOptionsVisibility string
CreateTopicOptionsVisibility The visibility of the topic. Public topics are visible to all contacts on the unsubscribe page. Private topics are only visible to opted-in contacts.
const ( CreateTopicOptionsVisibilityPrivate CreateTopicOptionsVisibility = "private" CreateTopicOptionsVisibilityPublic CreateTopicOptionsVisibility = "public" )
Defines values for CreateTopicOptionsVisibility.
func (CreateTopicOptionsVisibility) Valid ¶
func (e CreateTopicOptionsVisibility) Valid() bool
Valid indicates whether the value is a known member of the CreateTopicOptionsVisibility enum.
type CreateTopicRequestObject ¶
type CreateTopicRequestObject struct {
Body *CreateTopicJSONRequestBody
}
type CreateTopicResponseFunc ¶
type CreateTopicResponseFunc func(http.ResponseWriter) error
CreateTopicResponseFunc writes a fully custom response for CreateTopic.
func (CreateTopicResponseFunc) VisitCreateTopicResponse ¶
func (f CreateTopicResponseFunc) VisitCreateTopicResponse(w http.ResponseWriter) error
VisitCreateTopicResponse implements CreateTopicResponseObject.
type CreateTopicResponseObject ¶
type CreateTopicResponseObject interface {
VisitCreateTopicResponse(w http.ResponseWriter) error
}
type CreateTopicResponseSuccess ¶
type CreateTopicResponseSuccess struct {
// ID The ID of the topic.
//
// Example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
ID *string `json:"id,omitempty"`
// Object The object type of the response.
//
// Example: topic
Object *string `json:"object,omitempty"`
}
CreateTopicResponseSuccess defines model for CreateTopicResponseSuccess.
type CreateTopicdefaultJSONResponse ¶
type CreateTopicdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (CreateTopicdefaultJSONResponse) VisitCreateTopicResponse ¶
func (response CreateTopicdefaultJSONResponse) VisitCreateTopicResponse(w http.ResponseWriter) error
type CreateWebhook201JSONResponse ¶
type CreateWebhook201JSONResponse CreateWebhookResponse
func (CreateWebhook201JSONResponse) VisitCreateWebhookResponse ¶
func (response CreateWebhook201JSONResponse) VisitCreateWebhookResponse(w http.ResponseWriter) error
type CreateWebhookJSONRequestBody ¶
type CreateWebhookJSONRequestBody = CreateWebhookRequest
CreateWebhookJSONRequestBody defines body for CreateWebhook for application/json ContentType.
type CreateWebhookRequest ¶
type CreateWebhookRequest struct {
// Endpoint The URL where webhook events will be sent.
//
// Example: https://webhook.example.com/handler
Endpoint string `json:"endpoint"`
// Events Array of event types to subscribe to.
//
// Example: ["email.sent","email.delivered","email.bounced"]
Events []string `json:"events"`
}
CreateWebhookRequest defines model for CreateWebhookRequest.
type CreateWebhookRequestObject ¶
type CreateWebhookRequestObject struct {
Body *CreateWebhookJSONRequestBody
}
type CreateWebhookResponse ¶
type CreateWebhookResponse struct {
// ID The ID of the webhook.
//
// Example: 479e3145-dd38-476b-932c-529ceb705947
ID *openapi_types.UUID `json:"id,omitempty"`
// Object The type of object.
//
// Example: webhook
Object *string `json:"object,omitempty"`
// SigningSecret The secret key used to verify webhook payloads.
//
// Example: whsec_...
SigningSecret *string `json:"signing_secret,omitempty"`
}
CreateWebhookResponse defines model for CreateWebhookResponse.
type CreateWebhookResponseFunc ¶
type CreateWebhookResponseFunc func(http.ResponseWriter) error
CreateWebhookResponseFunc writes a fully custom response for CreateWebhook.
func (CreateWebhookResponseFunc) VisitCreateWebhookResponse ¶
func (f CreateWebhookResponseFunc) VisitCreateWebhookResponse(w http.ResponseWriter) error
VisitCreateWebhookResponse implements CreateWebhookResponseObject.
type CreateWebhookResponseObject ¶
type CreateWebhookResponseObject interface {
VisitCreateWebhookResponse(w http.ResponseWriter) error
}
type CreateWebhookdefaultJSONResponse ¶
type CreateWebhookdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (CreateWebhookdefaultJSONResponse) VisitCreateWebhookResponse ¶
func (response CreateWebhookdefaultJSONResponse) VisitCreateWebhookResponse(w http.ResponseWriter) error
type DeleteAPIKey200Response ¶
type DeleteAPIKey200Response struct {
}
func (DeleteAPIKey200Response) VisitDeleteAPIKeyResponse ¶
func (response DeleteAPIKey200Response) VisitDeleteAPIKeyResponse(w http.ResponseWriter) error
type DeleteAPIKeyRequestObject ¶
type DeleteAPIKeyRequestObject struct {
APIKeyID string `json:"api_key_id"`
}
type DeleteAPIKeyResponseFunc ¶
type DeleteAPIKeyResponseFunc func(http.ResponseWriter) error
DeleteAPIKeyResponseFunc writes a fully custom response for DeleteAPIKey.
func (DeleteAPIKeyResponseFunc) VisitDeleteAPIKeyResponse ¶
func (f DeleteAPIKeyResponseFunc) VisitDeleteAPIKeyResponse(w http.ResponseWriter) error
VisitDeleteAPIKeyResponse implements DeleteAPIKeyResponseObject.
type DeleteAPIKeyResponseObject ¶
type DeleteAPIKeyResponseObject interface {
VisitDeleteAPIKeyResponse(w http.ResponseWriter) error
}
type DeleteAPIKeydefaultJSONResponse ¶
type DeleteAPIKeydefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (DeleteAPIKeydefaultJSONResponse) VisitDeleteAPIKeyResponse ¶
func (response DeleteAPIKeydefaultJSONResponse) VisitDeleteAPIKeyResponse(w http.ResponseWriter) error
type DeleteAudience200JSONResponse ¶
type DeleteAudience200JSONResponse RemoveAudienceResponseSuccess
func (DeleteAudience200JSONResponse) VisitDeleteAudienceResponse ¶
func (response DeleteAudience200JSONResponse) VisitDeleteAudienceResponse(w http.ResponseWriter) error
type DeleteAudienceRequestObject ¶
type DeleteAudienceRequestObject struct {
ID string `json:"id"`
}
type DeleteAudienceResponseFunc ¶
type DeleteAudienceResponseFunc func(http.ResponseWriter) error
DeleteAudienceResponseFunc writes a fully custom response for DeleteAudience.
func (DeleteAudienceResponseFunc) VisitDeleteAudienceResponse ¶
func (f DeleteAudienceResponseFunc) VisitDeleteAudienceResponse(w http.ResponseWriter) error
VisitDeleteAudienceResponse implements DeleteAudienceResponseObject.
type DeleteAudienceResponseObject ¶
type DeleteAudienceResponseObject interface {
VisitDeleteAudienceResponse(w http.ResponseWriter) error
}
type DeleteAudiencedefaultJSONResponse ¶
type DeleteAudiencedefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (DeleteAudiencedefaultJSONResponse) VisitDeleteAudienceResponse ¶
func (response DeleteAudiencedefaultJSONResponse) VisitDeleteAudienceResponse(w http.ResponseWriter) error
type DeleteBroadcast200JSONResponse ¶
type DeleteBroadcast200JSONResponse RemoveBroadcastResponseSuccess
func (DeleteBroadcast200JSONResponse) VisitDeleteBroadcastResponse ¶
func (response DeleteBroadcast200JSONResponse) VisitDeleteBroadcastResponse(w http.ResponseWriter) error
type DeleteBroadcastRequestObject ¶
type DeleteBroadcastRequestObject struct {
ID string `json:"id"`
}
type DeleteBroadcastResponseFunc ¶
type DeleteBroadcastResponseFunc func(http.ResponseWriter) error
DeleteBroadcastResponseFunc writes a fully custom response for DeleteBroadcast.
func (DeleteBroadcastResponseFunc) VisitDeleteBroadcastResponse ¶
func (f DeleteBroadcastResponseFunc) VisitDeleteBroadcastResponse(w http.ResponseWriter) error
VisitDeleteBroadcastResponse implements DeleteBroadcastResponseObject.
type DeleteBroadcastResponseObject ¶
type DeleteBroadcastResponseObject interface {
VisitDeleteBroadcastResponse(w http.ResponseWriter) error
}
type DeleteBroadcastdefaultJSONResponse ¶
type DeleteBroadcastdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (DeleteBroadcastdefaultJSONResponse) VisitDeleteBroadcastResponse ¶
func (response DeleteBroadcastdefaultJSONResponse) VisitDeleteBroadcastResponse(w http.ResponseWriter) error
type DeleteContact200JSONResponse ¶
type DeleteContact200JSONResponse RemoveContactResponseSuccess
func (DeleteContact200JSONResponse) VisitDeleteContactResponse ¶
func (response DeleteContact200JSONResponse) VisitDeleteContactResponse(w http.ResponseWriter) error
type DeleteContactProperty200JSONResponse ¶
type DeleteContactProperty200JSONResponse RemoveContactPropertyResponseSuccess
func (DeleteContactProperty200JSONResponse) VisitDeleteContactPropertyResponse ¶
func (response DeleteContactProperty200JSONResponse) VisitDeleteContactPropertyResponse(w http.ResponseWriter) error
type DeleteContactPropertyRequestObject ¶
type DeleteContactPropertyRequestObject struct {
ID string `json:"id"`
}
type DeleteContactPropertyResponseFunc ¶
type DeleteContactPropertyResponseFunc func(http.ResponseWriter) error
DeleteContactPropertyResponseFunc writes a fully custom response for DeleteContactProperty.
func (DeleteContactPropertyResponseFunc) VisitDeleteContactPropertyResponse ¶
func (f DeleteContactPropertyResponseFunc) VisitDeleteContactPropertyResponse(w http.ResponseWriter) error
VisitDeleteContactPropertyResponse implements DeleteContactPropertyResponseObject.
type DeleteContactPropertyResponseObject ¶
type DeleteContactPropertyResponseObject interface {
VisitDeleteContactPropertyResponse(w http.ResponseWriter) error
}
type DeleteContactPropertydefaultJSONResponse ¶
type DeleteContactPropertydefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (DeleteContactPropertydefaultJSONResponse) VisitDeleteContactPropertyResponse ¶
func (response DeleteContactPropertydefaultJSONResponse) VisitDeleteContactPropertyResponse(w http.ResponseWriter) error
type DeleteContactRequestObject ¶
type DeleteContactRequestObject struct {
ID string `json:"id"`
}
type DeleteContactResponseFunc ¶
type DeleteContactResponseFunc func(http.ResponseWriter) error
DeleteContactResponseFunc writes a fully custom response for DeleteContact.
func (DeleteContactResponseFunc) VisitDeleteContactResponse ¶
func (f DeleteContactResponseFunc) VisitDeleteContactResponse(w http.ResponseWriter) error
VisitDeleteContactResponse implements DeleteContactResponseObject.
type DeleteContactResponseObject ¶
type DeleteContactResponseObject interface {
VisitDeleteContactResponse(w http.ResponseWriter) error
}
type DeleteContactdefaultJSONResponse ¶
type DeleteContactdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (DeleteContactdefaultJSONResponse) VisitDeleteContactResponse ¶
func (response DeleteContactdefaultJSONResponse) VisitDeleteContactResponse(w http.ResponseWriter) error
type DeleteDomain200JSONResponse ¶
type DeleteDomain200JSONResponse DeleteDomainResponse
func (DeleteDomain200JSONResponse) VisitDeleteDomainResponse ¶
func (response DeleteDomain200JSONResponse) VisitDeleteDomainResponse(w http.ResponseWriter) error
type DeleteDomainRequestObject ¶
type DeleteDomainRequestObject struct {
DomainID string `json:"domain_id"`
}
type DeleteDomainResponse ¶
type DeleteDomainResponse struct {
// Deleted Indicates whether the domain was deleted successfully.
//
// Example: true
Deleted *bool `json:"deleted,omitempty"`
// ID The ID of the domain.
//
// Example: d91cd9bd-1176-453e-8fc1-35364d380206
ID *string `json:"id,omitempty"`
// Object The type of object.
//
// Example: domain
Object *string `json:"object,omitempty"`
}
DeleteDomainResponse defines model for DeleteDomainResponse.
type DeleteDomainResponseFunc ¶
type DeleteDomainResponseFunc func(http.ResponseWriter) error
DeleteDomainResponseFunc writes a fully custom response for DeleteDomain.
func (DeleteDomainResponseFunc) VisitDeleteDomainResponse ¶
func (f DeleteDomainResponseFunc) VisitDeleteDomainResponse(w http.ResponseWriter) error
VisitDeleteDomainResponse implements DeleteDomainResponseObject.
type DeleteDomainResponseObject ¶
type DeleteDomainResponseObject interface {
VisitDeleteDomainResponse(w http.ResponseWriter) error
}
type DeleteDomaindefaultJSONResponse ¶
type DeleteDomaindefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (DeleteDomaindefaultJSONResponse) VisitDeleteDomainResponse ¶
func (response DeleteDomaindefaultJSONResponse) VisitDeleteDomainResponse(w http.ResponseWriter) error
type DeleteSegment200JSONResponse ¶
type DeleteSegment200JSONResponse RemoveSegmentResponseSuccess
func (DeleteSegment200JSONResponse) VisitDeleteSegmentResponse ¶
func (response DeleteSegment200JSONResponse) VisitDeleteSegmentResponse(w http.ResponseWriter) error
type DeleteSegmentRequestObject ¶
type DeleteSegmentRequestObject struct {
ID string `json:"id"`
}
type DeleteSegmentResponseFunc ¶
type DeleteSegmentResponseFunc func(http.ResponseWriter) error
DeleteSegmentResponseFunc writes a fully custom response for DeleteSegment.
func (DeleteSegmentResponseFunc) VisitDeleteSegmentResponse ¶
func (f DeleteSegmentResponseFunc) VisitDeleteSegmentResponse(w http.ResponseWriter) error
VisitDeleteSegmentResponse implements DeleteSegmentResponseObject.
type DeleteSegmentResponseObject ¶
type DeleteSegmentResponseObject interface {
VisitDeleteSegmentResponse(w http.ResponseWriter) error
}
type DeleteSegmentdefaultJSONResponse ¶
type DeleteSegmentdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (DeleteSegmentdefaultJSONResponse) VisitDeleteSegmentResponse ¶
func (response DeleteSegmentdefaultJSONResponse) VisitDeleteSegmentResponse(w http.ResponseWriter) error
type DeleteTemplate200JSONResponse ¶
type DeleteTemplate200JSONResponse RemoveTemplateResponseSuccess
func (DeleteTemplate200JSONResponse) VisitDeleteTemplateResponse ¶
func (response DeleteTemplate200JSONResponse) VisitDeleteTemplateResponse(w http.ResponseWriter) error
type DeleteTemplateRequestObject ¶
type DeleteTemplateRequestObject struct {
ID string `json:"id"`
}
type DeleteTemplateResponseFunc ¶
type DeleteTemplateResponseFunc func(http.ResponseWriter) error
DeleteTemplateResponseFunc writes a fully custom response for DeleteTemplate.
func (DeleteTemplateResponseFunc) VisitDeleteTemplateResponse ¶
func (f DeleteTemplateResponseFunc) VisitDeleteTemplateResponse(w http.ResponseWriter) error
VisitDeleteTemplateResponse implements DeleteTemplateResponseObject.
type DeleteTemplateResponseObject ¶
type DeleteTemplateResponseObject interface {
VisitDeleteTemplateResponse(w http.ResponseWriter) error
}
type DeleteTemplatedefaultJSONResponse ¶
type DeleteTemplatedefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (DeleteTemplatedefaultJSONResponse) VisitDeleteTemplateResponse ¶
func (response DeleteTemplatedefaultJSONResponse) VisitDeleteTemplateResponse(w http.ResponseWriter) error
type DeleteTopic200JSONResponse ¶
type DeleteTopic200JSONResponse RemoveTopicResponseSuccess
func (DeleteTopic200JSONResponse) VisitDeleteTopicResponse ¶
func (response DeleteTopic200JSONResponse) VisitDeleteTopicResponse(w http.ResponseWriter) error
type DeleteTopicRequestObject ¶
type DeleteTopicRequestObject struct {
ID string `json:"id"`
}
type DeleteTopicResponseFunc ¶
type DeleteTopicResponseFunc func(http.ResponseWriter) error
DeleteTopicResponseFunc writes a fully custom response for DeleteTopic.
func (DeleteTopicResponseFunc) VisitDeleteTopicResponse ¶
func (f DeleteTopicResponseFunc) VisitDeleteTopicResponse(w http.ResponseWriter) error
VisitDeleteTopicResponse implements DeleteTopicResponseObject.
type DeleteTopicResponseObject ¶
type DeleteTopicResponseObject interface {
VisitDeleteTopicResponse(w http.ResponseWriter) error
}
type DeleteTopicdefaultJSONResponse ¶
type DeleteTopicdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (DeleteTopicdefaultJSONResponse) VisitDeleteTopicResponse ¶
func (response DeleteTopicdefaultJSONResponse) VisitDeleteTopicResponse(w http.ResponseWriter) error
type DeleteWebhook200JSONResponse ¶
type DeleteWebhook200JSONResponse DeleteWebhookResponse
func (DeleteWebhook200JSONResponse) VisitDeleteWebhookResponse ¶
func (response DeleteWebhook200JSONResponse) VisitDeleteWebhookResponse(w http.ResponseWriter) error
type DeleteWebhookRequestObject ¶
type DeleteWebhookRequestObject struct {
WebhookID openapi_types.UUID `json:"webhook_id"`
}
type DeleteWebhookResponse ¶
type DeleteWebhookResponse struct {
// Deleted Indicates whether the webhook was successfully deleted.
//
// Example: true
Deleted *bool `json:"deleted,omitempty"`
// ID The ID of the deleted webhook.
//
// Example: 479e3145-dd38-476b-932c-529ceb705947
ID *openapi_types.UUID `json:"id,omitempty"`
// Object The type of object.
//
// Example: webhook
Object *string `json:"object,omitempty"`
}
DeleteWebhookResponse defines model for DeleteWebhookResponse.
type DeleteWebhookResponseFunc ¶
type DeleteWebhookResponseFunc func(http.ResponseWriter) error
DeleteWebhookResponseFunc writes a fully custom response for DeleteWebhook.
func (DeleteWebhookResponseFunc) VisitDeleteWebhookResponse ¶
func (f DeleteWebhookResponseFunc) VisitDeleteWebhookResponse(w http.ResponseWriter) error
VisitDeleteWebhookResponse implements DeleteWebhookResponseObject.
type DeleteWebhookResponseObject ¶
type DeleteWebhookResponseObject interface {
VisitDeleteWebhookResponse(w http.ResponseWriter) error
}
type DeleteWebhookdefaultJSONResponse ¶
type DeleteWebhookdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (DeleteWebhookdefaultJSONResponse) VisitDeleteWebhookResponse ¶
func (response DeleteWebhookdefaultJSONResponse) VisitDeleteWebhookResponse(w http.ResponseWriter) error
type Domain ¶
type Domain struct {
// Capabilities Configure the domain capabilities for sending and receiving emails. At least one capability must be enabled.
Capabilities *DomainCapabilities `json:"capabilities,omitempty"`
// CreatedAt The date and time the domain was created.
//
// Example: 2023-04-26T20:21:26.347412+00:00
CreatedAt *time.Time `json:"created_at,omitempty"`
// ID The ID of the domain.
//
// Example: d91cd9bd-1176-453e-8fc1-35364d380206
ID *string `json:"id,omitempty"`
// Name The name of the domain.
//
// Example: example.com
Name *string `json:"name,omitempty"`
// Object The type of object.
//
// Example: domain
Object *string `json:"object,omitempty"`
Records *[]DomainRecord `json:"records,omitempty"`
// Region The region where the domain is hosted.
//
// Example: us-east-1
Region *string `json:"region,omitempty"`
// Status The status of the domain.
//
// Example: not_started
Status *string `json:"status,omitempty"`
}
Domain defines model for Domain.
type DomainCapabilities ¶
type DomainCapabilities struct {
// Receiving Enable or disable receiving emails to this domain.
Receiving *DomainCapabilitiesReceiving `json:"receiving,omitempty"`
// Sending Enable or disable sending emails from this domain.
Sending *DomainCapabilitiesSending `json:"sending,omitempty"`
}
DomainCapabilities Configure the domain capabilities for sending and receiving emails. At least one capability must be enabled.
type DomainCapabilitiesReceiving ¶
type DomainCapabilitiesReceiving string
DomainCapabilitiesReceiving Enable or disable receiving emails to this domain.
const ( DomainCapabilitiesReceivingDisabled DomainCapabilitiesReceiving = "disabled" DomainCapabilitiesReceivingEnabled DomainCapabilitiesReceiving = "enabled" )
Defines values for DomainCapabilitiesReceiving.
func (DomainCapabilitiesReceiving) Valid ¶
func (e DomainCapabilitiesReceiving) Valid() bool
Valid indicates whether the value is a known member of the DomainCapabilitiesReceiving enum.
type DomainCapabilitiesSending ¶
type DomainCapabilitiesSending string
DomainCapabilitiesSending Enable or disable sending emails from this domain.
const ( DomainCapabilitiesSendingDisabled DomainCapabilitiesSending = "disabled" DomainCapabilitiesSendingEnabled DomainCapabilitiesSending = "enabled" )
Defines values for DomainCapabilitiesSending.
func (DomainCapabilitiesSending) Valid ¶
func (e DomainCapabilitiesSending) Valid() bool
Valid indicates whether the value is a known member of the DomainCapabilitiesSending enum.
type DomainRecord ¶
type DomainRecord struct {
// Name The name of the DNS record.
Name *string `json:"name,omitempty"`
// Priority The priority of the record (only applicable for MX records).
Priority *int `json:"priority,omitempty"`
// Record The type of record (SPF for sending, DKIM for sending, Receiving for inbound emails).
Record *DomainRecordRecord `json:"record,omitempty"`
// Status The status of the record.
Status *DomainRecordStatus `json:"status,omitempty"`
// TTL The time to live for the record.
TTL *string `json:"ttl,omitempty"`
// Type The DNS record type.
Type *DomainRecordType `json:"type,omitempty"`
// Value The value of the record.
Value *string `json:"value,omitempty"`
}
DomainRecord defines model for DomainRecord.
type DomainRecordRecord ¶
type DomainRecordRecord string
DomainRecordRecord The type of record (SPF for sending, DKIM for sending, Receiving for inbound emails).
const ( DKIM DomainRecordRecord = "DKIM" Receiving DomainRecordRecord = "Receiving" SPF DomainRecordRecord = "SPF" )
Defines values for DomainRecordRecord.
func (DomainRecordRecord) Valid ¶
func (e DomainRecordRecord) Valid() bool
Valid indicates whether the value is a known member of the DomainRecordRecord enum.
type DomainRecordStatus ¶
type DomainRecordStatus string
DomainRecordStatus The status of the record.
const ( Failed DomainRecordStatus = "failed" NotStarted DomainRecordStatus = "not_started" Pending DomainRecordStatus = "pending" TemporaryFailure DomainRecordStatus = "temporary_failure" Verified DomainRecordStatus = "verified" )
Defines values for DomainRecordStatus.
func (DomainRecordStatus) Valid ¶
func (e DomainRecordStatus) Valid() bool
Valid indicates whether the value is a known member of the DomainRecordStatus enum.
type DomainRecordType ¶
type DomainRecordType string
DomainRecordType The DNS record type.
const ( CNAME DomainRecordType = "CNAME" MX DomainRecordType = "MX" TXT DomainRecordType = "TXT" )
Defines values for DomainRecordType.
func (DomainRecordType) Valid ¶
func (e DomainRecordType) Valid() bool
Valid indicates whether the value is a known member of the DomainRecordType enum.
type DuplicateTemplate200JSONResponse ¶
type DuplicateTemplate200JSONResponse DuplicateTemplateResponseSuccess
func (DuplicateTemplate200JSONResponse) VisitDuplicateTemplateResponse ¶
func (response DuplicateTemplate200JSONResponse) VisitDuplicateTemplateResponse(w http.ResponseWriter) error
type DuplicateTemplateRequestObject ¶
type DuplicateTemplateRequestObject struct {
ID string `json:"id"`
}
type DuplicateTemplateResponseFunc ¶
type DuplicateTemplateResponseFunc func(http.ResponseWriter) error
DuplicateTemplateResponseFunc writes a fully custom response for DuplicateTemplate.
func (DuplicateTemplateResponseFunc) VisitDuplicateTemplateResponse ¶
func (f DuplicateTemplateResponseFunc) VisitDuplicateTemplateResponse(w http.ResponseWriter) error
VisitDuplicateTemplateResponse implements DuplicateTemplateResponseObject.
type DuplicateTemplateResponseObject ¶
type DuplicateTemplateResponseObject interface {
VisitDuplicateTemplateResponse(w http.ResponseWriter) error
}
type DuplicateTemplateResponseSuccess ¶
type DuplicateTemplateResponseSuccess struct {
// ID The ID of the duplicated template.
ID *string `json:"id,omitempty"`
// Object The object type of the response.
//
// Example: template
Object *string `json:"object,omitempty"`
}
DuplicateTemplateResponseSuccess defines model for DuplicateTemplateResponseSuccess.
type DuplicateTemplatedefaultJSONResponse ¶
type DuplicateTemplatedefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (DuplicateTemplatedefaultJSONResponse) VisitDuplicateTemplateResponse ¶
func (response DuplicateTemplatedefaultJSONResponse) VisitDuplicateTemplateResponse(w http.ResponseWriter) error
type Email ¶
type Email struct {
// Bcc The email addresses of the blind carbon copy recipients.
Bcc *[]string `json:"bcc,omitempty"`
// Cc The email addresses of the carbon copy recipients.
Cc *[]string `json:"cc,omitempty"`
// CreatedAt The date and time the email was created.
//
// Example: 2023-04-03T22:13:42.674981+00:00
CreatedAt *time.Time `json:"created_at,omitempty"`
// From The email address of the sender.
//
// Example: Acme <onboarding@resend.dev>
From *string `json:"from,omitempty"`
// HTML The HTML body of the email.
//
// Example: Congrats on sending your <strong>first email</strong>!
HTML *string `json:"html,omitempty"`
// ID The ID of the email.
//
// Example: 4ef9a417-02e9-4d39-ad75-9611e0fcc33c
ID *string `json:"id,omitempty"`
// LastEvent The status of the email.
//
// Example: delivered
LastEvent *string `json:"last_event,omitempty"`
// Object The type of object.
//
// Example: email
Object *string `json:"object,omitempty"`
// ReplyTo The email addresses to which replies should be sent.
ReplyTo *[]string `json:"reply_to,omitempty"`
// Subject The subject line of the email.
//
// Example: Hello World
Subject *string `json:"subject,omitempty"`
// Text The plain text body of the email.
Text *string `json:"text,omitempty"`
// To Example: ["delivered@resend.dev"]
To *[]string `json:"to,omitempty"`
}
Email defines model for Email.
type EmailTemplateInput ¶
type EmailTemplateInput struct {
// ID The id of the published email template.
ID string `json:"id"`
// Variables Template variables object with key/value pairs.
//
// Example: {"variableName":"Sign up now","variableName2":123}
Variables *map[string]EmailTemplateInput_Variables_AdditionalProperties `json:"variables,omitempty"`
}
EmailTemplateInput defines model for EmailTemplateInput.
type EmailTemplateInputVariables0 ¶
type EmailTemplateInputVariables0 = string
EmailTemplateInputVariables0 defines model for EmailTemplateInput.Variables.0.
type EmailTemplateInputVariables1 ¶
type EmailTemplateInputVariables1 = float32
EmailTemplateInputVariables1 defines model for EmailTemplateInput.Variables.1.
type EmailTemplateInput_Variables_AdditionalProperties ¶
type EmailTemplateInput_Variables_AdditionalProperties struct {
// contains filtered or unexported fields
}
EmailTemplateInput_Variables_AdditionalProperties defines model for EmailTemplateInput.variables.AdditionalProperties.
func (EmailTemplateInput_Variables_AdditionalProperties) AsEmailTemplateInputVariables0 ¶
func (t EmailTemplateInput_Variables_AdditionalProperties) AsEmailTemplateInputVariables0() (EmailTemplateInputVariables0, error)
AsEmailTemplateInputVariables0 returns the union data inside the EmailTemplateInput_Variables_AdditionalProperties as a EmailTemplateInputVariables0
func (EmailTemplateInput_Variables_AdditionalProperties) AsEmailTemplateInputVariables1 ¶
func (t EmailTemplateInput_Variables_AdditionalProperties) AsEmailTemplateInputVariables1() (EmailTemplateInputVariables1, error)
AsEmailTemplateInputVariables1 returns the union data inside the EmailTemplateInput_Variables_AdditionalProperties as a EmailTemplateInputVariables1
func (*EmailTemplateInput_Variables_AdditionalProperties) FromEmailTemplateInputVariables0 ¶
func (t *EmailTemplateInput_Variables_AdditionalProperties) FromEmailTemplateInputVariables0(v EmailTemplateInputVariables0) error
FromEmailTemplateInputVariables0 overwrites any union data inside the EmailTemplateInput_Variables_AdditionalProperties as the provided EmailTemplateInputVariables0
func (*EmailTemplateInput_Variables_AdditionalProperties) FromEmailTemplateInputVariables1 ¶
func (t *EmailTemplateInput_Variables_AdditionalProperties) FromEmailTemplateInputVariables1(v EmailTemplateInputVariables1) error
FromEmailTemplateInputVariables1 overwrites any union data inside the EmailTemplateInput_Variables_AdditionalProperties as the provided EmailTemplateInputVariables1
func (EmailTemplateInput_Variables_AdditionalProperties) MarshalJSON ¶
func (t EmailTemplateInput_Variables_AdditionalProperties) MarshalJSON() ([]byte, error)
func (*EmailTemplateInput_Variables_AdditionalProperties) MergeEmailTemplateInputVariables0 ¶
func (t *EmailTemplateInput_Variables_AdditionalProperties) MergeEmailTemplateInputVariables0(v EmailTemplateInputVariables0) error
MergeEmailTemplateInputVariables0 performs a merge with any union data inside the EmailTemplateInput_Variables_AdditionalProperties, using the provided EmailTemplateInputVariables0
func (*EmailTemplateInput_Variables_AdditionalProperties) MergeEmailTemplateInputVariables1 ¶
func (t *EmailTemplateInput_Variables_AdditionalProperties) MergeEmailTemplateInputVariables1(v EmailTemplateInputVariables1) error
MergeEmailTemplateInputVariables1 performs a merge with any union data inside the EmailTemplateInput_Variables_AdditionalProperties, using the provided EmailTemplateInputVariables1
func (*EmailTemplateInput_Variables_AdditionalProperties) UnmarshalJSON ¶
func (t *EmailTemplateInput_Variables_AdditionalProperties) UnmarshalJSON(b []byte) error
type GetAudience200JSONResponse ¶
type GetAudience200JSONResponse GetAudienceResponseSuccess
func (GetAudience200JSONResponse) VisitGetAudienceResponse ¶
func (response GetAudience200JSONResponse) VisitGetAudienceResponse(w http.ResponseWriter) error
type GetAudienceRequestObject ¶
type GetAudienceRequestObject struct {
ID string `json:"id"`
}
type GetAudienceResponseFunc ¶
type GetAudienceResponseFunc func(http.ResponseWriter) error
GetAudienceResponseFunc writes a fully custom response for GetAudience.
func (GetAudienceResponseFunc) VisitGetAudienceResponse ¶
func (f GetAudienceResponseFunc) VisitGetAudienceResponse(w http.ResponseWriter) error
VisitGetAudienceResponse implements GetAudienceResponseObject.
type GetAudienceResponseObject ¶
type GetAudienceResponseObject interface {
VisitGetAudienceResponse(w http.ResponseWriter) error
}
type GetAudienceResponseSuccess
deprecated
type GetAudienceResponseSuccess struct {
// CreatedAt The date that the object was created.
//
// Example: 2023-10-06T22:59:55.977Z
CreatedAt *string `json:"created_at,omitempty"`
// ID The ID of the audience.
//
// Example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
ID *string `json:"id,omitempty"`
// Name The name of the audience.
//
// Example: Registered Users
Name *string `json:"name,omitempty"`
// Object The object of the audience.
//
// Example: audience
Object *string `json:"object,omitempty"`
}
GetAudienceResponseSuccess defines model for GetAudienceResponseSuccess.
Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set
type GetAudiencedefaultJSONResponse ¶
type GetAudiencedefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (GetAudiencedefaultJSONResponse) VisitGetAudienceResponse ¶
func (response GetAudiencedefaultJSONResponse) VisitGetAudienceResponse(w http.ResponseWriter) error
type GetBroadcast200JSONResponse ¶
type GetBroadcast200JSONResponse GetBroadcastResponseSuccess
func (GetBroadcast200JSONResponse) VisitGetBroadcastResponse ¶
func (response GetBroadcast200JSONResponse) VisitGetBroadcastResponse(w http.ResponseWriter) error
type GetBroadcastRequestObject ¶
type GetBroadcastRequestObject struct {
ID string `json:"id"`
}
type GetBroadcastResponseFunc ¶
type GetBroadcastResponseFunc func(http.ResponseWriter) error
GetBroadcastResponseFunc writes a fully custom response for GetBroadcast.
func (GetBroadcastResponseFunc) VisitGetBroadcastResponse ¶
func (f GetBroadcastResponseFunc) VisitGetBroadcastResponse(w http.ResponseWriter) error
VisitGetBroadcastResponse implements GetBroadcastResponseObject.
type GetBroadcastResponseObject ¶
type GetBroadcastResponseObject interface {
VisitGetBroadcastResponse(w http.ResponseWriter) error
}
type GetBroadcastResponseSuccess ¶
type GetBroadcastResponseSuccess struct {
// AudienceID Deprecated: use `segment_id` instead. Unique identifier of the segment this broadcast will be sent to.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
AudienceID *string `json:"audience_id,omitempty"`
// CreatedAt Timestamp indicating when the broadcast was created.
//
// Example: 2023-10-06T22:59:55.977Z
CreatedAt *time.Time `json:"created_at,omitempty"`
// From The email address of the sender.
//
// Example: Acme <onboarding@resend.dev>
From *string `json:"from,omitempty"`
// HTML The HTML version of the broadcast content.
//
// Example: <p>Hello {{{FIRST_NAME|there}}}!</p>
HTML *string `json:"html,omitempty"`
// ID Unique identifier for the broadcast.
//
// Example: e169aa45-1ecf-4183-9955-b1499d5701d3
ID *string `json:"id,omitempty"`
// Name Name of the broadcast.
//
// Example: November announcements
Name *string `json:"name,omitempty"`
// PreviewText The preview text of the email.
//
// Example: Here are our announcements
PreviewText *string `json:"preview_text,omitempty"`
// ReplyTo The email addresses to which replies should be sent.
ReplyTo *[]string `json:"reply_to,omitempty"`
// ScheduledAt Timestamp indicating when the broadcast is scheduled to be sent.
//
// Example: 2023-10-06T22:59:55.977Z
ScheduledAt *time.Time `json:"scheduled_at,omitempty"`
// SegmentID Unique identifier of the segment this broadcast will be sent to.
SegmentID *string `json:"segment_id,omitempty"`
// SentAt Timestamp indicating when the broadcast was sent.
//
// Example: 2023-10-06T22:59:55.977Z
SentAt *time.Time `json:"sent_at,omitempty"`
// Status The status of the broadcast.
//
// Example: draft
Status *string `json:"status,omitempty"`
// Subject The subject line of the email.
//
// Example: Hello World
Subject *string `json:"subject,omitempty"`
// Text The plain text version of the broadcast content.
//
// Example: Hello {{{FIRST_NAME|there}}}!
Text *string `json:"text,omitempty"`
// TopicID The topic ID that the broadcast is scoped to.
//
// Example: b6d24b8e-af0b-4c3c-be0c-359bbd97381e
TopicID *string `json:"topic_id,omitempty"`
}
GetBroadcastResponseSuccess defines model for GetBroadcastResponseSuccess.
type GetBroadcastdefaultJSONResponse ¶
type GetBroadcastdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (GetBroadcastdefaultJSONResponse) VisitGetBroadcastResponse ¶
func (response GetBroadcastdefaultJSONResponse) VisitGetBroadcastResponse(w http.ResponseWriter) error
type GetContact200JSONResponse ¶
type GetContact200JSONResponse GetContactResponseSuccess
func (GetContact200JSONResponse) VisitGetContactResponse ¶
func (response GetContact200JSONResponse) VisitGetContactResponse(w http.ResponseWriter) error
type GetContactProperty200JSONResponse ¶
type GetContactProperty200JSONResponse GetContactPropertyResponseSuccess
func (GetContactProperty200JSONResponse) VisitGetContactPropertyResponse ¶
func (response GetContactProperty200JSONResponse) VisitGetContactPropertyResponse(w http.ResponseWriter) error
type GetContactPropertyRequestObject ¶
type GetContactPropertyRequestObject struct {
ID string `json:"id"`
}
type GetContactPropertyResponseFunc ¶
type GetContactPropertyResponseFunc func(http.ResponseWriter) error
GetContactPropertyResponseFunc writes a fully custom response for GetContactProperty.
func (GetContactPropertyResponseFunc) VisitGetContactPropertyResponse ¶
func (f GetContactPropertyResponseFunc) VisitGetContactPropertyResponse(w http.ResponseWriter) error
VisitGetContactPropertyResponse implements GetContactPropertyResponseObject.
type GetContactPropertyResponseObject ¶
type GetContactPropertyResponseObject interface {
VisitGetContactPropertyResponse(w http.ResponseWriter) error
}
type GetContactPropertyResponseSuccess ¶
type GetContactPropertyResponseSuccess struct {
// CreatedAt Timestamp indicating when the contact property was created.
CreatedAt *time.Time `json:"created_at,omitempty"`
// FallbackValue The default value when the property is not set for a contact.
//
// Example: Acme Corp
FallbackValue *GetContactPropertyResponseSuccess_FallbackValue `json:"fallback_value,omitempty"`
// ID The ID of the contact property.
//
// Example: b6d24b8e-af0b-4c3c-be0c-359bbd97381e
ID *string `json:"id,omitempty"`
// Key The property key.
//
// Example: company_name
Key *string `json:"key,omitempty"`
// Object The object type.
//
// Example: contact_property
Object *string `json:"object,omitempty"`
// Type The property type.
//
// Example: string
Type *string `json:"type,omitempty"`
}
GetContactPropertyResponseSuccess defines model for GetContactPropertyResponseSuccess.
type GetContactPropertyResponseSuccessFallbackValue0 ¶
type GetContactPropertyResponseSuccessFallbackValue0 = string
GetContactPropertyResponseSuccessFallbackValue0 defines model for GetContactPropertyResponseSuccess.FallbackValue.0.
type GetContactPropertyResponseSuccessFallbackValue1 ¶
type GetContactPropertyResponseSuccessFallbackValue1 = float32
GetContactPropertyResponseSuccessFallbackValue1 defines model for GetContactPropertyResponseSuccess.FallbackValue.1.
type GetContactPropertyResponseSuccess_FallbackValue ¶
type GetContactPropertyResponseSuccess_FallbackValue struct {
// contains filtered or unexported fields
}
GetContactPropertyResponseSuccess_FallbackValue The default value when the property is not set for a contact.
Example: Acme Corp
func (GetContactPropertyResponseSuccess_FallbackValue) AsGetContactPropertyResponseSuccessFallbackValue0 ¶
func (t GetContactPropertyResponseSuccess_FallbackValue) AsGetContactPropertyResponseSuccessFallbackValue0() (GetContactPropertyResponseSuccessFallbackValue0, error)
AsGetContactPropertyResponseSuccessFallbackValue0 returns the union data inside the GetContactPropertyResponseSuccess_FallbackValue as a GetContactPropertyResponseSuccessFallbackValue0
func (GetContactPropertyResponseSuccess_FallbackValue) AsGetContactPropertyResponseSuccessFallbackValue1 ¶
func (t GetContactPropertyResponseSuccess_FallbackValue) AsGetContactPropertyResponseSuccessFallbackValue1() (GetContactPropertyResponseSuccessFallbackValue1, error)
AsGetContactPropertyResponseSuccessFallbackValue1 returns the union data inside the GetContactPropertyResponseSuccess_FallbackValue as a GetContactPropertyResponseSuccessFallbackValue1
func (*GetContactPropertyResponseSuccess_FallbackValue) FromGetContactPropertyResponseSuccessFallbackValue0 ¶
func (t *GetContactPropertyResponseSuccess_FallbackValue) FromGetContactPropertyResponseSuccessFallbackValue0(v GetContactPropertyResponseSuccessFallbackValue0) error
FromGetContactPropertyResponseSuccessFallbackValue0 overwrites any union data inside the GetContactPropertyResponseSuccess_FallbackValue as the provided GetContactPropertyResponseSuccessFallbackValue0
func (*GetContactPropertyResponseSuccess_FallbackValue) FromGetContactPropertyResponseSuccessFallbackValue1 ¶
func (t *GetContactPropertyResponseSuccess_FallbackValue) FromGetContactPropertyResponseSuccessFallbackValue1(v GetContactPropertyResponseSuccessFallbackValue1) error
FromGetContactPropertyResponseSuccessFallbackValue1 overwrites any union data inside the GetContactPropertyResponseSuccess_FallbackValue as the provided GetContactPropertyResponseSuccessFallbackValue1
func (GetContactPropertyResponseSuccess_FallbackValue) MarshalJSON ¶
func (t GetContactPropertyResponseSuccess_FallbackValue) MarshalJSON() ([]byte, error)
func (*GetContactPropertyResponseSuccess_FallbackValue) MergeGetContactPropertyResponseSuccessFallbackValue0 ¶
func (t *GetContactPropertyResponseSuccess_FallbackValue) MergeGetContactPropertyResponseSuccessFallbackValue0(v GetContactPropertyResponseSuccessFallbackValue0) error
MergeGetContactPropertyResponseSuccessFallbackValue0 performs a merge with any union data inside the GetContactPropertyResponseSuccess_FallbackValue, using the provided GetContactPropertyResponseSuccessFallbackValue0
func (*GetContactPropertyResponseSuccess_FallbackValue) MergeGetContactPropertyResponseSuccessFallbackValue1 ¶
func (t *GetContactPropertyResponseSuccess_FallbackValue) MergeGetContactPropertyResponseSuccessFallbackValue1(v GetContactPropertyResponseSuccessFallbackValue1) error
MergeGetContactPropertyResponseSuccessFallbackValue1 performs a merge with any union data inside the GetContactPropertyResponseSuccess_FallbackValue, using the provided GetContactPropertyResponseSuccessFallbackValue1
func (*GetContactPropertyResponseSuccess_FallbackValue) UnmarshalJSON ¶
func (t *GetContactPropertyResponseSuccess_FallbackValue) UnmarshalJSON(b []byte) error
type GetContactPropertydefaultJSONResponse ¶
type GetContactPropertydefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (GetContactPropertydefaultJSONResponse) VisitGetContactPropertyResponse ¶
func (response GetContactPropertydefaultJSONResponse) VisitGetContactPropertyResponse(w http.ResponseWriter) error
type GetContactRequestObject ¶
type GetContactRequestObject struct {
ID string `json:"id"`
}
type GetContactResponseFunc ¶
type GetContactResponseFunc func(http.ResponseWriter) error
GetContactResponseFunc writes a fully custom response for GetContact.
func (GetContactResponseFunc) VisitGetContactResponse ¶
func (f GetContactResponseFunc) VisitGetContactResponse(w http.ResponseWriter) error
VisitGetContactResponse implements GetContactResponseObject.
type GetContactResponseObject ¶
type GetContactResponseObject interface {
VisitGetContactResponse(w http.ResponseWriter) error
}
type GetContactResponseSuccess ¶
type GetContactResponseSuccess struct {
// CreatedAt Timestamp indicating when the contact was created.
//
// Example: 2023-10-06T23:47:56.678Z
CreatedAt *time.Time `json:"created_at,omitempty"`
// Email Email address of the contact.
//
// Example: steve.wozniak@gmail.com
Email *string `json:"email,omitempty"`
// FirstName First name of the contact.
//
// Example: Steve
FirstName *string `json:"first_name,omitempty"`
// ID Unique identifier for the contact.
//
// Example: e169aa45-1ecf-4183-9955-b1499d5701d3
ID *string `json:"id,omitempty"`
// LastName Last name of the contact.
//
// Example: Wozniak
LastName *string `json:"last_name,omitempty"`
// Object Type of the response object.
//
// Example: contact
Object *string `json:"object,omitempty"`
// Properties A map of custom property keys and values.
Properties *map[string]interface{} `json:"properties,omitempty"`
// Unsubscribed Indicates if the contact is unsubscribed.
//
// Example: false
Unsubscribed *bool `json:"unsubscribed,omitempty"`
}
GetContactResponseSuccess defines model for GetContactResponseSuccess.
type GetContactTopicsResponseSuccess ¶
type GetContactTopicsResponseSuccess struct {
// Data Array containing topic subscriptions for this contact.
Data *[]struct {
// Description Description of the topic.
Description *string `json:"description,omitempty"`
// ID Unique identifier for the topic.
ID *string `json:"id,omitempty"`
// Name Name of the topic.
Name *string `json:"name,omitempty"`
// Subscription The subscription status for this topic.
Subscription *GetContactTopicsResponseSuccessDataSubscription `json:"subscription,omitempty"`
} `json:"data,omitempty"`
// HasMore Indicates if there are more results available.
HasMore *bool `json:"has_more,omitempty"`
// Object Type of the response object.
//
// Example: list
Object *string `json:"object,omitempty"`
}
GetContactTopicsResponseSuccess defines model for GetContactTopicsResponseSuccess.
type GetContactTopicsResponseSuccessDataSubscription ¶
type GetContactTopicsResponseSuccessDataSubscription string
GetContactTopicsResponseSuccessDataSubscription The subscription status for this topic.
const ( GetContactTopicsResponseSuccessDataSubscriptionOptIn GetContactTopicsResponseSuccessDataSubscription = "opt_in" GetContactTopicsResponseSuccessDataSubscriptionOptOut GetContactTopicsResponseSuccessDataSubscription = "opt_out" )
Defines values for GetContactTopicsResponseSuccessDataSubscription.
func (GetContactTopicsResponseSuccessDataSubscription) Valid ¶
func (e GetContactTopicsResponseSuccessDataSubscription) Valid() bool
Valid indicates whether the value is a known member of the GetContactTopicsResponseSuccessDataSubscription enum.
type GetContactdefaultJSONResponse ¶
type GetContactdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (GetContactdefaultJSONResponse) VisitGetContactResponse ¶
func (response GetContactdefaultJSONResponse) VisitGetContactResponse(w http.ResponseWriter) error
type GetDomain200JSONResponse ¶
type GetDomain200JSONResponse Domain
func (GetDomain200JSONResponse) VisitGetDomainResponse ¶
func (response GetDomain200JSONResponse) VisitGetDomainResponse(w http.ResponseWriter) error
type GetDomainRequestObject ¶
type GetDomainRequestObject struct {
DomainID string `json:"domain_id"`
}
type GetDomainResponseFunc ¶
type GetDomainResponseFunc func(http.ResponseWriter) error
GetDomainResponseFunc writes a fully custom response for GetDomain.
func (GetDomainResponseFunc) VisitGetDomainResponse ¶
func (f GetDomainResponseFunc) VisitGetDomainResponse(w http.ResponseWriter) error
VisitGetDomainResponse implements GetDomainResponseObject.
type GetDomainResponseObject ¶
type GetDomainResponseObject interface {
VisitGetDomainResponse(w http.ResponseWriter) error
}
type GetDomaindefaultJSONResponse ¶
type GetDomaindefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (GetDomaindefaultJSONResponse) VisitGetDomainResponse ¶
func (response GetDomaindefaultJSONResponse) VisitGetDomainResponse(w http.ResponseWriter) error
type GetEmail200JSONResponse ¶
type GetEmail200JSONResponse Email
func (GetEmail200JSONResponse) VisitGetEmailResponse ¶
func (response GetEmail200JSONResponse) VisitGetEmailResponse(w http.ResponseWriter) error
type GetEmailAttachment200JSONResponse ¶
type GetEmailAttachment200JSONResponse RetrievedAttachment
func (GetEmailAttachment200JSONResponse) VisitGetEmailAttachmentResponse ¶
func (response GetEmailAttachment200JSONResponse) VisitGetEmailAttachmentResponse(w http.ResponseWriter) error
type GetEmailAttachmentRequestObject ¶
type GetEmailAttachmentRequestObject struct {
EmailID openapi_types.UUID `json:"email_id"`
AttachmentID openapi_types.UUID `json:"attachment_id"`
}
type GetEmailAttachmentResponseFunc ¶
type GetEmailAttachmentResponseFunc func(http.ResponseWriter) error
GetEmailAttachmentResponseFunc writes a fully custom response for GetEmailAttachment.
func (GetEmailAttachmentResponseFunc) VisitGetEmailAttachmentResponse ¶
func (f GetEmailAttachmentResponseFunc) VisitGetEmailAttachmentResponse(w http.ResponseWriter) error
VisitGetEmailAttachmentResponse implements GetEmailAttachmentResponseObject.
type GetEmailAttachmentResponseObject ¶
type GetEmailAttachmentResponseObject interface {
VisitGetEmailAttachmentResponse(w http.ResponseWriter) error
}
type GetEmailAttachmentdefaultJSONResponse ¶
type GetEmailAttachmentdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (GetEmailAttachmentdefaultJSONResponse) VisitGetEmailAttachmentResponse ¶
func (response GetEmailAttachmentdefaultJSONResponse) VisitGetEmailAttachmentResponse(w http.ResponseWriter) error
type GetEmailRequestObject ¶
type GetEmailRequestObject struct {
EmailID string `json:"email_id"`
}
type GetEmailResponseFunc ¶
type GetEmailResponseFunc func(http.ResponseWriter) error
GetEmailResponseFunc writes a fully custom response for GetEmail.
func (GetEmailResponseFunc) VisitGetEmailResponse ¶
func (f GetEmailResponseFunc) VisitGetEmailResponse(w http.ResponseWriter) error
VisitGetEmailResponse implements GetEmailResponseObject.
type GetEmailResponseObject ¶
type GetEmailResponseObject interface {
VisitGetEmailResponse(w http.ResponseWriter) error
}
type GetEmaildefaultJSONResponse ¶
type GetEmaildefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (GetEmaildefaultJSONResponse) VisitGetEmailResponse ¶
func (response GetEmaildefaultJSONResponse) VisitGetEmailResponse(w http.ResponseWriter) error
type GetReceivedEmail200JSONResponse ¶
type GetReceivedEmail200JSONResponse GetReceivedEmailResponse
func (GetReceivedEmail200JSONResponse) VisitGetReceivedEmailResponse ¶
func (response GetReceivedEmail200JSONResponse) VisitGetReceivedEmailResponse(w http.ResponseWriter) error
type GetReceivedEmailAttachment200JSONResponse ¶
type GetReceivedEmailAttachment200JSONResponse RetrievedAttachment
func (GetReceivedEmailAttachment200JSONResponse) VisitGetReceivedEmailAttachmentResponse ¶
func (response GetReceivedEmailAttachment200JSONResponse) VisitGetReceivedEmailAttachmentResponse(w http.ResponseWriter) error
type GetReceivedEmailAttachmentRequestObject ¶
type GetReceivedEmailAttachmentRequestObject struct {
EmailID openapi_types.UUID `json:"email_id"`
AttachmentID openapi_types.UUID `json:"attachment_id"`
}
type GetReceivedEmailAttachmentResponseFunc ¶
type GetReceivedEmailAttachmentResponseFunc func(http.ResponseWriter) error
GetReceivedEmailAttachmentResponseFunc writes a fully custom response for GetReceivedEmailAttachment.
func (GetReceivedEmailAttachmentResponseFunc) VisitGetReceivedEmailAttachmentResponse ¶
func (f GetReceivedEmailAttachmentResponseFunc) VisitGetReceivedEmailAttachmentResponse(w http.ResponseWriter) error
VisitGetReceivedEmailAttachmentResponse implements GetReceivedEmailAttachmentResponseObject.
type GetReceivedEmailAttachmentResponseObject ¶
type GetReceivedEmailAttachmentResponseObject interface {
VisitGetReceivedEmailAttachmentResponse(w http.ResponseWriter) error
}
type GetReceivedEmailAttachmentdefaultJSONResponse ¶
type GetReceivedEmailAttachmentdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (GetReceivedEmailAttachmentdefaultJSONResponse) VisitGetReceivedEmailAttachmentResponse ¶
func (response GetReceivedEmailAttachmentdefaultJSONResponse) VisitGetReceivedEmailAttachmentResponse(w http.ResponseWriter) error
type GetReceivedEmailRequestObject ¶
type GetReceivedEmailRequestObject struct {
EmailID openapi_types.UUID `json:"email_id"`
}
type GetReceivedEmailResponse ¶
type GetReceivedEmailResponse struct {
// Attachments Array of attachments.
Attachments *[]struct {
// ContentDisposition How the attachment should be displayed.
ContentDisposition *GetReceivedEmailResponseAttachmentsContentDisposition `json:"content_disposition,omitempty"`
// ContentID The content ID for inline attachments.
ContentID *string `json:"content_id,omitempty"`
// ContentType The MIME type of the attachment.
ContentType *string `json:"content_type,omitempty"`
// Filename The filename of the attachment.
Filename *string `json:"filename,omitempty"`
// ID The ID of the attachment.
ID *openapi_types.UUID `json:"id,omitempty"`
// Size Size of the attachment in bytes.
Size *int `json:"size,omitempty"`
} `json:"attachments,omitempty"`
// Bcc The BCC recipients.
//
// Example: []
Bcc *[]string `json:"bcc,omitempty"`
// Cc The CC recipients.
//
// Example: []
Cc *[]string `json:"cc,omitempty"`
// CreatedAt Timestamp when the email was received.
//
// Example: 2023-10-06:23:47:56.678Z
CreatedAt *time.Time `json:"created_at,omitempty"`
// From The sender email address.
//
// Example: sender@example.com
From *string `json:"from,omitempty"`
// Headers The email headers.
//
// Example: {"X-Custom-Header":"value"}
Headers *map[string]interface{} `json:"headers,omitempty"`
// HTML The HTML content of the email.
//
// Example: <p>Email content</p>
HTML *string `json:"html,omitempty"`
// ID The ID of the received email.
//
// Example: 550e8400-e29b-41d4-a716-446655440000
ID *openapi_types.UUID `json:"id,omitempty"`
// MessageID The unique message ID from the email headers.
//
// Example: <message-id@example.com>
MessageID *string `json:"message_id,omitempty"`
// Object The type of object.
//
// Example: email
Object *string `json:"object,omitempty"`
// ReplyTo The reply-to addresses.
//
// Example: []
ReplyTo *[]string `json:"reply_to,omitempty"`
// Subject The email subject.
//
// Example: Hello World
Subject *string `json:"subject,omitempty"`
// Text The plain text content of the email.
//
// Example: Email content
Text *string `json:"text,omitempty"`
// To The recipient email addresses.
//
// Example: ["delivered@resend.dev"]
To *[]string `json:"to,omitempty"`
}
GetReceivedEmailResponse defines model for GetReceivedEmailResponse.
type GetReceivedEmailResponseAttachmentsContentDisposition ¶
type GetReceivedEmailResponseAttachmentsContentDisposition string
GetReceivedEmailResponseAttachmentsContentDisposition How the attachment should be displayed.
const ( GetReceivedEmailResponseAttachmentsContentDispositionAttachment GetReceivedEmailResponseAttachmentsContentDisposition = "attachment" GetReceivedEmailResponseAttachmentsContentDispositionInline GetReceivedEmailResponseAttachmentsContentDisposition = "inline" )
Defines values for GetReceivedEmailResponseAttachmentsContentDisposition.
func (GetReceivedEmailResponseAttachmentsContentDisposition) Valid ¶
func (e GetReceivedEmailResponseAttachmentsContentDisposition) Valid() bool
Valid indicates whether the value is a known member of the GetReceivedEmailResponseAttachmentsContentDisposition enum.
type GetReceivedEmailResponseFunc ¶
type GetReceivedEmailResponseFunc func(http.ResponseWriter) error
GetReceivedEmailResponseFunc writes a fully custom response for GetReceivedEmail.
func (GetReceivedEmailResponseFunc) VisitGetReceivedEmailResponse ¶
func (f GetReceivedEmailResponseFunc) VisitGetReceivedEmailResponse(w http.ResponseWriter) error
VisitGetReceivedEmailResponse implements GetReceivedEmailResponseObject.
type GetReceivedEmailResponseObject ¶
type GetReceivedEmailResponseObject interface {
VisitGetReceivedEmailResponse(w http.ResponseWriter) error
}
type GetReceivedEmaildefaultJSONResponse ¶
type GetReceivedEmaildefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (GetReceivedEmaildefaultJSONResponse) VisitGetReceivedEmailResponse ¶
func (response GetReceivedEmaildefaultJSONResponse) VisitGetReceivedEmailResponse(w http.ResponseWriter) error
type GetSegment200JSONResponse ¶
type GetSegment200JSONResponse GetSegmentResponseSuccess
func (GetSegment200JSONResponse) VisitGetSegmentResponse ¶
func (response GetSegment200JSONResponse) VisitGetSegmentResponse(w http.ResponseWriter) error
type GetSegmentRequestObject ¶
type GetSegmentRequestObject struct {
ID string `json:"id"`
}
type GetSegmentResponseFunc ¶
type GetSegmentResponseFunc func(http.ResponseWriter) error
GetSegmentResponseFunc writes a fully custom response for GetSegment.
func (GetSegmentResponseFunc) VisitGetSegmentResponse ¶
func (f GetSegmentResponseFunc) VisitGetSegmentResponse(w http.ResponseWriter) error
VisitGetSegmentResponse implements GetSegmentResponseObject.
type GetSegmentResponseObject ¶
type GetSegmentResponseObject interface {
VisitGetSegmentResponse(w http.ResponseWriter) error
}
type GetSegmentResponseSuccess ¶
type GetSegmentResponseSuccess struct {
// AudienceID The ID of the audience this segment belongs to.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
AudienceID *string `json:"audience_id,omitempty"`
// CreatedAt Timestamp indicating when the segment was created.
CreatedAt *time.Time `json:"created_at,omitempty"`
// Filter Filter conditions for the segment.
Filter *map[string]interface{} `json:"filter,omitempty"`
// ID The ID of the segment.
//
// Example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
ID *string `json:"id,omitempty"`
// Name The name of the segment.
//
// Example: Active Users
Name *string `json:"name,omitempty"`
// Object The object type.
//
// Example: segment
Object *string `json:"object,omitempty"`
}
GetSegmentResponseSuccess defines model for GetSegmentResponseSuccess.
type GetSegmentdefaultJSONResponse ¶
type GetSegmentdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (GetSegmentdefaultJSONResponse) VisitGetSegmentResponse ¶
func (response GetSegmentdefaultJSONResponse) VisitGetSegmentResponse(w http.ResponseWriter) error
type GetTemplate200JSONResponse ¶
type GetTemplate200JSONResponse Template
func (GetTemplate200JSONResponse) VisitGetTemplateResponse ¶
func (response GetTemplate200JSONResponse) VisitGetTemplateResponse(w http.ResponseWriter) error
type GetTemplateRequestObject ¶
type GetTemplateRequestObject struct {
ID string `json:"id"`
}
type GetTemplateResponseFunc ¶
type GetTemplateResponseFunc func(http.ResponseWriter) error
GetTemplateResponseFunc writes a fully custom response for GetTemplate.
func (GetTemplateResponseFunc) VisitGetTemplateResponse ¶
func (f GetTemplateResponseFunc) VisitGetTemplateResponse(w http.ResponseWriter) error
VisitGetTemplateResponse implements GetTemplateResponseObject.
type GetTemplateResponseObject ¶
type GetTemplateResponseObject interface {
VisitGetTemplateResponse(w http.ResponseWriter) error
}
type GetTemplatedefaultJSONResponse ¶
type GetTemplatedefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (GetTemplatedefaultJSONResponse) VisitGetTemplateResponse ¶
func (response GetTemplatedefaultJSONResponse) VisitGetTemplateResponse(w http.ResponseWriter) error
type GetTopic200JSONResponse ¶
type GetTopic200JSONResponse GetTopicResponseSuccess
func (GetTopic200JSONResponse) VisitGetTopicResponse ¶
func (response GetTopic200JSONResponse) VisitGetTopicResponse(w http.ResponseWriter) error
type GetTopicRequestObject ¶
type GetTopicRequestObject struct {
ID string `json:"id"`
}
type GetTopicResponseFunc ¶
type GetTopicResponseFunc func(http.ResponseWriter) error
GetTopicResponseFunc writes a fully custom response for GetTopic.
func (GetTopicResponseFunc) VisitGetTopicResponse ¶
func (f GetTopicResponseFunc) VisitGetTopicResponse(w http.ResponseWriter) error
VisitGetTopicResponse implements GetTopicResponseObject.
type GetTopicResponseObject ¶
type GetTopicResponseObject interface {
VisitGetTopicResponse(w http.ResponseWriter) error
}
type GetTopicResponseSuccess ¶
type GetTopicResponseSuccess struct {
// CreatedAt Timestamp indicating when the topic was created.
CreatedAt *time.Time `json:"created_at,omitempty"`
// DefaultSubscription The default subscription status for the topic.
DefaultSubscription *GetTopicResponseSuccessDefaultSubscription `json:"default_subscription,omitempty"`
// Description A description of the topic.
Description *string `json:"description,omitempty"`
// ID The ID of the topic.
//
// Example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
ID *string `json:"id,omitempty"`
// Name The name of the topic.
//
// Example: Newsletter
Name *string `json:"name,omitempty"`
// Object The object type.
//
// Example: topic
Object *string `json:"object,omitempty"`
// Visibility The visibility of the topic.
Visibility *GetTopicResponseSuccessVisibility `json:"visibility,omitempty"`
}
GetTopicResponseSuccess defines model for GetTopicResponseSuccess.
type GetTopicResponseSuccessDefaultSubscription ¶
type GetTopicResponseSuccessDefaultSubscription string
GetTopicResponseSuccessDefaultSubscription The default subscription status for the topic.
const ( GetTopicResponseSuccessDefaultSubscriptionOptIn GetTopicResponseSuccessDefaultSubscription = "opt_in" GetTopicResponseSuccessDefaultSubscriptionOptOut GetTopicResponseSuccessDefaultSubscription = "opt_out" )
Defines values for GetTopicResponseSuccessDefaultSubscription.
func (GetTopicResponseSuccessDefaultSubscription) Valid ¶
func (e GetTopicResponseSuccessDefaultSubscription) Valid() bool
Valid indicates whether the value is a known member of the GetTopicResponseSuccessDefaultSubscription enum.
type GetTopicResponseSuccessVisibility ¶
type GetTopicResponseSuccessVisibility string
GetTopicResponseSuccessVisibility The visibility of the topic.
const ( GetTopicResponseSuccessVisibilityPrivate GetTopicResponseSuccessVisibility = "private" GetTopicResponseSuccessVisibilityPublic GetTopicResponseSuccessVisibility = "public" )
Defines values for GetTopicResponseSuccessVisibility.
func (GetTopicResponseSuccessVisibility) Valid ¶
func (e GetTopicResponseSuccessVisibility) Valid() bool
Valid indicates whether the value is a known member of the GetTopicResponseSuccessVisibility enum.
type GetTopicdefaultJSONResponse ¶
type GetTopicdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (GetTopicdefaultJSONResponse) VisitGetTopicResponse ¶
func (response GetTopicdefaultJSONResponse) VisitGetTopicResponse(w http.ResponseWriter) error
type GetWebhook200JSONResponse ¶
type GetWebhook200JSONResponse GetWebhookResponse
func (GetWebhook200JSONResponse) VisitGetWebhookResponse ¶
func (response GetWebhook200JSONResponse) VisitGetWebhookResponse(w http.ResponseWriter) error
type GetWebhookRequestObject ¶
type GetWebhookRequestObject struct {
WebhookID openapi_types.UUID `json:"webhook_id"`
}
type GetWebhookResponse ¶
type GetWebhookResponse struct {
// CreatedAt Timestamp indicating when the webhook was created.
//
// Example: 2023-10-06T23:47:56.678Z
CreatedAt *time.Time `json:"created_at,omitempty"`
// Endpoint The URL where webhook events are sent.
//
// Example: https://webhook.example.com/handler
Endpoint *string `json:"endpoint,omitempty"`
// Events Array of event types subscribed to.
//
// Example: ["email.sent","email.delivered"]
Events *[]string `json:"events,omitempty"`
// ID The ID of the webhook.
//
// Example: 479e3145-dd38-476b-932c-529ceb705947
ID *openapi_types.UUID `json:"id,omitempty"`
// Object The type of object.
//
// Example: webhook
Object *string `json:"object,omitempty"`
// SigningSecret The secret key used to verify webhook payloads.
//
// Example: whsec_...
SigningSecret *string `json:"signing_secret,omitempty"`
// Status The status of the webhook.
//
// Example: enabled
Status *string `json:"status,omitempty"`
}
GetWebhookResponse defines model for GetWebhookResponse.
type GetWebhookResponseFunc ¶
type GetWebhookResponseFunc func(http.ResponseWriter) error
GetWebhookResponseFunc writes a fully custom response for GetWebhook.
func (GetWebhookResponseFunc) VisitGetWebhookResponse ¶
func (f GetWebhookResponseFunc) VisitGetWebhookResponse(w http.ResponseWriter) error
VisitGetWebhookResponse implements GetWebhookResponseObject.
type GetWebhookResponseObject ¶
type GetWebhookResponseObject interface {
VisitGetWebhookResponse(w http.ResponseWriter) error
}
type GetWebhookdefaultJSONResponse ¶
type GetWebhookdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (GetWebhookdefaultJSONResponse) VisitGetWebhookResponse ¶
func (response GetWebhookdefaultJSONResponse) VisitGetWebhookResponse(w http.ResponseWriter) error
type HandlerFunc ¶
HandlerFunc implements one typed Resend API operation.
type Handlers ¶
type Handlers struct {
AddContactToSegment HandlerFunc[AddContactToSegmentRequestObject, AddContactToSegmentResponseObject]
CancelEmail HandlerFunc[CancelEmailRequestObject, CancelEmailResponseObject]
CreateAPIKey HandlerFunc[CreateAPIKeyRequestObject, CreateAPIKeyResponseObject]
CreateAudience HandlerFunc[CreateAudienceRequestObject, CreateAudienceResponseObject]
CreateBroadcast HandlerFunc[CreateBroadcastRequestObject, CreateBroadcastResponseObject]
CreateContact HandlerFunc[CreateContactRequestObject, CreateContactResponseObject]
CreateContactProperty HandlerFunc[CreateContactPropertyRequestObject, CreateContactPropertyResponseObject]
CreateDomain HandlerFunc[CreateDomainRequestObject, CreateDomainResponseObject]
CreateSegment HandlerFunc[CreateSegmentRequestObject, CreateSegmentResponseObject]
CreateTemplate HandlerFunc[CreateTemplateRequestObject, CreateTemplateResponseObject]
CreateTopic HandlerFunc[CreateTopicRequestObject, CreateTopicResponseObject]
CreateWebhook HandlerFunc[CreateWebhookRequestObject, CreateWebhookResponseObject]
DeleteAPIKey HandlerFunc[DeleteAPIKeyRequestObject, DeleteAPIKeyResponseObject]
DeleteAudience HandlerFunc[DeleteAudienceRequestObject, DeleteAudienceResponseObject]
DeleteBroadcast HandlerFunc[DeleteBroadcastRequestObject, DeleteBroadcastResponseObject]
DeleteContact HandlerFunc[DeleteContactRequestObject, DeleteContactResponseObject]
DeleteContactProperty HandlerFunc[DeleteContactPropertyRequestObject, DeleteContactPropertyResponseObject]
DeleteDomain HandlerFunc[DeleteDomainRequestObject, DeleteDomainResponseObject]
DeleteSegment HandlerFunc[DeleteSegmentRequestObject, DeleteSegmentResponseObject]
DeleteTemplate HandlerFunc[DeleteTemplateRequestObject, DeleteTemplateResponseObject]
DeleteTopic HandlerFunc[DeleteTopicRequestObject, DeleteTopicResponseObject]
DeleteWebhook HandlerFunc[DeleteWebhookRequestObject, DeleteWebhookResponseObject]
DuplicateTemplate HandlerFunc[DuplicateTemplateRequestObject, DuplicateTemplateResponseObject]
GetAudience HandlerFunc[GetAudienceRequestObject, GetAudienceResponseObject]
GetBroadcast HandlerFunc[GetBroadcastRequestObject, GetBroadcastResponseObject]
GetContact HandlerFunc[GetContactRequestObject, GetContactResponseObject]
GetContactProperty HandlerFunc[GetContactPropertyRequestObject, GetContactPropertyResponseObject]
GetDomain HandlerFunc[GetDomainRequestObject, GetDomainResponseObject]
GetEmail HandlerFunc[GetEmailRequestObject, GetEmailResponseObject]
GetEmailAttachment HandlerFunc[GetEmailAttachmentRequestObject, GetEmailAttachmentResponseObject]
GetReceivedEmail HandlerFunc[GetReceivedEmailRequestObject, GetReceivedEmailResponseObject]
GetReceivedEmailAttachment HandlerFunc[GetReceivedEmailAttachmentRequestObject, GetReceivedEmailAttachmentResponseObject]
GetSegment HandlerFunc[GetSegmentRequestObject, GetSegmentResponseObject]
GetTemplate HandlerFunc[GetTemplateRequestObject, GetTemplateResponseObject]
GetTopic HandlerFunc[GetTopicRequestObject, GetTopicResponseObject]
GetWebhook HandlerFunc[GetWebhookRequestObject, GetWebhookResponseObject]
ListAPIKeys HandlerFunc[ListAPIKeysRequestObject, ListAPIKeysResponseObject]
ListAudiences HandlerFunc[ListAudiencesRequestObject, ListAudiencesResponseObject]
ListBroadcasts HandlerFunc[ListBroadcastsRequestObject, ListBroadcastsResponseObject]
ListContactProperties HandlerFunc[ListContactPropertiesRequestObject, ListContactPropertiesResponseObject]
ListContactSegments HandlerFunc[ListContactSegmentsRequestObject, ListContactSegmentsResponseObject]
ListContactTopics HandlerFunc[ListContactTopicsRequestObject, ListContactTopicsResponseObject]
ListContacts HandlerFunc[ListContactsRequestObject, ListContactsResponseObject]
ListDomains HandlerFunc[ListDomainsRequestObject, ListDomainsResponseObject]
ListEmailAttachments HandlerFunc[ListEmailAttachmentsRequestObject, ListEmailAttachmentsResponseObject]
ListEmails HandlerFunc[ListEmailsRequestObject, ListEmailsResponseObject]
ListReceivedEmailAttachments HandlerFunc[ListReceivedEmailAttachmentsRequestObject, ListReceivedEmailAttachmentsResponseObject]
ListReceivedEmails HandlerFunc[ListReceivedEmailsRequestObject, ListReceivedEmailsResponseObject]
ListSegments HandlerFunc[ListSegmentsRequestObject, ListSegmentsResponseObject]
ListTemplates HandlerFunc[ListTemplatesRequestObject, ListTemplatesResponseObject]
ListTopics HandlerFunc[ListTopicsRequestObject, ListTopicsResponseObject]
ListWebhooks HandlerFunc[ListWebhooksRequestObject, ListWebhooksResponseObject]
PublishTemplate HandlerFunc[PublishTemplateRequestObject, PublishTemplateResponseObject]
RemoveContactFromSegment HandlerFunc[RemoveContactFromSegmentRequestObject, RemoveContactFromSegmentResponseObject]
SendBatchEmails HandlerFunc[SendBatchEmailsRequestObject, SendBatchEmailsResponseObject]
SendBroadcast HandlerFunc[SendBroadcastRequestObject, SendBroadcastResponseObject]
SendEmail HandlerFunc[SendEmailRequestObject, SendEmailResponseObject]
UpdateBroadcast HandlerFunc[UpdateBroadcastRequestObject, UpdateBroadcastResponseObject]
UpdateContact HandlerFunc[UpdateContactRequestObject, UpdateContactResponseObject]
UpdateContactProperty HandlerFunc[UpdateContactPropertyRequestObject, UpdateContactPropertyResponseObject]
UpdateContactTopics HandlerFunc[UpdateContactTopicsRequestObject, UpdateContactTopicsResponseObject]
UpdateDomain HandlerFunc[UpdateDomainRequestObject, UpdateDomainResponseObject]
UpdateEmail HandlerFunc[UpdateEmailRequestObject, UpdateEmailResponseObject]
UpdateTemplate HandlerFunc[UpdateTemplateRequestObject, UpdateTemplateResponseObject]
UpdateTopic HandlerFunc[UpdateTopicRequestObject, UpdateTopicResponseObject]
UpdateWebhook HandlerFunc[UpdateWebhookRequestObject, UpdateWebhookResponseObject]
VerifyDomain HandlerFunc[VerifyDomainRequestObject, VerifyDomainResponseObject]
}
Handlers contains optional typed implementations for every Resend API operation. A nil field uses the default 501 Not Implemented response.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type ListAPIKeys200JSONResponse ¶
type ListAPIKeys200JSONResponse ListAPIKeysResponse
func (ListAPIKeys200JSONResponse) VisitListAPIKeysResponse ¶
func (response ListAPIKeys200JSONResponse) VisitListAPIKeysResponse(w http.ResponseWriter) error
type ListAPIKeysParams ¶
type ListAPIKeysParams struct {
// Limit Number of items to return.
Limit *PaginationLimit `form:"limit,omitempty" json:"limit,omitempty"`
// After Return items after this cursor.
After *PaginationAfter `form:"after,omitempty" json:"after,omitempty"`
// Before Return items before this cursor.
Before *PaginationBefore `form:"before,omitempty" json:"before,omitempty"`
}
ListAPIKeysParams defines parameters for ListAPIKeys.
type ListAPIKeysRequestObject ¶
type ListAPIKeysRequestObject struct {
Params ListAPIKeysParams
}
type ListAPIKeysResponse ¶
type ListAPIKeysResponse struct {
Data *[]APIKey `json:"data,omitempty"`
// HasMore Indicates if there are more results available.
//
// Example: false
HasMore *bool `json:"has_more,omitempty"`
// Object Type of the response object.
//
// Example: list
Object *string `json:"object,omitempty"`
}
ListAPIKeysResponse defines model for ListApiKeysResponse.
type ListAPIKeysResponseFunc ¶
type ListAPIKeysResponseFunc func(http.ResponseWriter) error
ListAPIKeysResponseFunc writes a fully custom response for ListAPIKeys.
func (ListAPIKeysResponseFunc) VisitListAPIKeysResponse ¶
func (f ListAPIKeysResponseFunc) VisitListAPIKeysResponse(w http.ResponseWriter) error
VisitListAPIKeysResponse implements ListAPIKeysResponseObject.
type ListAPIKeysResponseObject ¶
type ListAPIKeysResponseObject interface {
VisitListAPIKeysResponse(w http.ResponseWriter) error
}
type ListAPIKeysdefaultJSONResponse ¶
type ListAPIKeysdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (ListAPIKeysdefaultJSONResponse) VisitListAPIKeysResponse ¶
func (response ListAPIKeysdefaultJSONResponse) VisitListAPIKeysResponse(w http.ResponseWriter) error
type ListAttachmentsResponse ¶
type ListAttachmentsResponse struct {
// Data Array containing attachment information.
Data *[]struct {
// ContentDisposition How the attachment should be displayed.
//
// Example: attachment
ContentDisposition *ListAttachmentsResponseDataContentDisposition `json:"content_disposition,omitempty"`
// ContentID The content ID for inline attachments.
//
// Example: img001
ContentID *string `json:"content_id,omitempty"`
// ContentType The MIME type of the attachment.
//
// Example: application/pdf
ContentType *string `json:"content_type,omitempty"`
// DownloadURL Signed URL to download the attachment content.
//
// Example: https://cloudfront.example.com/path?Signature=...
DownloadURL *string `json:"download_url,omitempty"`
// ExpiresAt Timestamp when the download URL expires.
//
// Example: 2024-10-27T18:30:00.000Z
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// Filename The filename of the attachment.
//
// Example: document.pdf
Filename *string `json:"filename,omitempty"`
// ID The ID of the attachment.
//
// Example: 660e8400-e29b-41d4-a716-446655440000
ID *openapi_types.UUID `json:"id,omitempty"`
// Size Size of the attachment in bytes.
//
// Example: 2048
Size *int `json:"size,omitempty"`
} `json:"data,omitempty"`
// HasMore Indicates if there are more results available.
//
// Example: false
HasMore *bool `json:"has_more,omitempty"`
// Object Type of the response object.
//
// Example: list
Object *string `json:"object,omitempty"`
}
ListAttachmentsResponse defines model for ListAttachmentsResponse.
type ListAttachmentsResponseDataContentDisposition ¶
type ListAttachmentsResponseDataContentDisposition string
ListAttachmentsResponseDataContentDisposition How the attachment should be displayed.
Example: attachment
const ( ListAttachmentsResponseDataContentDispositionAttachment ListAttachmentsResponseDataContentDisposition = "attachment" ListAttachmentsResponseDataContentDispositionInline ListAttachmentsResponseDataContentDisposition = "inline" )
Defines values for ListAttachmentsResponseDataContentDisposition.
func (ListAttachmentsResponseDataContentDisposition) Valid ¶
func (e ListAttachmentsResponseDataContentDisposition) Valid() bool
Valid indicates whether the value is a known member of the ListAttachmentsResponseDataContentDisposition enum.
type ListAudiences200JSONResponse ¶
type ListAudiences200JSONResponse ListAudiencesResponseSuccess
func (ListAudiences200JSONResponse) VisitListAudiencesResponse ¶
func (response ListAudiences200JSONResponse) VisitListAudiencesResponse(w http.ResponseWriter) error
type ListAudiencesRequestObject ¶
type ListAudiencesRequestObject struct {
}
type ListAudiencesResponseFunc ¶
type ListAudiencesResponseFunc func(http.ResponseWriter) error
ListAudiencesResponseFunc writes a fully custom response for ListAudiences.
func (ListAudiencesResponseFunc) VisitListAudiencesResponse ¶
func (f ListAudiencesResponseFunc) VisitListAudiencesResponse(w http.ResponseWriter) error
VisitListAudiencesResponse implements ListAudiencesResponseObject.
type ListAudiencesResponseObject ¶
type ListAudiencesResponseObject interface {
VisitListAudiencesResponse(w http.ResponseWriter) error
}
type ListAudiencesResponseSuccess
deprecated
type ListAudiencesResponseSuccess struct {
// Data Array containing audience information.
Data *[]struct {
// CreatedAt Timestamp indicating when the audience was created.
//
// Example: 2023-10-06T22:59:55.977Z
CreatedAt *time.Time `json:"created_at,omitempty"`
// ID Unique identifier for the audience.
//
// Example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
ID *string `json:"id,omitempty"`
// Name Name of the audience.
//
// Example: Registered Users
Name *string `json:"name,omitempty"`
} `json:"data,omitempty"`
// Object Type of the response object.
//
// Example: list
Object *string `json:"object,omitempty"`
}
ListAudiencesResponseSuccess defines model for ListAudiencesResponseSuccess.
Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set
type ListAudiencesdefaultJSONResponse ¶
type ListAudiencesdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (ListAudiencesdefaultJSONResponse) VisitListAudiencesResponse ¶
func (response ListAudiencesdefaultJSONResponse) VisitListAudiencesResponse(w http.ResponseWriter) error
type ListBroadcasts200JSONResponse ¶
type ListBroadcasts200JSONResponse ListBroadcastsResponseSuccess
func (ListBroadcasts200JSONResponse) VisitListBroadcastsResponse ¶
func (response ListBroadcasts200JSONResponse) VisitListBroadcastsResponse(w http.ResponseWriter) error
type ListBroadcastsParams ¶
type ListBroadcastsParams struct {
// Limit Number of items to return.
Limit *PaginationLimit `form:"limit,omitempty" json:"limit,omitempty"`
// After Return items after this cursor.
After *PaginationAfter `form:"after,omitempty" json:"after,omitempty"`
// Before Return items before this cursor.
Before *PaginationBefore `form:"before,omitempty" json:"before,omitempty"`
}
ListBroadcastsParams defines parameters for ListBroadcasts.
type ListBroadcastsRequestObject ¶
type ListBroadcastsRequestObject struct {
Params ListBroadcastsParams
}
type ListBroadcastsResponseFunc ¶
type ListBroadcastsResponseFunc func(http.ResponseWriter) error
ListBroadcastsResponseFunc writes a fully custom response for ListBroadcasts.
func (ListBroadcastsResponseFunc) VisitListBroadcastsResponse ¶
func (f ListBroadcastsResponseFunc) VisitListBroadcastsResponse(w http.ResponseWriter) error
VisitListBroadcastsResponse implements ListBroadcastsResponseObject.
type ListBroadcastsResponseObject ¶
type ListBroadcastsResponseObject interface {
VisitListBroadcastsResponse(w http.ResponseWriter) error
}
type ListBroadcastsResponseSuccess ¶
type ListBroadcastsResponseSuccess struct {
// Data Array containing broadcast information.
Data *[]struct {
// AudienceID Deprecated. Use segment_id instead.
//
// Example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
AudienceID *string `json:"audience_id,omitempty"`
// CreatedAt Timestamp indicating when the broadcast was created.
//
// Example: 2023-10-06T22:59:55.977Z
CreatedAt *time.Time `json:"created_at,omitempty"`
// ID Unique identifier for the broadcast.
//
// Example: e169aa45-1ecf-4183-9955-b1499d5701d3
ID *string `json:"id,omitempty"`
// Name Name of the broadcast.
//
// Example: November announcements
Name *string `json:"name,omitempty"`
// ScheduledAt Timestamp indicating when the broadcast is scheduled to be sent.
//
// Example: 2023-10-06T22:59:55.977Z
ScheduledAt *time.Time `json:"scheduled_at,omitempty"`
// SegmentID Unique identifier of the segment this broadcast will be sent to.
//
// Example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
SegmentID *string `json:"segment_id,omitempty"`
// SentAt Timestamp indicating when the broadcast was sent.
//
// Example: 2023-10-06T22:59:55.977Z
SentAt *time.Time `json:"sent_at,omitempty"`
// Status The status of the broadcast.
//
// Example: draft
Status *string `json:"status,omitempty"`
// TopicID The topic ID that the broadcast is scoped to.
//
// Example: b6d24b8e-af0b-4c3c-be0c-359bbd97381e
TopicID *string `json:"topic_id,omitempty"`
} `json:"data,omitempty"`
// HasMore Indicates if there are more results available.
//
// Example: false
HasMore *bool `json:"has_more,omitempty"`
// Object Type of the response object.
//
// Example: list
Object *string `json:"object,omitempty"`
}
ListBroadcastsResponseSuccess defines model for ListBroadcastsResponseSuccess.
type ListBroadcastsdefaultJSONResponse ¶
type ListBroadcastsdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (ListBroadcastsdefaultJSONResponse) VisitListBroadcastsResponse ¶
func (response ListBroadcastsdefaultJSONResponse) VisitListBroadcastsResponse(w http.ResponseWriter) error
type ListContactProperties200JSONResponse ¶
type ListContactProperties200JSONResponse ListContactPropertiesResponseSuccess
func (ListContactProperties200JSONResponse) VisitListContactPropertiesResponse ¶
func (response ListContactProperties200JSONResponse) VisitListContactPropertiesResponse(w http.ResponseWriter) error
type ListContactPropertiesParams ¶
type ListContactPropertiesParams struct {
// Limit Number of items to return.
Limit *PaginationLimit `form:"limit,omitempty" json:"limit,omitempty"`
// After Return items after this cursor.
After *PaginationAfter `form:"after,omitempty" json:"after,omitempty"`
// Before Return items before this cursor.
Before *PaginationBefore `form:"before,omitempty" json:"before,omitempty"`
}
ListContactPropertiesParams defines parameters for ListContactProperties.
type ListContactPropertiesRequestObject ¶
type ListContactPropertiesRequestObject struct {
Params ListContactPropertiesParams
}
type ListContactPropertiesResponseFunc ¶
type ListContactPropertiesResponseFunc func(http.ResponseWriter) error
ListContactPropertiesResponseFunc writes a fully custom response for ListContactProperties.
func (ListContactPropertiesResponseFunc) VisitListContactPropertiesResponse ¶
func (f ListContactPropertiesResponseFunc) VisitListContactPropertiesResponse(w http.ResponseWriter) error
VisitListContactPropertiesResponse implements ListContactPropertiesResponseObject.
type ListContactPropertiesResponseObject ¶
type ListContactPropertiesResponseObject interface {
VisitListContactPropertiesResponse(w http.ResponseWriter) error
}
type ListContactPropertiesResponseSuccess ¶
type ListContactPropertiesResponseSuccess struct {
// Data Array containing contact property information.
Data *[]struct {
// CreatedAt Timestamp indicating when the contact property was created.
CreatedAt *time.Time `json:"created_at,omitempty"`
// FallbackValue The default value when the property is not set for a contact.
FallbackValue *ListContactPropertiesResponseSuccess_Data_FallbackValue `json:"fallback_value,omitempty"`
// ID Unique identifier for the contact property.
ID *string `json:"id,omitempty"`
// Key The property key.
Key *string `json:"key,omitempty"`
// Type The property type.
Type *string `json:"type,omitempty"`
} `json:"data,omitempty"`
// HasMore Indicates if there are more results available.
HasMore *bool `json:"has_more,omitempty"`
// Object Type of the response object.
//
// Example: list
Object *string `json:"object,omitempty"`
}
ListContactPropertiesResponseSuccess defines model for ListContactPropertiesResponseSuccess.
type ListContactPropertiesResponseSuccessDataFallbackValue0 ¶
type ListContactPropertiesResponseSuccessDataFallbackValue0 = string
ListContactPropertiesResponseSuccessDataFallbackValue0 defines model for ListContactPropertiesResponseSuccess.Data.FallbackValue.0.
type ListContactPropertiesResponseSuccessDataFallbackValue1 ¶
type ListContactPropertiesResponseSuccessDataFallbackValue1 = float32
ListContactPropertiesResponseSuccessDataFallbackValue1 defines model for ListContactPropertiesResponseSuccess.Data.FallbackValue.1.
type ListContactPropertiesResponseSuccess_Data_FallbackValue ¶
type ListContactPropertiesResponseSuccess_Data_FallbackValue struct {
// contains filtered or unexported fields
}
ListContactPropertiesResponseSuccess_Data_FallbackValue The default value when the property is not set for a contact.
func (ListContactPropertiesResponseSuccess_Data_FallbackValue) AsListContactPropertiesResponseSuccessDataFallbackValue0 ¶
func (t ListContactPropertiesResponseSuccess_Data_FallbackValue) AsListContactPropertiesResponseSuccessDataFallbackValue0() (ListContactPropertiesResponseSuccessDataFallbackValue0, error)
AsListContactPropertiesResponseSuccessDataFallbackValue0 returns the union data inside the ListContactPropertiesResponseSuccess_Data_FallbackValue as a ListContactPropertiesResponseSuccessDataFallbackValue0
func (ListContactPropertiesResponseSuccess_Data_FallbackValue) AsListContactPropertiesResponseSuccessDataFallbackValue1 ¶
func (t ListContactPropertiesResponseSuccess_Data_FallbackValue) AsListContactPropertiesResponseSuccessDataFallbackValue1() (ListContactPropertiesResponseSuccessDataFallbackValue1, error)
AsListContactPropertiesResponseSuccessDataFallbackValue1 returns the union data inside the ListContactPropertiesResponseSuccess_Data_FallbackValue as a ListContactPropertiesResponseSuccessDataFallbackValue1
func (*ListContactPropertiesResponseSuccess_Data_FallbackValue) FromListContactPropertiesResponseSuccessDataFallbackValue0 ¶
func (t *ListContactPropertiesResponseSuccess_Data_FallbackValue) FromListContactPropertiesResponseSuccessDataFallbackValue0(v ListContactPropertiesResponseSuccessDataFallbackValue0) error
FromListContactPropertiesResponseSuccessDataFallbackValue0 overwrites any union data inside the ListContactPropertiesResponseSuccess_Data_FallbackValue as the provided ListContactPropertiesResponseSuccessDataFallbackValue0
func (*ListContactPropertiesResponseSuccess_Data_FallbackValue) FromListContactPropertiesResponseSuccessDataFallbackValue1 ¶
func (t *ListContactPropertiesResponseSuccess_Data_FallbackValue) FromListContactPropertiesResponseSuccessDataFallbackValue1(v ListContactPropertiesResponseSuccessDataFallbackValue1) error
FromListContactPropertiesResponseSuccessDataFallbackValue1 overwrites any union data inside the ListContactPropertiesResponseSuccess_Data_FallbackValue as the provided ListContactPropertiesResponseSuccessDataFallbackValue1
func (ListContactPropertiesResponseSuccess_Data_FallbackValue) MarshalJSON ¶
func (t ListContactPropertiesResponseSuccess_Data_FallbackValue) MarshalJSON() ([]byte, error)
func (*ListContactPropertiesResponseSuccess_Data_FallbackValue) MergeListContactPropertiesResponseSuccessDataFallbackValue0 ¶
func (t *ListContactPropertiesResponseSuccess_Data_FallbackValue) MergeListContactPropertiesResponseSuccessDataFallbackValue0(v ListContactPropertiesResponseSuccessDataFallbackValue0) error
MergeListContactPropertiesResponseSuccessDataFallbackValue0 performs a merge with any union data inside the ListContactPropertiesResponseSuccess_Data_FallbackValue, using the provided ListContactPropertiesResponseSuccessDataFallbackValue0
func (*ListContactPropertiesResponseSuccess_Data_FallbackValue) MergeListContactPropertiesResponseSuccessDataFallbackValue1 ¶
func (t *ListContactPropertiesResponseSuccess_Data_FallbackValue) MergeListContactPropertiesResponseSuccessDataFallbackValue1(v ListContactPropertiesResponseSuccessDataFallbackValue1) error
MergeListContactPropertiesResponseSuccessDataFallbackValue1 performs a merge with any union data inside the ListContactPropertiesResponseSuccess_Data_FallbackValue, using the provided ListContactPropertiesResponseSuccessDataFallbackValue1
func (*ListContactPropertiesResponseSuccess_Data_FallbackValue) UnmarshalJSON ¶
func (t *ListContactPropertiesResponseSuccess_Data_FallbackValue) UnmarshalJSON(b []byte) error
type ListContactPropertiesdefaultJSONResponse ¶
type ListContactPropertiesdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (ListContactPropertiesdefaultJSONResponse) VisitListContactPropertiesResponse ¶
func (response ListContactPropertiesdefaultJSONResponse) VisitListContactPropertiesResponse(w http.ResponseWriter) error
type ListContactSegments200JSONResponse ¶
type ListContactSegments200JSONResponse ListContactSegmentsResponseSuccess
func (ListContactSegments200JSONResponse) VisitListContactSegmentsResponse ¶
func (response ListContactSegments200JSONResponse) VisitListContactSegmentsResponse(w http.ResponseWriter) error
type ListContactSegmentsParams ¶
type ListContactSegmentsParams struct {
// Limit Number of items to return.
Limit *PaginationLimit `form:"limit,omitempty" json:"limit,omitempty"`
// After Return items after this cursor.
After *PaginationAfter `form:"after,omitempty" json:"after,omitempty"`
// Before Return items before this cursor.
Before *PaginationBefore `form:"before,omitempty" json:"before,omitempty"`
}
ListContactSegmentsParams defines parameters for ListContactSegments.
type ListContactSegmentsRequestObject ¶
type ListContactSegmentsRequestObject struct {
ContactID string `json:"contact_id"`
Params ListContactSegmentsParams
}
type ListContactSegmentsResponseFunc ¶
type ListContactSegmentsResponseFunc func(http.ResponseWriter) error
ListContactSegmentsResponseFunc writes a fully custom response for ListContactSegments.
func (ListContactSegmentsResponseFunc) VisitListContactSegmentsResponse ¶
func (f ListContactSegmentsResponseFunc) VisitListContactSegmentsResponse(w http.ResponseWriter) error
VisitListContactSegmentsResponse implements ListContactSegmentsResponseObject.
type ListContactSegmentsResponseObject ¶
type ListContactSegmentsResponseObject interface {
VisitListContactSegmentsResponse(w http.ResponseWriter) error
}
type ListContactSegmentsResponseSuccess ¶
type ListContactSegmentsResponseSuccess struct {
// Data Array containing segment information for this contact.
Data *[]struct {
// CreatedAt Timestamp indicating when the contact was added to the segment.
CreatedAt *time.Time `json:"created_at,omitempty"`
// ID Unique identifier for the segment.
ID *string `json:"id,omitempty"`
// Name Name of the segment.
Name *string `json:"name,omitempty"`
} `json:"data,omitempty"`
// HasMore Indicates if there are more results available.
HasMore *bool `json:"has_more,omitempty"`
// Object Type of the response object.
//
// Example: list
Object *string `json:"object,omitempty"`
}
ListContactSegmentsResponseSuccess defines model for ListContactSegmentsResponseSuccess.
type ListContactSegmentsdefaultJSONResponse ¶
type ListContactSegmentsdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (ListContactSegmentsdefaultJSONResponse) VisitListContactSegmentsResponse ¶
func (response ListContactSegmentsdefaultJSONResponse) VisitListContactSegmentsResponse(w http.ResponseWriter) error
type ListContactTopics200JSONResponse ¶
type ListContactTopics200JSONResponse GetContactTopicsResponseSuccess
func (ListContactTopics200JSONResponse) VisitListContactTopicsResponse ¶
func (response ListContactTopics200JSONResponse) VisitListContactTopicsResponse(w http.ResponseWriter) error
type ListContactTopicsParams ¶
type ListContactTopicsParams struct {
// Limit Number of items to return.
Limit *PaginationLimit `form:"limit,omitempty" json:"limit,omitempty"`
// After Return items after this cursor.
After *PaginationAfter `form:"after,omitempty" json:"after,omitempty"`
// Before Return items before this cursor.
Before *PaginationBefore `form:"before,omitempty" json:"before,omitempty"`
}
ListContactTopicsParams defines parameters for ListContactTopics.
type ListContactTopicsRequestObject ¶
type ListContactTopicsRequestObject struct {
ContactID string `json:"contact_id"`
Params ListContactTopicsParams
}
type ListContactTopicsResponseFunc ¶
type ListContactTopicsResponseFunc func(http.ResponseWriter) error
ListContactTopicsResponseFunc writes a fully custom response for ListContactTopics.
func (ListContactTopicsResponseFunc) VisitListContactTopicsResponse ¶
func (f ListContactTopicsResponseFunc) VisitListContactTopicsResponse(w http.ResponseWriter) error
VisitListContactTopicsResponse implements ListContactTopicsResponseObject.
type ListContactTopicsResponseObject ¶
type ListContactTopicsResponseObject interface {
VisitListContactTopicsResponse(w http.ResponseWriter) error
}
type ListContactTopicsdefaultJSONResponse ¶
type ListContactTopicsdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (ListContactTopicsdefaultJSONResponse) VisitListContactTopicsResponse ¶
func (response ListContactTopicsdefaultJSONResponse) VisitListContactTopicsResponse(w http.ResponseWriter) error
type ListContacts200JSONResponse ¶
type ListContacts200JSONResponse ListContactsResponseSuccess
func (ListContacts200JSONResponse) VisitListContactsResponse ¶
func (response ListContacts200JSONResponse) VisitListContactsResponse(w http.ResponseWriter) error
type ListContactsParams ¶
type ListContactsParams struct {
// SegmentID Filter contacts by segment ID.
SegmentID *string `form:"segment_id,omitempty" json:"segment_id,omitempty"`
// Limit Number of items to return.
Limit *PaginationLimit `form:"limit,omitempty" json:"limit,omitempty"`
// After Return items after this cursor.
After *PaginationAfter `form:"after,omitempty" json:"after,omitempty"`
// Before Return items before this cursor.
Before *PaginationBefore `form:"before,omitempty" json:"before,omitempty"`
}
ListContactsParams defines parameters for ListContacts.
type ListContactsRequestObject ¶
type ListContactsRequestObject struct {
Params ListContactsParams
}
type ListContactsResponseFunc ¶
type ListContactsResponseFunc func(http.ResponseWriter) error
ListContactsResponseFunc writes a fully custom response for ListContacts.
func (ListContactsResponseFunc) VisitListContactsResponse ¶
func (f ListContactsResponseFunc) VisitListContactsResponse(w http.ResponseWriter) error
VisitListContactsResponse implements ListContactsResponseObject.
type ListContactsResponseObject ¶
type ListContactsResponseObject interface {
VisitListContactsResponse(w http.ResponseWriter) error
}
type ListContactsResponseSuccess ¶
type ListContactsResponseSuccess struct {
// Data Array containing contact information.
Data *[]struct {
// CreatedAt Timestamp indicating when the contact was created.
//
// Example: 2023-10-06T23:47:56.678Z
CreatedAt *time.Time `json:"created_at,omitempty"`
// Email Email address of the contact.
//
// Example: steve.wozniak@gmail.com
Email *string `json:"email,omitempty"`
// FirstName First name of the contact.
//
// Example: Steve
FirstName *string `json:"first_name,omitempty"`
// ID Unique identifier for the contact.
//
// Example: e169aa45-1ecf-4183-9955-b1499d5701d3
ID *string `json:"id,omitempty"`
// LastName Last name of the contact.
//
// Example: Wozniak
LastName *string `json:"last_name,omitempty"`
// Unsubscribed Indicates if the contact is unsubscribed.
//
// Example: false
Unsubscribed *bool `json:"unsubscribed,omitempty"`
} `json:"data,omitempty"`
// Object Type of the response object.
//
// Example: list
Object *string `json:"object,omitempty"`
}
ListContactsResponseSuccess defines model for ListContactsResponseSuccess.
type ListContactsdefaultJSONResponse ¶
type ListContactsdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (ListContactsdefaultJSONResponse) VisitListContactsResponse ¶
func (response ListContactsdefaultJSONResponse) VisitListContactsResponse(w http.ResponseWriter) error
type ListDomains200JSONResponse ¶
type ListDomains200JSONResponse ListDomainsResponse
func (ListDomains200JSONResponse) VisitListDomainsResponse ¶
func (response ListDomains200JSONResponse) VisitListDomainsResponse(w http.ResponseWriter) error
type ListDomainsItem ¶
type ListDomainsItem struct {
// Capabilities Configure the domain capabilities for sending and receiving emails. At least one capability must be enabled.
Capabilities *DomainCapabilities `json:"capabilities,omitempty"`
// CreatedAt The date and time the domain was created.
//
// Example: 2023-04-26T20:21:26.347412+00:00
CreatedAt *time.Time `json:"created_at,omitempty"`
// ID The ID of the domain.
//
// Example: d91cd9bd-1176-453e-8fc1-35364d380206
ID *string `json:"id,omitempty"`
// Name The name of the domain.
//
// Example: example.com
Name *string `json:"name,omitempty"`
// Region The region where the domain is hosted.
//
// Example: us-east-1
Region *string `json:"region,omitempty"`
// Status The status of the domain.
//
// Example: not_started
Status *string `json:"status,omitempty"`
}
ListDomainsItem defines model for ListDomainsItem.
type ListDomainsParams ¶
type ListDomainsParams struct {
// Limit Number of items to return.
Limit *PaginationLimit `form:"limit,omitempty" json:"limit,omitempty"`
// After Return items after this cursor.
After *PaginationAfter `form:"after,omitempty" json:"after,omitempty"`
// Before Return items before this cursor.
Before *PaginationBefore `form:"before,omitempty" json:"before,omitempty"`
}
ListDomainsParams defines parameters for ListDomains.
type ListDomainsRequestObject ¶
type ListDomainsRequestObject struct {
Params ListDomainsParams
}
type ListDomainsResponse ¶
type ListDomainsResponse struct {
Data *[]ListDomainsItem `json:"data,omitempty"`
// HasMore Indicates if there are more results available.
//
// Example: false
HasMore *bool `json:"has_more,omitempty"`
// Object Type of the response object.
//
// Example: list
Object *string `json:"object,omitempty"`
}
ListDomainsResponse defines model for ListDomainsResponse.
type ListDomainsResponseFunc ¶
type ListDomainsResponseFunc func(http.ResponseWriter) error
ListDomainsResponseFunc writes a fully custom response for ListDomains.
func (ListDomainsResponseFunc) VisitListDomainsResponse ¶
func (f ListDomainsResponseFunc) VisitListDomainsResponse(w http.ResponseWriter) error
VisitListDomainsResponse implements ListDomainsResponseObject.
type ListDomainsResponseObject ¶
type ListDomainsResponseObject interface {
VisitListDomainsResponse(w http.ResponseWriter) error
}
type ListDomainsdefaultJSONResponse ¶
type ListDomainsdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (ListDomainsdefaultJSONResponse) VisitListDomainsResponse ¶
func (response ListDomainsdefaultJSONResponse) VisitListDomainsResponse(w http.ResponseWriter) error
type ListEmailAttachments200JSONResponse ¶
type ListEmailAttachments200JSONResponse ListAttachmentsResponse
func (ListEmailAttachments200JSONResponse) VisitListEmailAttachmentsResponse ¶
func (response ListEmailAttachments200JSONResponse) VisitListEmailAttachmentsResponse(w http.ResponseWriter) error
type ListEmailAttachmentsParams ¶
type ListEmailAttachmentsParams struct {
// Limit Maximum number of attachments to return.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// After Pagination cursor to fetch results after this attachment ID. Cannot be used with 'before'.
After *openapi_types.UUID `form:"after,omitempty" json:"after,omitempty"`
// Before Pagination cursor to fetch results before this attachment ID. Cannot be used with 'after'.
Before *openapi_types.UUID `form:"before,omitempty" json:"before,omitempty"`
}
ListEmailAttachmentsParams defines parameters for ListEmailAttachments.
type ListEmailAttachmentsRequestObject ¶
type ListEmailAttachmentsRequestObject struct {
EmailID openapi_types.UUID `json:"email_id"`
Params ListEmailAttachmentsParams
}
type ListEmailAttachmentsResponseFunc ¶
type ListEmailAttachmentsResponseFunc func(http.ResponseWriter) error
ListEmailAttachmentsResponseFunc writes a fully custom response for ListEmailAttachments.
func (ListEmailAttachmentsResponseFunc) VisitListEmailAttachmentsResponse ¶
func (f ListEmailAttachmentsResponseFunc) VisitListEmailAttachmentsResponse(w http.ResponseWriter) error
VisitListEmailAttachmentsResponse implements ListEmailAttachmentsResponseObject.
type ListEmailAttachmentsResponseObject ¶
type ListEmailAttachmentsResponseObject interface {
VisitListEmailAttachmentsResponse(w http.ResponseWriter) error
}
type ListEmailAttachmentsdefaultJSONResponse ¶
type ListEmailAttachmentsdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (ListEmailAttachmentsdefaultJSONResponse) VisitListEmailAttachmentsResponse ¶
func (response ListEmailAttachmentsdefaultJSONResponse) VisitListEmailAttachmentsResponse(w http.ResponseWriter) error
type ListEmails200JSONResponse ¶
type ListEmails200JSONResponse ListEmailsResponse
func (ListEmails200JSONResponse) VisitListEmailsResponse ¶
func (response ListEmails200JSONResponse) VisitListEmailsResponse(w http.ResponseWriter) error
type ListEmailsParams ¶
type ListEmailsParams struct {
// Limit Number of items to return.
Limit *PaginationLimit `form:"limit,omitempty" json:"limit,omitempty"`
// After Return items after this cursor.
After *PaginationAfter `form:"after,omitempty" json:"after,omitempty"`
// Before Return items before this cursor.
Before *PaginationBefore `form:"before,omitempty" json:"before,omitempty"`
}
ListEmailsParams defines parameters for ListEmails.
type ListEmailsRequestObject ¶
type ListEmailsRequestObject struct {
Params ListEmailsParams
}
type ListEmailsResponse ¶
type ListEmailsResponse struct {
// Data Array containing email information.
Data *[]Email `json:"data,omitempty"`
// HasMore Indicates if there are more results available.
//
// Example: false
HasMore *bool `json:"has_more,omitempty"`
// Object Type of the response object.
//
// Example: list
Object *string `json:"object,omitempty"`
}
ListEmailsResponse defines model for ListEmailsResponse.
type ListEmailsResponseFunc ¶
type ListEmailsResponseFunc func(http.ResponseWriter) error
ListEmailsResponseFunc writes a fully custom response for ListEmails.
func (ListEmailsResponseFunc) VisitListEmailsResponse ¶
func (f ListEmailsResponseFunc) VisitListEmailsResponse(w http.ResponseWriter) error
VisitListEmailsResponse implements ListEmailsResponseObject.
type ListEmailsResponseObject ¶
type ListEmailsResponseObject interface {
VisitListEmailsResponse(w http.ResponseWriter) error
}
type ListEmailsdefaultJSONResponse ¶
type ListEmailsdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (ListEmailsdefaultJSONResponse) VisitListEmailsResponse ¶
func (response ListEmailsdefaultJSONResponse) VisitListEmailsResponse(w http.ResponseWriter) error
type ListReceivedEmailAttachments200JSONResponse ¶
type ListReceivedEmailAttachments200JSONResponse ListAttachmentsResponse
func (ListReceivedEmailAttachments200JSONResponse) VisitListReceivedEmailAttachmentsResponse ¶
func (response ListReceivedEmailAttachments200JSONResponse) VisitListReceivedEmailAttachmentsResponse(w http.ResponseWriter) error
type ListReceivedEmailAttachmentsParams ¶
type ListReceivedEmailAttachmentsParams struct {
// Limit Maximum number of attachments to return.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// After Pagination cursor to fetch results after this attachment ID. Cannot be used with 'before'.
After *openapi_types.UUID `form:"after,omitempty" json:"after,omitempty"`
// Before Pagination cursor to fetch results before this attachment ID. Cannot be used with 'after'.
Before *openapi_types.UUID `form:"before,omitempty" json:"before,omitempty"`
}
ListReceivedEmailAttachmentsParams defines parameters for ListReceivedEmailAttachments.
type ListReceivedEmailAttachmentsRequestObject ¶
type ListReceivedEmailAttachmentsRequestObject struct {
EmailID openapi_types.UUID `json:"email_id"`
Params ListReceivedEmailAttachmentsParams
}
type ListReceivedEmailAttachmentsResponseFunc ¶
type ListReceivedEmailAttachmentsResponseFunc func(http.ResponseWriter) error
ListReceivedEmailAttachmentsResponseFunc writes a fully custom response for ListReceivedEmailAttachments.
func (ListReceivedEmailAttachmentsResponseFunc) VisitListReceivedEmailAttachmentsResponse ¶
func (f ListReceivedEmailAttachmentsResponseFunc) VisitListReceivedEmailAttachmentsResponse(w http.ResponseWriter) error
VisitListReceivedEmailAttachmentsResponse implements ListReceivedEmailAttachmentsResponseObject.
type ListReceivedEmailAttachmentsResponseObject ¶
type ListReceivedEmailAttachmentsResponseObject interface {
VisitListReceivedEmailAttachmentsResponse(w http.ResponseWriter) error
}
type ListReceivedEmailAttachmentsdefaultJSONResponse ¶
type ListReceivedEmailAttachmentsdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (ListReceivedEmailAttachmentsdefaultJSONResponse) VisitListReceivedEmailAttachmentsResponse ¶
func (response ListReceivedEmailAttachmentsdefaultJSONResponse) VisitListReceivedEmailAttachmentsResponse(w http.ResponseWriter) error
type ListReceivedEmails200JSONResponse ¶
type ListReceivedEmails200JSONResponse ListReceivedEmailsResponse
func (ListReceivedEmails200JSONResponse) VisitListReceivedEmailsResponse ¶
func (response ListReceivedEmails200JSONResponse) VisitListReceivedEmailsResponse(w http.ResponseWriter) error
type ListReceivedEmailsParams ¶
type ListReceivedEmailsParams struct {
// Limit Maximum number of received emails to return.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// After Pagination cursor to fetch results after this email ID. Cannot be used with 'before'.
After *openapi_types.UUID `form:"after,omitempty" json:"after,omitempty"`
// Before Pagination cursor to fetch results before this email ID. Cannot be used with 'after'.
Before *openapi_types.UUID `form:"before,omitempty" json:"before,omitempty"`
}
ListReceivedEmailsParams defines parameters for ListReceivedEmails.
type ListReceivedEmailsRequestObject ¶
type ListReceivedEmailsRequestObject struct {
Params ListReceivedEmailsParams
}
type ListReceivedEmailsResponse ¶
type ListReceivedEmailsResponse struct {
// Data Array containing received email information.
Data *[]struct {
// Attachments Array of attachments for this email.
Attachments *[]struct {
// ContentDisposition How the attachment should be displayed.
ContentDisposition *ListReceivedEmailsResponseDataAttachmentsContentDisposition `json:"content_disposition,omitempty"`
// ContentID The content ID for inline attachments.
ContentID *string `json:"content_id,omitempty"`
// ContentType The MIME type of the attachment.
ContentType *string `json:"content_type,omitempty"`
// Filename The filename of the attachment.
Filename *string `json:"filename,omitempty"`
// ID The ID of the attachment.
ID *openapi_types.UUID `json:"id,omitempty"`
// Size Size of the attachment in bytes.
Size *int `json:"size,omitempty"`
} `json:"attachments,omitempty"`
// Bcc The BCC recipients.
Bcc *[]string `json:"bcc,omitempty"`
// Cc The CC recipients.
Cc *[]string `json:"cc,omitempty"`
// CreatedAt Timestamp when the email was received.
//
// Example: 2023-10-06T23:47:56.678Z
CreatedAt *time.Time `json:"created_at,omitempty"`
// From The sender email address.
//
// Example: sender@example.com
From *string `json:"from,omitempty"`
// ID The ID of the received email.
//
// Example: 550e8400-e29b-41d4-a716-446655440000
ID *openapi_types.UUID `json:"id,omitempty"`
// MessageID The unique message ID from the email headers.
//
// Example: <message-id@example.com>
MessageID *string `json:"message_id,omitempty"`
// ReplyTo The reply-to addresses.
ReplyTo *[]string `json:"reply_to,omitempty"`
// Subject The email subject.
//
// Example: Hello World
Subject *string `json:"subject,omitempty"`
// To The recipient email addresses.
//
// Example: ["delivered@resend.dev"]
To *[]string `json:"to,omitempty"`
} `json:"data,omitempty"`
// HasMore Indicates if there are more results available.
//
// Example: false
HasMore *bool `json:"has_more,omitempty"`
// Object Type of the response object.
//
// Example: list
Object *string `json:"object,omitempty"`
}
ListReceivedEmailsResponse defines model for ListReceivedEmailsResponse.
type ListReceivedEmailsResponseDataAttachmentsContentDisposition ¶
type ListReceivedEmailsResponseDataAttachmentsContentDisposition string
ListReceivedEmailsResponseDataAttachmentsContentDisposition How the attachment should be displayed.
const ( ListReceivedEmailsResponseDataAttachmentsContentDispositionAttachment ListReceivedEmailsResponseDataAttachmentsContentDisposition = "attachment" ListReceivedEmailsResponseDataAttachmentsContentDispositionInline ListReceivedEmailsResponseDataAttachmentsContentDisposition = "inline" )
Defines values for ListReceivedEmailsResponseDataAttachmentsContentDisposition.
func (ListReceivedEmailsResponseDataAttachmentsContentDisposition) Valid ¶
func (e ListReceivedEmailsResponseDataAttachmentsContentDisposition) Valid() bool
Valid indicates whether the value is a known member of the ListReceivedEmailsResponseDataAttachmentsContentDisposition enum.
type ListReceivedEmailsResponseFunc ¶
type ListReceivedEmailsResponseFunc func(http.ResponseWriter) error
ListReceivedEmailsResponseFunc writes a fully custom response for ListReceivedEmails.
func (ListReceivedEmailsResponseFunc) VisitListReceivedEmailsResponse ¶
func (f ListReceivedEmailsResponseFunc) VisitListReceivedEmailsResponse(w http.ResponseWriter) error
VisitListReceivedEmailsResponse implements ListReceivedEmailsResponseObject.
type ListReceivedEmailsResponseObject ¶
type ListReceivedEmailsResponseObject interface {
VisitListReceivedEmailsResponse(w http.ResponseWriter) error
}
type ListReceivedEmailsdefaultJSONResponse ¶
type ListReceivedEmailsdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (ListReceivedEmailsdefaultJSONResponse) VisitListReceivedEmailsResponse ¶
func (response ListReceivedEmailsdefaultJSONResponse) VisitListReceivedEmailsResponse(w http.ResponseWriter) error
type ListSegments200JSONResponse ¶
type ListSegments200JSONResponse ListSegmentsResponseSuccess
func (ListSegments200JSONResponse) VisitListSegmentsResponse ¶
func (response ListSegments200JSONResponse) VisitListSegmentsResponse(w http.ResponseWriter) error
type ListSegmentsParams ¶
type ListSegmentsParams struct {
// Limit Number of items to return.
Limit *PaginationLimit `form:"limit,omitempty" json:"limit,omitempty"`
// After Return items after this cursor.
After *PaginationAfter `form:"after,omitempty" json:"after,omitempty"`
// Before Return items before this cursor.
Before *PaginationBefore `form:"before,omitempty" json:"before,omitempty"`
}
ListSegmentsParams defines parameters for ListSegments.
type ListSegmentsRequestObject ¶
type ListSegmentsRequestObject struct {
Params ListSegmentsParams
}
type ListSegmentsResponseFunc ¶
type ListSegmentsResponseFunc func(http.ResponseWriter) error
ListSegmentsResponseFunc writes a fully custom response for ListSegments.
func (ListSegmentsResponseFunc) VisitListSegmentsResponse ¶
func (f ListSegmentsResponseFunc) VisitListSegmentsResponse(w http.ResponseWriter) error
VisitListSegmentsResponse implements ListSegmentsResponseObject.
type ListSegmentsResponseObject ¶
type ListSegmentsResponseObject interface {
VisitListSegmentsResponse(w http.ResponseWriter) error
}
type ListSegmentsResponseSuccess ¶
type ListSegmentsResponseSuccess struct {
// Data Array containing segment information.
Data *[]struct {
// AudienceID The ID of the audience this segment belongs to.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
AudienceID *string `json:"audience_id,omitempty"`
// CreatedAt Timestamp indicating when the segment was created.
CreatedAt *time.Time `json:"created_at,omitempty"`
// ID Unique identifier for the segment.
ID *string `json:"id,omitempty"`
// Name Name of the segment.
Name *string `json:"name,omitempty"`
} `json:"data,omitempty"`
// HasMore Indicates if there are more results available.
HasMore *bool `json:"has_more,omitempty"`
// Object Type of the response object.
//
// Example: list
Object *string `json:"object,omitempty"`
}
ListSegmentsResponseSuccess defines model for ListSegmentsResponseSuccess.
type ListSegmentsdefaultJSONResponse ¶
type ListSegmentsdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (ListSegmentsdefaultJSONResponse) VisitListSegmentsResponse ¶
func (response ListSegmentsdefaultJSONResponse) VisitListSegmentsResponse(w http.ResponseWriter) error
type ListTemplates200JSONResponse ¶
type ListTemplates200JSONResponse ListTemplatesResponseSuccess
func (ListTemplates200JSONResponse) VisitListTemplatesResponse ¶
func (response ListTemplates200JSONResponse) VisitListTemplatesResponse(w http.ResponseWriter) error
type ListTemplatesParams ¶
type ListTemplatesParams struct {
// Limit Number of items to return.
Limit *PaginationLimit `form:"limit,omitempty" json:"limit,omitempty"`
// After Return items after this cursor.
After *PaginationAfter `form:"after,omitempty" json:"after,omitempty"`
// Before Return items before this cursor.
Before *PaginationBefore `form:"before,omitempty" json:"before,omitempty"`
}
ListTemplatesParams defines parameters for ListTemplates.
type ListTemplatesRequestObject ¶
type ListTemplatesRequestObject struct {
Params ListTemplatesParams
}
type ListTemplatesResponseFunc ¶
type ListTemplatesResponseFunc func(http.ResponseWriter) error
ListTemplatesResponseFunc writes a fully custom response for ListTemplates.
func (ListTemplatesResponseFunc) VisitListTemplatesResponse ¶
func (f ListTemplatesResponseFunc) VisitListTemplatesResponse(w http.ResponseWriter) error
VisitListTemplatesResponse implements ListTemplatesResponseObject.
type ListTemplatesResponseObject ¶
type ListTemplatesResponseObject interface {
VisitListTemplatesResponse(w http.ResponseWriter) error
}
type ListTemplatesResponseSuccess ¶
type ListTemplatesResponseSuccess struct {
// Data Array containing templates information.
Data *[]TemplateListItem `json:"data,omitempty"`
// HasMore Indicates if there are more templates to retrieve.
HasMore *bool `json:"has_more,omitempty"`
// Object Type of the response object.
//
// Example: list
Object *string `json:"object,omitempty"`
}
ListTemplatesResponseSuccess defines model for ListTemplatesResponseSuccess.
type ListTemplatesdefaultJSONResponse ¶
type ListTemplatesdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (ListTemplatesdefaultJSONResponse) VisitListTemplatesResponse ¶
func (response ListTemplatesdefaultJSONResponse) VisitListTemplatesResponse(w http.ResponseWriter) error
type ListTopics200JSONResponse ¶
type ListTopics200JSONResponse ListTopicsResponseSuccess
func (ListTopics200JSONResponse) VisitListTopicsResponse ¶
func (response ListTopics200JSONResponse) VisitListTopicsResponse(w http.ResponseWriter) error
type ListTopicsParams ¶
type ListTopicsParams struct {
// Limit Number of items to return.
Limit *PaginationLimit `form:"limit,omitempty" json:"limit,omitempty"`
// After Return items after this cursor.
After *PaginationAfter `form:"after,omitempty" json:"after,omitempty"`
// Before Return items before this cursor.
Before *PaginationBefore `form:"before,omitempty" json:"before,omitempty"`
}
ListTopicsParams defines parameters for ListTopics.
type ListTopicsRequestObject ¶
type ListTopicsRequestObject struct {
Params ListTopicsParams
}
type ListTopicsResponseFunc ¶
type ListTopicsResponseFunc func(http.ResponseWriter) error
ListTopicsResponseFunc writes a fully custom response for ListTopics.
func (ListTopicsResponseFunc) VisitListTopicsResponse ¶
func (f ListTopicsResponseFunc) VisitListTopicsResponse(w http.ResponseWriter) error
VisitListTopicsResponse implements ListTopicsResponseObject.
type ListTopicsResponseObject ¶
type ListTopicsResponseObject interface {
VisitListTopicsResponse(w http.ResponseWriter) error
}
type ListTopicsResponseSuccess ¶
type ListTopicsResponseSuccess struct {
// Data Array containing topic information.
Data *[]struct {
// CreatedAt Timestamp indicating when the topic was created.
CreatedAt *time.Time `json:"created_at,omitempty"`
// DefaultSubscription The default subscription status for the topic.
DefaultSubscription *ListTopicsResponseSuccessDataDefaultSubscription `json:"default_subscription,omitempty"`
// Description A description of the topic.
Description *string `json:"description,omitempty"`
// ID Unique identifier for the topic.
ID *string `json:"id,omitempty"`
// Name Name of the topic.
Name *string `json:"name,omitempty"`
// Visibility The visibility of the topic.
Visibility *ListTopicsResponseSuccessDataVisibility `json:"visibility,omitempty"`
} `json:"data,omitempty"`
// HasMore Indicates if there are more results available.
HasMore *bool `json:"has_more,omitempty"`
// Object Type of the response object.
//
// Example: list
Object *string `json:"object,omitempty"`
}
ListTopicsResponseSuccess defines model for ListTopicsResponseSuccess.
type ListTopicsResponseSuccessDataDefaultSubscription ¶
type ListTopicsResponseSuccessDataDefaultSubscription string
ListTopicsResponseSuccessDataDefaultSubscription The default subscription status for the topic.
const ( ListTopicsResponseSuccessDataDefaultSubscriptionOptIn ListTopicsResponseSuccessDataDefaultSubscription = "opt_in" ListTopicsResponseSuccessDataDefaultSubscriptionOptOut ListTopicsResponseSuccessDataDefaultSubscription = "opt_out" )
Defines values for ListTopicsResponseSuccessDataDefaultSubscription.
func (ListTopicsResponseSuccessDataDefaultSubscription) Valid ¶
func (e ListTopicsResponseSuccessDataDefaultSubscription) Valid() bool
Valid indicates whether the value is a known member of the ListTopicsResponseSuccessDataDefaultSubscription enum.
type ListTopicsResponseSuccessDataVisibility ¶
type ListTopicsResponseSuccessDataVisibility string
ListTopicsResponseSuccessDataVisibility The visibility of the topic.
const ( ListTopicsResponseSuccessDataVisibilityPrivate ListTopicsResponseSuccessDataVisibility = "private" ListTopicsResponseSuccessDataVisibilityPublic ListTopicsResponseSuccessDataVisibility = "public" )
Defines values for ListTopicsResponseSuccessDataVisibility.
func (ListTopicsResponseSuccessDataVisibility) Valid ¶
func (e ListTopicsResponseSuccessDataVisibility) Valid() bool
Valid indicates whether the value is a known member of the ListTopicsResponseSuccessDataVisibility enum.
type ListTopicsdefaultJSONResponse ¶
type ListTopicsdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (ListTopicsdefaultJSONResponse) VisitListTopicsResponse ¶
func (response ListTopicsdefaultJSONResponse) VisitListTopicsResponse(w http.ResponseWriter) error
type ListWebhooks200JSONResponse ¶
type ListWebhooks200JSONResponse ListWebhooksResponse
func (ListWebhooks200JSONResponse) VisitListWebhooksResponse ¶
func (response ListWebhooks200JSONResponse) VisitListWebhooksResponse(w http.ResponseWriter) error
type ListWebhooksParams ¶
type ListWebhooksParams struct {
// Limit Maximum number of webhooks to return.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// After Pagination cursor to fetch results after this webhook ID. Cannot be used with 'before'.
After *openapi_types.UUID `form:"after,omitempty" json:"after,omitempty"`
// Before Pagination cursor to fetch results before this webhook ID. Cannot be used with 'after'.
Before *openapi_types.UUID `form:"before,omitempty" json:"before,omitempty"`
}
ListWebhooksParams defines parameters for ListWebhooks.
type ListWebhooksRequestObject ¶
type ListWebhooksRequestObject struct {
Params ListWebhooksParams
}
type ListWebhooksResponse ¶
type ListWebhooksResponse struct {
// Data Array containing webhook information.
Data *[]struct {
// CreatedAt Timestamp indicating when the webhook was created.
//
// Example: 2023-10-06T23:47:56.678Z
CreatedAt *time.Time `json:"created_at,omitempty"`
// Endpoint The URL where webhook events are sent.
//
// Example: https://webhook.example.com/handler
Endpoint *string `json:"endpoint,omitempty"`
// Events Array of event types subscribed to.
//
// Example: ["email.sent"]
Events *[]string `json:"events,omitempty"`
// ID The ID of the webhook.
//
// Example: 479e3145-dd38-476b-932c-529ceb705947
ID *openapi_types.UUID `json:"id,omitempty"`
// Status The status of the webhook.
//
// Example: enabled
Status *string `json:"status,omitempty"`
} `json:"data,omitempty"`
// HasMore Indicates if there are more results available.
//
// Example: false
HasMore *bool `json:"has_more,omitempty"`
// Object Type of the response object.
//
// Example: list
Object *string `json:"object,omitempty"`
}
ListWebhooksResponse defines model for ListWebhooksResponse.
type ListWebhooksResponseFunc ¶
type ListWebhooksResponseFunc func(http.ResponseWriter) error
ListWebhooksResponseFunc writes a fully custom response for ListWebhooks.
func (ListWebhooksResponseFunc) VisitListWebhooksResponse ¶
func (f ListWebhooksResponseFunc) VisitListWebhooksResponse(w http.ResponseWriter) error
VisitListWebhooksResponse implements ListWebhooksResponseObject.
type ListWebhooksResponseObject ¶
type ListWebhooksResponseObject interface {
VisitListWebhooksResponse(w http.ResponseWriter) error
}
type ListWebhooksdefaultJSONResponse ¶
type ListWebhooksdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (ListWebhooksdefaultJSONResponse) VisitListWebhooksResponse ¶
func (response ListWebhooksdefaultJSONResponse) VisitListWebhooksResponse(w http.ResponseWriter) error
type Middleware ¶
Middleware wraps the complete test-server handler. Middleware is applied in declaration order, with the first middleware becoming the outermost layer.
type Option ¶
type Option func(*config) error
Option configures a test server or handler.
func WithAPIKey ¶
WithAPIKey requires an exact "Bearer <apiKey>" Authorization header. Authentication is disabled unless this option is provided.
func WithCallLimit ¶
WithCallLimit limits retained calls per operation. Zero keeps all calls for the lifetime of the test server.
func WithCallRecording ¶
WithCallRecording enables or disables typed endpoint call recording.
func WithHandlers ¶
WithHandlers installs typed operation handlers. Multiple calls merge their non-nil fields, and later handlers replace earlier handlers for the same operation.
func WithMiddleware ¶
func WithMiddleware(middlewares ...Middleware) Option
WithMiddleware adds net/http middleware around the complete server handler.
func WithRequestValidation ¶
WithRequestValidation enables or disables OpenAPI request validation.
func WithUserAgentValidation ¶
WithUserAgentValidation controls whether requests without User-Agent are rejected, matching Resend's documented production behavior.
type PaginationAfter ¶
type PaginationAfter = string
PaginationAfter defines model for PaginationAfter.
type PaginationBefore ¶
type PaginationBefore = string
PaginationBefore defines model for PaginationBefore.
type PaginationLimit ¶
type PaginationLimit = int
PaginationLimit defines model for PaginationLimit.
type PublishTemplate200JSONResponse ¶
type PublishTemplate200JSONResponse PublishTemplateResponseSuccess
func (PublishTemplate200JSONResponse) VisitPublishTemplateResponse ¶
func (response PublishTemplate200JSONResponse) VisitPublishTemplateResponse(w http.ResponseWriter) error
type PublishTemplateRequestObject ¶
type PublishTemplateRequestObject struct {
ID string `json:"id"`
}
type PublishTemplateResponseFunc ¶
type PublishTemplateResponseFunc func(http.ResponseWriter) error
PublishTemplateResponseFunc writes a fully custom response for PublishTemplate.
func (PublishTemplateResponseFunc) VisitPublishTemplateResponse ¶
func (f PublishTemplateResponseFunc) VisitPublishTemplateResponse(w http.ResponseWriter) error
VisitPublishTemplateResponse implements PublishTemplateResponseObject.
type PublishTemplateResponseObject ¶
type PublishTemplateResponseObject interface {
VisitPublishTemplateResponse(w http.ResponseWriter) error
}
type PublishTemplateResponseSuccess ¶
type PublishTemplateResponseSuccess struct {
// ID The ID of the template.
ID *string `json:"id,omitempty"`
// Object The object type of the response.
//
// Example: template
Object *string `json:"object,omitempty"`
}
PublishTemplateResponseSuccess defines model for PublishTemplateResponseSuccess.
type PublishTemplatedefaultJSONResponse ¶
type PublishTemplatedefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (PublishTemplatedefaultJSONResponse) VisitPublishTemplateResponse ¶
func (response PublishTemplatedefaultJSONResponse) VisitPublishTemplateResponse(w http.ResponseWriter) error
type RemoveAudienceResponseSuccess
deprecated
type RemoveAudienceResponseSuccess struct {
// Deleted The deleted attribute indicates that the corresponding audience has been deleted.
//
// Example: true
Deleted *bool `json:"deleted,omitempty"`
// ID The ID of the audience.
//
// Example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
ID *string `json:"id,omitempty"`
// Object The object of the audience.
//
// Example: audience
Object *string `json:"object,omitempty"`
}
RemoveAudienceResponseSuccess defines model for RemoveAudienceResponseSuccess.
Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set
type RemoveBroadcastResponseSuccess ¶
type RemoveBroadcastResponseSuccess struct {
// Deleted The deleted attribute indicates that the corresponding broadcast has been deleted.
//
// Example: true
Deleted *bool `json:"deleted,omitempty"`
// ID The ID of the broadcast.
//
// Example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
ID *string `json:"id,omitempty"`
// Object Type of the response object.
//
// Example: broadcast
Object *string `json:"object,omitempty"`
}
RemoveBroadcastResponseSuccess defines model for RemoveBroadcastResponseSuccess.
type RemoveContactFromSegment200JSONResponse ¶
type RemoveContactFromSegment200JSONResponse RemoveContactFromSegmentResponseSuccess
func (RemoveContactFromSegment200JSONResponse) VisitRemoveContactFromSegmentResponse ¶
func (response RemoveContactFromSegment200JSONResponse) VisitRemoveContactFromSegmentResponse(w http.ResponseWriter) error
type RemoveContactFromSegmentResponseFunc ¶
type RemoveContactFromSegmentResponseFunc func(http.ResponseWriter) error
RemoveContactFromSegmentResponseFunc writes a fully custom response for RemoveContactFromSegment.
func (RemoveContactFromSegmentResponseFunc) VisitRemoveContactFromSegmentResponse ¶
func (f RemoveContactFromSegmentResponseFunc) VisitRemoveContactFromSegmentResponse(w http.ResponseWriter) error
VisitRemoveContactFromSegmentResponse implements RemoveContactFromSegmentResponseObject.
type RemoveContactFromSegmentResponseObject ¶
type RemoveContactFromSegmentResponseObject interface {
VisitRemoveContactFromSegmentResponse(w http.ResponseWriter) error
}
type RemoveContactFromSegmentResponseSuccess ¶
type RemoveContactFromSegmentResponseSuccess struct {
// ContactID The ID of the contact.
ContactID *string `json:"contact_id,omitempty"`
// Deleted Indicates whether the contact was successfully removed from the segment.
//
// Example: true
Deleted *bool `json:"deleted,omitempty"`
// Object The object type.
//
// Example: contact_segment
Object *string `json:"object,omitempty"`
// SegmentID The ID of the segment.
SegmentID *string `json:"segment_id,omitempty"`
}
RemoveContactFromSegmentResponseSuccess defines model for RemoveContactFromSegmentResponseSuccess.
type RemoveContactFromSegmentdefaultJSONResponse ¶
type RemoveContactFromSegmentdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (RemoveContactFromSegmentdefaultJSONResponse) VisitRemoveContactFromSegmentResponse ¶
func (response RemoveContactFromSegmentdefaultJSONResponse) VisitRemoveContactFromSegmentResponse(w http.ResponseWriter) error
type RemoveContactPropertyResponseSuccess ¶
type RemoveContactPropertyResponseSuccess struct {
// Deleted Indicates whether the contact property was successfully deleted.
//
// Example: true
Deleted *bool `json:"deleted,omitempty"`
// ID The ID of the contact property.
//
// Example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
ID *string `json:"id,omitempty"`
// Object The object type.
//
// Example: contact_property
Object *string `json:"object,omitempty"`
}
RemoveContactPropertyResponseSuccess defines model for RemoveContactPropertyResponseSuccess.
type RemoveContactResponseSuccess ¶
type RemoveContactResponseSuccess struct {
// Deleted Indicates whether the contact was successfully deleted.
//
// Example: true
Deleted *bool `json:"deleted,omitempty"`
// ID Unique identifier for the removed contact.
//
// Example: 520784e2-887d-4c25-b53c-4ad46ad38100
ID *string `json:"id,omitempty"`
// Object Type of the response object.
//
// Example: contact
Object *string `json:"object,omitempty"`
}
RemoveContactResponseSuccess defines model for RemoveContactResponseSuccess.
type RemoveSegmentResponseSuccess ¶
type RemoveSegmentResponseSuccess struct {
// Deleted Indicates whether the segment was successfully deleted.
//
// Example: true
Deleted *bool `json:"deleted,omitempty"`
// ID The ID of the segment.
//
// Example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
ID *string `json:"id,omitempty"`
// Object The object type.
//
// Example: segment
Object *string `json:"object,omitempty"`
}
RemoveSegmentResponseSuccess defines model for RemoveSegmentResponseSuccess.
type RemoveTemplateResponseSuccess ¶
type RemoveTemplateResponseSuccess struct {
// Deleted Indicates whether the template was successfully deleted.
//
// Example: true
Deleted *bool `json:"deleted,omitempty"`
// ID The ID of the template.
ID *string `json:"id,omitempty"`
// Object Type of the response object.
//
// Example: template
Object *string `json:"object,omitempty"`
}
RemoveTemplateResponseSuccess defines model for RemoveTemplateResponseSuccess.
type RemoveTopicResponseSuccess ¶
type RemoveTopicResponseSuccess struct {
// Deleted Indicates whether the topic was successfully deleted.
//
// Example: true
Deleted *bool `json:"deleted,omitempty"`
// ID The ID of the topic.
//
// Example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
ID *string `json:"id,omitempty"`
// Object The object type.
//
// Example: topic
Object *string `json:"object,omitempty"`
}
RemoveTopicResponseSuccess defines model for RemoveTopicResponseSuccess.
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type ResendError ¶
type ResendError struct {
Message string `json:"message"`
Name string `json:"name"`
StatusCode int `json:"statusCode"`
}
ResendError defines model for ResendError.
type RetrievedAttachment ¶
type RetrievedAttachment struct {
// ContentDisposition How the attachment should be displayed.
//
// Example: attachment
ContentDisposition *RetrievedAttachmentContentDisposition `json:"content_disposition,omitempty"`
// ContentID The content ID for inline attachments.
//
// Example: img001
ContentID *string `json:"content_id,omitempty"`
// ContentType The MIME type of the attachment.
//
// Example: application/pdf
ContentType *string `json:"content_type,omitempty"`
// DownloadURL Signed URL to download the attachment content.
//
// Example: https://cloudfront.example.com/path?Signature=...
DownloadURL *string `json:"download_url,omitempty"`
// ExpiresAt Timestamp when the download URL expires.
//
// Example: 2024-10-27T18:30:00.000Z
ExpiresAt *time.Time `json:"expires_at,omitempty"`
// Filename The filename of the attachment.
//
// Example: document.pdf
Filename *string `json:"filename,omitempty"`
// ID The ID of the attachment.
//
// Example: 660e8400-e29b-41d4-a716-446655440000
ID *openapi_types.UUID `json:"id,omitempty"`
// Object The type of object.
//
// Example: attachment
Object *string `json:"object,omitempty"`
// Size Size of the attachment in bytes.
//
// Example: 2048
Size *int `json:"size,omitempty"`
}
RetrievedAttachment defines model for RetrievedAttachment.
type RetrievedAttachmentContentDisposition ¶
type RetrievedAttachmentContentDisposition string
RetrievedAttachmentContentDisposition How the attachment should be displayed.
Example: attachment
const ( RetrievedAttachmentContentDispositionAttachment RetrievedAttachmentContentDisposition = "attachment" RetrievedAttachmentContentDispositionInline RetrievedAttachmentContentDisposition = "inline" )
Defines values for RetrievedAttachmentContentDisposition.
func (RetrievedAttachmentContentDisposition) Valid ¶
func (e RetrievedAttachmentContentDisposition) Valid() bool
Valid indicates whether the value is a known member of the RetrievedAttachmentContentDisposition enum.
type SendBatchEmails200JSONResponse ¶
type SendBatchEmails200JSONResponse CreateBatchEmailsResponse
func (SendBatchEmails200JSONResponse) VisitSendBatchEmailsResponse ¶
func (response SendBatchEmails200JSONResponse) VisitSendBatchEmailsResponse(w http.ResponseWriter) error
type SendBatchEmailsJSONBody ¶
type SendBatchEmailsJSONBody = []SendEmailRequest
SendBatchEmailsJSONBody defines parameters for SendBatchEmails.
type SendBatchEmailsJSONRequestBody ¶
type SendBatchEmailsJSONRequestBody = SendBatchEmailsJSONBody
SendBatchEmailsJSONRequestBody defines body for SendBatchEmails for application/json ContentType.
type SendBatchEmailsParams ¶
type SendBatchEmailsParams struct {
// IdempotencyKey A unique identifier for the request to ensure emails are only sent once. [Learn more](https://resend.com/docs/dashboard/emails/idempotency-keys)
IdempotencyKey *string `json:"Idempotency-Key,omitempty"`
}
SendBatchEmailsParams defines parameters for SendBatchEmails.
type SendBatchEmailsRequestObject ¶
type SendBatchEmailsRequestObject struct {
Params SendBatchEmailsParams
Body *SendBatchEmailsJSONRequestBody
}
type SendBatchEmailsResponseFunc ¶
type SendBatchEmailsResponseFunc func(http.ResponseWriter) error
SendBatchEmailsResponseFunc writes a fully custom response for SendBatchEmails.
func (SendBatchEmailsResponseFunc) VisitSendBatchEmailsResponse ¶
func (f SendBatchEmailsResponseFunc) VisitSendBatchEmailsResponse(w http.ResponseWriter) error
VisitSendBatchEmailsResponse implements SendBatchEmailsResponseObject.
type SendBatchEmailsResponseObject ¶
type SendBatchEmailsResponseObject interface {
VisitSendBatchEmailsResponse(w http.ResponseWriter) error
}
type SendBatchEmailsdefaultJSONResponse ¶
type SendBatchEmailsdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (SendBatchEmailsdefaultJSONResponse) VisitSendBatchEmailsResponse ¶
func (response SendBatchEmailsdefaultJSONResponse) VisitSendBatchEmailsResponse(w http.ResponseWriter) error
type SendBroadcast200JSONResponse ¶
type SendBroadcast200JSONResponse SendBroadcastResponseSuccess
func (SendBroadcast200JSONResponse) VisitSendBroadcastResponse ¶
func (response SendBroadcast200JSONResponse) VisitSendBroadcastResponse(w http.ResponseWriter) error
type SendBroadcastJSONRequestBody ¶
type SendBroadcastJSONRequestBody = SendBroadcastOptions
SendBroadcastJSONRequestBody defines body for SendBroadcast for application/json ContentType.
type SendBroadcastOptions ¶
type SendBroadcastOptions struct {
// ScheduledAt Schedule email to be sent later. The date should be in ISO 8601 format.
ScheduledAt *string `json:"scheduled_at,omitempty"`
}
SendBroadcastOptions defines model for SendBroadcastOptions.
type SendBroadcastRequestObject ¶
type SendBroadcastRequestObject struct {
ID string `json:"id"`
Body *SendBroadcastJSONRequestBody
}
type SendBroadcastResponseFunc ¶
type SendBroadcastResponseFunc func(http.ResponseWriter) error
SendBroadcastResponseFunc writes a fully custom response for SendBroadcast.
func (SendBroadcastResponseFunc) VisitSendBroadcastResponse ¶
func (f SendBroadcastResponseFunc) VisitSendBroadcastResponse(w http.ResponseWriter) error
VisitSendBroadcastResponse implements SendBroadcastResponseObject.
type SendBroadcastResponseObject ¶
type SendBroadcastResponseObject interface {
VisitSendBroadcastResponse(w http.ResponseWriter) error
}
type SendBroadcastResponseSuccess ¶
type SendBroadcastResponseSuccess struct {
// ID The ID of the broadcast.
//
// Example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
ID *string `json:"id,omitempty"`
}
SendBroadcastResponseSuccess defines model for SendBroadcastResponseSuccess.
type SendBroadcastdefaultJSONResponse ¶
type SendBroadcastdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (SendBroadcastdefaultJSONResponse) VisitSendBroadcastResponse ¶
func (response SendBroadcastdefaultJSONResponse) VisitSendBroadcastResponse(w http.ResponseWriter) error
type SendEmail200JSONResponse ¶
type SendEmail200JSONResponse SendEmailResponse
func (SendEmail200JSONResponse) VisitSendEmailResponse ¶
func (response SendEmail200JSONResponse) VisitSendEmailResponse(w http.ResponseWriter) error
type SendEmailJSONRequestBody ¶
type SendEmailJSONRequestBody = SendEmailRequest
SendEmailJSONRequestBody defines body for SendEmail for application/json ContentType.
type SendEmailParams ¶
type SendEmailParams struct {
// IdempotencyKey A unique identifier for the request to ensure emails are only sent once. [Learn more](https://resend.com/docs/dashboard/emails/idempotency-keys)
IdempotencyKey *string `json:"Idempotency-Key,omitempty"`
}
SendEmailParams defines parameters for SendEmail.
type SendEmailRequest ¶
type SendEmailRequest struct {
Attachments *[]Attachment `json:"attachments,omitempty"`
// Bcc Bcc recipient email address. For multiple addresses, send as an array of strings.
Bcc *SendEmailRequest_Bcc `json:"bcc,omitempty"`
// Cc Cc recipient email address. For multiple addresses, send as an array of strings.
Cc *SendEmailRequest_Cc `json:"cc,omitempty"`
// From Sender email address. To include a friendly name, use the format "Your Name <sender@domain.com>".
From string `json:"from"`
// Headers Custom headers to add to the email.
Headers *map[string]interface{} `json:"headers,omitempty"`
// HTML The HTML version of the message.
HTML *string `json:"html,omitempty"`
// ReplyTo Reply-to email address. For multiple addresses, send as an array of strings.
ReplyTo *SendEmailRequest_ReplyTo `json:"reply_to,omitempty"`
// ScheduledAt Schedule email to be sent later. The date should be in ISO 8601 format.
ScheduledAt *string `json:"scheduled_at,omitempty"`
// Subject Email subject.
Subject string `json:"subject"`
Tags *[]Tag `json:"tags,omitempty"`
Template *struct {
// ID The id of the published email template.
ID string `json:"id"`
// Variables Template variables object with key/value pairs.
//
// Example: {"variableName":"Sign up now","variableName2":123}
Variables *map[string]SendEmailRequest_Template_Variables_AdditionalProperties `json:"variables,omitempty"`
} `json:"template,omitempty"`
// Text The plain text version of the message.
Text *string `json:"text,omitempty"`
// To Recipient email address. For multiple addresses, send as an array of strings. Max 50.
To SendEmailRequest_To `json:"to"`
// TopicID The topic ID to scope the email to. If the recipient is a contact and opted-in to the topic, the email is sent. If opted-out, the email is not sent. If the recipient is not a contact, the email is sent if the topic's default subscription is opt_in.
TopicID *string `json:"topic_id,omitempty"`
}
SendEmailRequest defines model for SendEmailRequest.
type SendEmailRequestBcc0 ¶
type SendEmailRequestBcc0 = string
SendEmailRequestBcc0 defines model for SendEmailRequest.Bcc.0.
type SendEmailRequestBcc1 ¶
type SendEmailRequestBcc1 = []string
SendEmailRequestBcc1 defines model for SendEmailRequest.Bcc.1.
type SendEmailRequestCc0 ¶
type SendEmailRequestCc0 = string
SendEmailRequestCc0 defines model for SendEmailRequest.Cc.0.
type SendEmailRequestCc1 ¶
type SendEmailRequestCc1 = []string
SendEmailRequestCc1 defines model for SendEmailRequest.Cc.1.
type SendEmailRequestObject ¶
type SendEmailRequestObject struct {
Params SendEmailParams
Body *SendEmailJSONRequestBody
}
type SendEmailRequestReplyTo0 ¶
type SendEmailRequestReplyTo0 = string
SendEmailRequestReplyTo0 defines model for SendEmailRequest.ReplyTo.0.
type SendEmailRequestReplyTo1 ¶
type SendEmailRequestReplyTo1 = []string
SendEmailRequestReplyTo1 defines model for SendEmailRequest.ReplyTo.1.
type SendEmailRequestTemplateVariables0 ¶
type SendEmailRequestTemplateVariables0 = string
SendEmailRequestTemplateVariables0 defines model for SendEmailRequest.Template.Variables.0.
type SendEmailRequestTemplateVariables1 ¶
type SendEmailRequestTemplateVariables1 = float32
SendEmailRequestTemplateVariables1 defines model for SendEmailRequest.Template.Variables.1.
type SendEmailRequestTo0 ¶
type SendEmailRequestTo0 = string
SendEmailRequestTo0 defines model for SendEmailRequest.To.0.
type SendEmailRequestTo1 ¶
type SendEmailRequestTo1 = []string
SendEmailRequestTo1 defines model for SendEmailRequest.To.1.
type SendEmailRequest_Bcc ¶
type SendEmailRequest_Bcc struct {
// contains filtered or unexported fields
}
SendEmailRequest_Bcc Bcc recipient email address. For multiple addresses, send as an array of strings.
func (SendEmailRequest_Bcc) AsSendEmailRequestBcc0 ¶
func (t SendEmailRequest_Bcc) AsSendEmailRequestBcc0() (SendEmailRequestBcc0, error)
AsSendEmailRequestBcc0 returns the union data inside the SendEmailRequest_Bcc as a SendEmailRequestBcc0
func (SendEmailRequest_Bcc) AsSendEmailRequestBcc1 ¶
func (t SendEmailRequest_Bcc) AsSendEmailRequestBcc1() (SendEmailRequestBcc1, error)
AsSendEmailRequestBcc1 returns the union data inside the SendEmailRequest_Bcc as a SendEmailRequestBcc1
func (*SendEmailRequest_Bcc) FromSendEmailRequestBcc0 ¶
func (t *SendEmailRequest_Bcc) FromSendEmailRequestBcc0(v SendEmailRequestBcc0) error
FromSendEmailRequestBcc0 overwrites any union data inside the SendEmailRequest_Bcc as the provided SendEmailRequestBcc0
func (*SendEmailRequest_Bcc) FromSendEmailRequestBcc1 ¶
func (t *SendEmailRequest_Bcc) FromSendEmailRequestBcc1(v SendEmailRequestBcc1) error
FromSendEmailRequestBcc1 overwrites any union data inside the SendEmailRequest_Bcc as the provided SendEmailRequestBcc1
func (SendEmailRequest_Bcc) MarshalJSON ¶
func (t SendEmailRequest_Bcc) MarshalJSON() ([]byte, error)
func (*SendEmailRequest_Bcc) MergeSendEmailRequestBcc0 ¶
func (t *SendEmailRequest_Bcc) MergeSendEmailRequestBcc0(v SendEmailRequestBcc0) error
MergeSendEmailRequestBcc0 performs a merge with any union data inside the SendEmailRequest_Bcc, using the provided SendEmailRequestBcc0
func (*SendEmailRequest_Bcc) MergeSendEmailRequestBcc1 ¶
func (t *SendEmailRequest_Bcc) MergeSendEmailRequestBcc1(v SendEmailRequestBcc1) error
MergeSendEmailRequestBcc1 performs a merge with any union data inside the SendEmailRequest_Bcc, using the provided SendEmailRequestBcc1
func (*SendEmailRequest_Bcc) UnmarshalJSON ¶
func (t *SendEmailRequest_Bcc) UnmarshalJSON(b []byte) error
type SendEmailRequest_Cc ¶
type SendEmailRequest_Cc struct {
// contains filtered or unexported fields
}
SendEmailRequest_Cc Cc recipient email address. For multiple addresses, send as an array of strings.
func (SendEmailRequest_Cc) AsSendEmailRequestCc0 ¶
func (t SendEmailRequest_Cc) AsSendEmailRequestCc0() (SendEmailRequestCc0, error)
AsSendEmailRequestCc0 returns the union data inside the SendEmailRequest_Cc as a SendEmailRequestCc0
func (SendEmailRequest_Cc) AsSendEmailRequestCc1 ¶
func (t SendEmailRequest_Cc) AsSendEmailRequestCc1() (SendEmailRequestCc1, error)
AsSendEmailRequestCc1 returns the union data inside the SendEmailRequest_Cc as a SendEmailRequestCc1
func (*SendEmailRequest_Cc) FromSendEmailRequestCc0 ¶
func (t *SendEmailRequest_Cc) FromSendEmailRequestCc0(v SendEmailRequestCc0) error
FromSendEmailRequestCc0 overwrites any union data inside the SendEmailRequest_Cc as the provided SendEmailRequestCc0
func (*SendEmailRequest_Cc) FromSendEmailRequestCc1 ¶
func (t *SendEmailRequest_Cc) FromSendEmailRequestCc1(v SendEmailRequestCc1) error
FromSendEmailRequestCc1 overwrites any union data inside the SendEmailRequest_Cc as the provided SendEmailRequestCc1
func (SendEmailRequest_Cc) MarshalJSON ¶
func (t SendEmailRequest_Cc) MarshalJSON() ([]byte, error)
func (*SendEmailRequest_Cc) MergeSendEmailRequestCc0 ¶
func (t *SendEmailRequest_Cc) MergeSendEmailRequestCc0(v SendEmailRequestCc0) error
MergeSendEmailRequestCc0 performs a merge with any union data inside the SendEmailRequest_Cc, using the provided SendEmailRequestCc0
func (*SendEmailRequest_Cc) MergeSendEmailRequestCc1 ¶
func (t *SendEmailRequest_Cc) MergeSendEmailRequestCc1(v SendEmailRequestCc1) error
MergeSendEmailRequestCc1 performs a merge with any union data inside the SendEmailRequest_Cc, using the provided SendEmailRequestCc1
func (*SendEmailRequest_Cc) UnmarshalJSON ¶
func (t *SendEmailRequest_Cc) UnmarshalJSON(b []byte) error
type SendEmailRequest_ReplyTo ¶
type SendEmailRequest_ReplyTo struct {
// contains filtered or unexported fields
}
SendEmailRequest_ReplyTo Reply-to email address. For multiple addresses, send as an array of strings.
func (SendEmailRequest_ReplyTo) AsSendEmailRequestReplyTo0 ¶
func (t SendEmailRequest_ReplyTo) AsSendEmailRequestReplyTo0() (SendEmailRequestReplyTo0, error)
AsSendEmailRequestReplyTo0 returns the union data inside the SendEmailRequest_ReplyTo as a SendEmailRequestReplyTo0
func (SendEmailRequest_ReplyTo) AsSendEmailRequestReplyTo1 ¶
func (t SendEmailRequest_ReplyTo) AsSendEmailRequestReplyTo1() (SendEmailRequestReplyTo1, error)
AsSendEmailRequestReplyTo1 returns the union data inside the SendEmailRequest_ReplyTo as a SendEmailRequestReplyTo1
func (*SendEmailRequest_ReplyTo) FromSendEmailRequestReplyTo0 ¶
func (t *SendEmailRequest_ReplyTo) FromSendEmailRequestReplyTo0(v SendEmailRequestReplyTo0) error
FromSendEmailRequestReplyTo0 overwrites any union data inside the SendEmailRequest_ReplyTo as the provided SendEmailRequestReplyTo0
func (*SendEmailRequest_ReplyTo) FromSendEmailRequestReplyTo1 ¶
func (t *SendEmailRequest_ReplyTo) FromSendEmailRequestReplyTo1(v SendEmailRequestReplyTo1) error
FromSendEmailRequestReplyTo1 overwrites any union data inside the SendEmailRequest_ReplyTo as the provided SendEmailRequestReplyTo1
func (SendEmailRequest_ReplyTo) MarshalJSON ¶
func (t SendEmailRequest_ReplyTo) MarshalJSON() ([]byte, error)
func (*SendEmailRequest_ReplyTo) MergeSendEmailRequestReplyTo0 ¶
func (t *SendEmailRequest_ReplyTo) MergeSendEmailRequestReplyTo0(v SendEmailRequestReplyTo0) error
MergeSendEmailRequestReplyTo0 performs a merge with any union data inside the SendEmailRequest_ReplyTo, using the provided SendEmailRequestReplyTo0
func (*SendEmailRequest_ReplyTo) MergeSendEmailRequestReplyTo1 ¶
func (t *SendEmailRequest_ReplyTo) MergeSendEmailRequestReplyTo1(v SendEmailRequestReplyTo1) error
MergeSendEmailRequestReplyTo1 performs a merge with any union data inside the SendEmailRequest_ReplyTo, using the provided SendEmailRequestReplyTo1
func (*SendEmailRequest_ReplyTo) UnmarshalJSON ¶
func (t *SendEmailRequest_ReplyTo) UnmarshalJSON(b []byte) error
type SendEmailRequest_Template_Variables_AdditionalProperties ¶
type SendEmailRequest_Template_Variables_AdditionalProperties struct {
// contains filtered or unexported fields
}
SendEmailRequest_Template_Variables_AdditionalProperties defines model for SendEmailRequest.Template.Variables.AdditionalProperties.
func (SendEmailRequest_Template_Variables_AdditionalProperties) AsSendEmailRequestTemplateVariables0 ¶
func (t SendEmailRequest_Template_Variables_AdditionalProperties) AsSendEmailRequestTemplateVariables0() (SendEmailRequestTemplateVariables0, error)
AsSendEmailRequestTemplateVariables0 returns the union data inside the SendEmailRequest_Template_Variables_AdditionalProperties as a SendEmailRequestTemplateVariables0
func (SendEmailRequest_Template_Variables_AdditionalProperties) AsSendEmailRequestTemplateVariables1 ¶
func (t SendEmailRequest_Template_Variables_AdditionalProperties) AsSendEmailRequestTemplateVariables1() (SendEmailRequestTemplateVariables1, error)
AsSendEmailRequestTemplateVariables1 returns the union data inside the SendEmailRequest_Template_Variables_AdditionalProperties as a SendEmailRequestTemplateVariables1
func (*SendEmailRequest_Template_Variables_AdditionalProperties) FromSendEmailRequestTemplateVariables0 ¶
func (t *SendEmailRequest_Template_Variables_AdditionalProperties) FromSendEmailRequestTemplateVariables0(v SendEmailRequestTemplateVariables0) error
FromSendEmailRequestTemplateVariables0 overwrites any union data inside the SendEmailRequest_Template_Variables_AdditionalProperties as the provided SendEmailRequestTemplateVariables0
func (*SendEmailRequest_Template_Variables_AdditionalProperties) FromSendEmailRequestTemplateVariables1 ¶
func (t *SendEmailRequest_Template_Variables_AdditionalProperties) FromSendEmailRequestTemplateVariables1(v SendEmailRequestTemplateVariables1) error
FromSendEmailRequestTemplateVariables1 overwrites any union data inside the SendEmailRequest_Template_Variables_AdditionalProperties as the provided SendEmailRequestTemplateVariables1
func (SendEmailRequest_Template_Variables_AdditionalProperties) MarshalJSON ¶
func (t SendEmailRequest_Template_Variables_AdditionalProperties) MarshalJSON() ([]byte, error)
func (*SendEmailRequest_Template_Variables_AdditionalProperties) MergeSendEmailRequestTemplateVariables0 ¶
func (t *SendEmailRequest_Template_Variables_AdditionalProperties) MergeSendEmailRequestTemplateVariables0(v SendEmailRequestTemplateVariables0) error
MergeSendEmailRequestTemplateVariables0 performs a merge with any union data inside the SendEmailRequest_Template_Variables_AdditionalProperties, using the provided SendEmailRequestTemplateVariables0
func (*SendEmailRequest_Template_Variables_AdditionalProperties) MergeSendEmailRequestTemplateVariables1 ¶
func (t *SendEmailRequest_Template_Variables_AdditionalProperties) MergeSendEmailRequestTemplateVariables1(v SendEmailRequestTemplateVariables1) error
MergeSendEmailRequestTemplateVariables1 performs a merge with any union data inside the SendEmailRequest_Template_Variables_AdditionalProperties, using the provided SendEmailRequestTemplateVariables1
func (*SendEmailRequest_Template_Variables_AdditionalProperties) UnmarshalJSON ¶
func (t *SendEmailRequest_Template_Variables_AdditionalProperties) UnmarshalJSON(b []byte) error
type SendEmailRequest_To ¶
type SendEmailRequest_To struct {
// contains filtered or unexported fields
}
SendEmailRequest_To Recipient email address. For multiple addresses, send as an array of strings. Max 50.
func (SendEmailRequest_To) AsSendEmailRequestTo0 ¶
func (t SendEmailRequest_To) AsSendEmailRequestTo0() (SendEmailRequestTo0, error)
AsSendEmailRequestTo0 returns the union data inside the SendEmailRequest_To as a SendEmailRequestTo0
func (SendEmailRequest_To) AsSendEmailRequestTo1 ¶
func (t SendEmailRequest_To) AsSendEmailRequestTo1() (SendEmailRequestTo1, error)
AsSendEmailRequestTo1 returns the union data inside the SendEmailRequest_To as a SendEmailRequestTo1
func (*SendEmailRequest_To) FromSendEmailRequestTo0 ¶
func (t *SendEmailRequest_To) FromSendEmailRequestTo0(v SendEmailRequestTo0) error
FromSendEmailRequestTo0 overwrites any union data inside the SendEmailRequest_To as the provided SendEmailRequestTo0
func (*SendEmailRequest_To) FromSendEmailRequestTo1 ¶
func (t *SendEmailRequest_To) FromSendEmailRequestTo1(v SendEmailRequestTo1) error
FromSendEmailRequestTo1 overwrites any union data inside the SendEmailRequest_To as the provided SendEmailRequestTo1
func (SendEmailRequest_To) MarshalJSON ¶
func (t SendEmailRequest_To) MarshalJSON() ([]byte, error)
func (*SendEmailRequest_To) MergeSendEmailRequestTo0 ¶
func (t *SendEmailRequest_To) MergeSendEmailRequestTo0(v SendEmailRequestTo0) error
MergeSendEmailRequestTo0 performs a merge with any union data inside the SendEmailRequest_To, using the provided SendEmailRequestTo0
func (*SendEmailRequest_To) MergeSendEmailRequestTo1 ¶
func (t *SendEmailRequest_To) MergeSendEmailRequestTo1(v SendEmailRequestTo1) error
MergeSendEmailRequestTo1 performs a merge with any union data inside the SendEmailRequest_To, using the provided SendEmailRequestTo1
func (*SendEmailRequest_To) UnmarshalJSON ¶
func (t *SendEmailRequest_To) UnmarshalJSON(b []byte) error
type SendEmailResponse ¶
type SendEmailResponse struct {
// ID The ID of the sent email.
ID *string `json:"id,omitempty"`
}
SendEmailResponse defines model for SendEmailResponse.
type SendEmailResponseFunc ¶
type SendEmailResponseFunc func(http.ResponseWriter) error
SendEmailResponseFunc writes a fully custom response for SendEmail.
func (SendEmailResponseFunc) VisitSendEmailResponse ¶
func (f SendEmailResponseFunc) VisitSendEmailResponse(w http.ResponseWriter) error
VisitSendEmailResponse implements SendEmailResponseObject.
type SendEmailResponseObject ¶
type SendEmailResponseObject interface {
VisitSendEmailResponse(w http.ResponseWriter) error
}
type SendEmaildefaultJSONResponse ¶
type SendEmaildefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (SendEmaildefaultJSONResponse) VisitSendEmailResponse ¶
func (response SendEmaildefaultJSONResponse) VisitSendEmailResponse(w http.ResponseWriter) error
type ServeMux ¶
type ServeMux interface {
HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
http.Handler
}
ServeMux is an abstraction of http.ServeMux.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a running in-process Resend test server.
func NewServer ¶
NewServer starts an in-process Resend test server and registers cleanup with the supplied test.
func StartServer ¶
StartServer starts an in-process Resend test server.
func (*Server) Handler ¶
func (s *Server) Handler() *TestHandler
Handler returns the underlying embeddable handler.
type ServerInterface ¶
type ServerInterface interface {
// ListAPIKeys Retrieve a list of API keys
// (GET /api-keys)
ListAPIKeys(w http.ResponseWriter, r *http.Request, params ListAPIKeysParams)
// CreateAPIKey Create a new API key
// (POST /api-keys)
CreateAPIKey(w http.ResponseWriter, r *http.Request)
// DeleteAPIKey Remove an existing API key
// (DELETE /api-keys/{api_key_id})
DeleteAPIKey(w http.ResponseWriter, r *http.Request, apiKeyID string)
// ListAudiences Retrieve a list of audiences
// (GET /audiences)
//
// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set
ListAudiences(w http.ResponseWriter, r *http.Request)
// CreateAudience Create a list of contacts
// (POST /audiences)
//
// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set
CreateAudience(w http.ResponseWriter, r *http.Request)
// DeleteAudience Remove an existing audience
// (DELETE /audiences/{id})
//
// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set
DeleteAudience(w http.ResponseWriter, r *http.Request, id string)
// GetAudience Retrieve a single audience
// (GET /audiences/{id})
//
// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set
GetAudience(w http.ResponseWriter, r *http.Request, id string)
// ListBroadcasts Retrieve a list of broadcasts
// (GET /broadcasts)
ListBroadcasts(w http.ResponseWriter, r *http.Request, params ListBroadcastsParams)
// CreateBroadcast Create a broadcast
// (POST /broadcasts)
CreateBroadcast(w http.ResponseWriter, r *http.Request)
// DeleteBroadcast Remove an existing broadcast that is in the draft status
// (DELETE /broadcasts/{id})
DeleteBroadcast(w http.ResponseWriter, r *http.Request, id string)
// GetBroadcast Retrieve a single broadcast
// (GET /broadcasts/{id})
GetBroadcast(w http.ResponseWriter, r *http.Request, id string)
// UpdateBroadcast Update an existing broadcast
// (PATCH /broadcasts/{id})
UpdateBroadcast(w http.ResponseWriter, r *http.Request, id string)
// SendBroadcast Send or schedule a broadcast
// (POST /broadcasts/{id}/send)
SendBroadcast(w http.ResponseWriter, r *http.Request, id string)
// ListContactProperties Retrieve a list of contact properties
// (GET /contact-properties)
ListContactProperties(w http.ResponseWriter, r *http.Request, params ListContactPropertiesParams)
// CreateContactProperty Create a new contact property
// (POST /contact-properties)
CreateContactProperty(w http.ResponseWriter, r *http.Request)
// DeleteContactProperty Remove an existing contact property
// (DELETE /contact-properties/{id})
DeleteContactProperty(w http.ResponseWriter, r *http.Request, id string)
// GetContactProperty Retrieve a single contact property
// (GET /contact-properties/{id})
GetContactProperty(w http.ResponseWriter, r *http.Request, id string)
// UpdateContactProperty Update an existing contact property
// (PATCH /contact-properties/{id})
UpdateContactProperty(w http.ResponseWriter, r *http.Request, id string)
// ListContacts Retrieve a list of contacts
// (GET /contacts)
ListContacts(w http.ResponseWriter, r *http.Request, params ListContactsParams)
// CreateContact Create a new contact
// (POST /contacts)
CreateContact(w http.ResponseWriter, r *http.Request)
// ListContactSegments Retrieve a list of segments for a contact
// (GET /contacts/{contact_id}/segments)
ListContactSegments(w http.ResponseWriter, r *http.Request, contactID string, params ListContactSegmentsParams)
// RemoveContactFromSegment Remove a contact from a segment
// (DELETE /contacts/{contact_id}/segments/{segment_id})
RemoveContactFromSegment(w http.ResponseWriter, r *http.Request, contactID string, segmentID string)
// AddContactToSegment Add a contact to a segment
// (POST /contacts/{contact_id}/segments/{segment_id})
AddContactToSegment(w http.ResponseWriter, r *http.Request, contactID string, segmentID string)
// ListContactTopics Retrieve topics for a contact
// (GET /contacts/{contact_id}/topics)
ListContactTopics(w http.ResponseWriter, r *http.Request, contactID string, params ListContactTopicsParams)
// UpdateContactTopics Update topics for a contact
// (PATCH /contacts/{contact_id}/topics)
UpdateContactTopics(w http.ResponseWriter, r *http.Request, contactID string)
// DeleteContact Remove an existing contact by ID or email
// (DELETE /contacts/{id})
DeleteContact(w http.ResponseWriter, r *http.Request, id string)
// GetContact Retrieve a single contact by ID or email
// (GET /contacts/{id})
GetContact(w http.ResponseWriter, r *http.Request, id string)
// UpdateContact Update a single contact by ID or email
// (PATCH /contacts/{id})
UpdateContact(w http.ResponseWriter, r *http.Request, id string)
// ListDomains Retrieve a list of domains
// (GET /domains)
ListDomains(w http.ResponseWriter, r *http.Request, params ListDomainsParams)
// CreateDomain Create a new domain
// (POST /domains)
CreateDomain(w http.ResponseWriter, r *http.Request)
// DeleteDomain Remove an existing domain
// (DELETE /domains/{domain_id})
DeleteDomain(w http.ResponseWriter, r *http.Request, domainID string)
// GetDomain Retrieve a single domain
// (GET /domains/{domain_id})
GetDomain(w http.ResponseWriter, r *http.Request, domainID string)
// UpdateDomain Update an existing domain
// (PATCH /domains/{domain_id})
UpdateDomain(w http.ResponseWriter, r *http.Request, domainID string)
// VerifyDomain Verify an existing domain
// (POST /domains/{domain_id}/verify)
VerifyDomain(w http.ResponseWriter, r *http.Request, domainID string)
// ListEmails Retrieve a list of emails
// (GET /emails)
ListEmails(w http.ResponseWriter, r *http.Request, params ListEmailsParams)
// SendEmail Send an email
// (POST /emails)
SendEmail(w http.ResponseWriter, r *http.Request, params SendEmailParams)
// SendBatchEmails Trigger up to 100 batch emails at once.
// (POST /emails/batch)
SendBatchEmails(w http.ResponseWriter, r *http.Request, params SendBatchEmailsParams)
// ListReceivedEmails Retrieve a list of received emails
// (GET /emails/receiving)
ListReceivedEmails(w http.ResponseWriter, r *http.Request, params ListReceivedEmailsParams)
// GetReceivedEmail Retrieve a single received email
// (GET /emails/receiving/{email_id})
GetReceivedEmail(w http.ResponseWriter, r *http.Request, emailID openapi_types.UUID)
// ListReceivedEmailAttachments Retrieve a list of attachments for a received email
// (GET /emails/receiving/{email_id}/attachments)
ListReceivedEmailAttachments(w http.ResponseWriter, r *http.Request, emailID openapi_types.UUID, params ListReceivedEmailAttachmentsParams)
// GetReceivedEmailAttachment Retrieve a single attachment for a received email
// (GET /emails/receiving/{email_id}/attachments/{attachment_id})
GetReceivedEmailAttachment(w http.ResponseWriter, r *http.Request, emailID openapi_types.UUID, attachmentID openapi_types.UUID)
// GetEmail Retrieve a single email
// (GET /emails/{email_id})
GetEmail(w http.ResponseWriter, r *http.Request, emailID string)
// UpdateEmail Update a single email
// (PATCH /emails/{email_id})
UpdateEmail(w http.ResponseWriter, r *http.Request, emailID string)
// ListEmailAttachments Retrieve a list of attachments for a sent email
// (GET /emails/{email_id}/attachments)
ListEmailAttachments(w http.ResponseWriter, r *http.Request, emailID openapi_types.UUID, params ListEmailAttachmentsParams)
// GetEmailAttachment Retrieve a single attachment for a sent email
// (GET /emails/{email_id}/attachments/{attachment_id})
GetEmailAttachment(w http.ResponseWriter, r *http.Request, emailID openapi_types.UUID, attachmentID openapi_types.UUID)
// CancelEmail Cancel the schedule of the e-mail.
// (POST /emails/{email_id}/cancel)
CancelEmail(w http.ResponseWriter, r *http.Request, emailID string)
// ListSegments Retrieve a list of segments
// (GET /segments)
ListSegments(w http.ResponseWriter, r *http.Request, params ListSegmentsParams)
// CreateSegment Create a new segment
// (POST /segments)
CreateSegment(w http.ResponseWriter, r *http.Request)
// DeleteSegment Remove an existing segment
// (DELETE /segments/{id})
DeleteSegment(w http.ResponseWriter, r *http.Request, id string)
// GetSegment Retrieve a single segment
// (GET /segments/{id})
GetSegment(w http.ResponseWriter, r *http.Request, id string)
// ListTemplates Retrieve a list of templates
// (GET /templates)
ListTemplates(w http.ResponseWriter, r *http.Request, params ListTemplatesParams)
// CreateTemplate Create a template
// (POST /templates)
CreateTemplate(w http.ResponseWriter, r *http.Request)
// DeleteTemplate Remove an existing template
// (DELETE /templates/{id})
DeleteTemplate(w http.ResponseWriter, r *http.Request, id string)
// GetTemplate Retrieve a single template
// (GET /templates/{id})
GetTemplate(w http.ResponseWriter, r *http.Request, id string)
// UpdateTemplate Update an existing template
// (PATCH /templates/{id})
UpdateTemplate(w http.ResponseWriter, r *http.Request, id string)
// DuplicateTemplate Duplicate a template
// (POST /templates/{id}/duplicate)
DuplicateTemplate(w http.ResponseWriter, r *http.Request, id string)
// PublishTemplate Publish a template
// (POST /templates/{id}/publish)
PublishTemplate(w http.ResponseWriter, r *http.Request, id string)
// ListTopics Retrieve a list of topics
// (GET /topics)
ListTopics(w http.ResponseWriter, r *http.Request, params ListTopicsParams)
// CreateTopic Create a new topic
// (POST /topics)
CreateTopic(w http.ResponseWriter, r *http.Request)
// DeleteTopic Remove an existing topic
// (DELETE /topics/{id})
DeleteTopic(w http.ResponseWriter, r *http.Request, id string)
// GetTopic Retrieve a single topic
// (GET /topics/{id})
GetTopic(w http.ResponseWriter, r *http.Request, id string)
// UpdateTopic Update an existing topic
// (PATCH /topics/{id})
UpdateTopic(w http.ResponseWriter, r *http.Request, id string)
// ListWebhooks Retrieve a list of webhooks
// (GET /webhooks)
ListWebhooks(w http.ResponseWriter, r *http.Request, params ListWebhooksParams)
// CreateWebhook Create a new webhook
// (POST /webhooks)
CreateWebhook(w http.ResponseWriter, r *http.Request)
// DeleteWebhook Remove an existing webhook
// (DELETE /webhooks/{webhook_id})
DeleteWebhook(w http.ResponseWriter, r *http.Request, webhookID openapi_types.UUID)
// GetWebhook Retrieve a single webhook
// (GET /webhooks/{webhook_id})
GetWebhook(w http.ResponseWriter, r *http.Request, webhookID openapi_types.UUID)
// UpdateWebhook Update an existing webhook
// (PATCH /webhooks/{webhook_id})
UpdateWebhook(w http.ResponseWriter, r *http.Request, webhookID openapi_types.UUID)
}
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
func NewStrictHandlerWithOptions ¶
func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) AddContactToSegment ¶
func (siw *ServerInterfaceWrapper) AddContactToSegment(w http.ResponseWriter, r *http.Request)
AddContactToSegment operation middleware
func (*ServerInterfaceWrapper) CancelEmail ¶
func (siw *ServerInterfaceWrapper) CancelEmail(w http.ResponseWriter, r *http.Request)
CancelEmail operation middleware
func (*ServerInterfaceWrapper) CreateAPIKey ¶
func (siw *ServerInterfaceWrapper) CreateAPIKey(w http.ResponseWriter, r *http.Request)
CreateAPIKey operation middleware
func (*ServerInterfaceWrapper) CreateAudience ¶
func (siw *ServerInterfaceWrapper) CreateAudience(w http.ResponseWriter, r *http.Request)
CreateAudience operation middleware
func (*ServerInterfaceWrapper) CreateBroadcast ¶
func (siw *ServerInterfaceWrapper) CreateBroadcast(w http.ResponseWriter, r *http.Request)
CreateBroadcast operation middleware
func (*ServerInterfaceWrapper) CreateContact ¶
func (siw *ServerInterfaceWrapper) CreateContact(w http.ResponseWriter, r *http.Request)
CreateContact operation middleware
func (*ServerInterfaceWrapper) CreateContactProperty ¶
func (siw *ServerInterfaceWrapper) CreateContactProperty(w http.ResponseWriter, r *http.Request)
CreateContactProperty operation middleware
func (*ServerInterfaceWrapper) CreateDomain ¶
func (siw *ServerInterfaceWrapper) CreateDomain(w http.ResponseWriter, r *http.Request)
CreateDomain operation middleware
func (*ServerInterfaceWrapper) CreateSegment ¶
func (siw *ServerInterfaceWrapper) CreateSegment(w http.ResponseWriter, r *http.Request)
CreateSegment operation middleware
func (*ServerInterfaceWrapper) CreateTemplate ¶
func (siw *ServerInterfaceWrapper) CreateTemplate(w http.ResponseWriter, r *http.Request)
CreateTemplate operation middleware
func (*ServerInterfaceWrapper) CreateTopic ¶
func (siw *ServerInterfaceWrapper) CreateTopic(w http.ResponseWriter, r *http.Request)
CreateTopic operation middleware
func (*ServerInterfaceWrapper) CreateWebhook ¶
func (siw *ServerInterfaceWrapper) CreateWebhook(w http.ResponseWriter, r *http.Request)
CreateWebhook operation middleware
func (*ServerInterfaceWrapper) DeleteAPIKey ¶
func (siw *ServerInterfaceWrapper) DeleteAPIKey(w http.ResponseWriter, r *http.Request)
DeleteAPIKey operation middleware
func (*ServerInterfaceWrapper) DeleteAudience ¶
func (siw *ServerInterfaceWrapper) DeleteAudience(w http.ResponseWriter, r *http.Request)
DeleteAudience operation middleware
func (*ServerInterfaceWrapper) DeleteBroadcast ¶
func (siw *ServerInterfaceWrapper) DeleteBroadcast(w http.ResponseWriter, r *http.Request)
DeleteBroadcast operation middleware
func (*ServerInterfaceWrapper) DeleteContact ¶
func (siw *ServerInterfaceWrapper) DeleteContact(w http.ResponseWriter, r *http.Request)
DeleteContact operation middleware
func (*ServerInterfaceWrapper) DeleteContactProperty ¶
func (siw *ServerInterfaceWrapper) DeleteContactProperty(w http.ResponseWriter, r *http.Request)
DeleteContactProperty operation middleware
func (*ServerInterfaceWrapper) DeleteDomain ¶
func (siw *ServerInterfaceWrapper) DeleteDomain(w http.ResponseWriter, r *http.Request)
DeleteDomain operation middleware
func (*ServerInterfaceWrapper) DeleteSegment ¶
func (siw *ServerInterfaceWrapper) DeleteSegment(w http.ResponseWriter, r *http.Request)
DeleteSegment operation middleware
func (*ServerInterfaceWrapper) DeleteTemplate ¶
func (siw *ServerInterfaceWrapper) DeleteTemplate(w http.ResponseWriter, r *http.Request)
DeleteTemplate operation middleware
func (*ServerInterfaceWrapper) DeleteTopic ¶
func (siw *ServerInterfaceWrapper) DeleteTopic(w http.ResponseWriter, r *http.Request)
DeleteTopic operation middleware
func (*ServerInterfaceWrapper) DeleteWebhook ¶
func (siw *ServerInterfaceWrapper) DeleteWebhook(w http.ResponseWriter, r *http.Request)
DeleteWebhook operation middleware
func (*ServerInterfaceWrapper) DuplicateTemplate ¶
func (siw *ServerInterfaceWrapper) DuplicateTemplate(w http.ResponseWriter, r *http.Request)
DuplicateTemplate operation middleware
func (*ServerInterfaceWrapper) GetAudience ¶
func (siw *ServerInterfaceWrapper) GetAudience(w http.ResponseWriter, r *http.Request)
GetAudience operation middleware
func (*ServerInterfaceWrapper) GetBroadcast ¶
func (siw *ServerInterfaceWrapper) GetBroadcast(w http.ResponseWriter, r *http.Request)
GetBroadcast operation middleware
func (*ServerInterfaceWrapper) GetContact ¶
func (siw *ServerInterfaceWrapper) GetContact(w http.ResponseWriter, r *http.Request)
GetContact operation middleware
func (*ServerInterfaceWrapper) GetContactProperty ¶
func (siw *ServerInterfaceWrapper) GetContactProperty(w http.ResponseWriter, r *http.Request)
GetContactProperty operation middleware
func (*ServerInterfaceWrapper) GetDomain ¶
func (siw *ServerInterfaceWrapper) GetDomain(w http.ResponseWriter, r *http.Request)
GetDomain operation middleware
func (*ServerInterfaceWrapper) GetEmail ¶
func (siw *ServerInterfaceWrapper) GetEmail(w http.ResponseWriter, r *http.Request)
GetEmail operation middleware
func (*ServerInterfaceWrapper) GetEmailAttachment ¶
func (siw *ServerInterfaceWrapper) GetEmailAttachment(w http.ResponseWriter, r *http.Request)
GetEmailAttachment operation middleware
func (*ServerInterfaceWrapper) GetReceivedEmail ¶
func (siw *ServerInterfaceWrapper) GetReceivedEmail(w http.ResponseWriter, r *http.Request)
GetReceivedEmail operation middleware
func (*ServerInterfaceWrapper) GetReceivedEmailAttachment ¶
func (siw *ServerInterfaceWrapper) GetReceivedEmailAttachment(w http.ResponseWriter, r *http.Request)
GetReceivedEmailAttachment operation middleware
func (*ServerInterfaceWrapper) GetSegment ¶
func (siw *ServerInterfaceWrapper) GetSegment(w http.ResponseWriter, r *http.Request)
GetSegment operation middleware
func (*ServerInterfaceWrapper) GetTemplate ¶
func (siw *ServerInterfaceWrapper) GetTemplate(w http.ResponseWriter, r *http.Request)
GetTemplate operation middleware
func (*ServerInterfaceWrapper) GetTopic ¶
func (siw *ServerInterfaceWrapper) GetTopic(w http.ResponseWriter, r *http.Request)
GetTopic operation middleware
func (*ServerInterfaceWrapper) GetWebhook ¶
func (siw *ServerInterfaceWrapper) GetWebhook(w http.ResponseWriter, r *http.Request)
GetWebhook operation middleware
func (*ServerInterfaceWrapper) ListAPIKeys ¶
func (siw *ServerInterfaceWrapper) ListAPIKeys(w http.ResponseWriter, r *http.Request)
ListAPIKeys operation middleware
func (*ServerInterfaceWrapper) ListAudiences ¶
func (siw *ServerInterfaceWrapper) ListAudiences(w http.ResponseWriter, r *http.Request)
ListAudiences operation middleware
func (*ServerInterfaceWrapper) ListBroadcasts ¶
func (siw *ServerInterfaceWrapper) ListBroadcasts(w http.ResponseWriter, r *http.Request)
ListBroadcasts operation middleware
func (*ServerInterfaceWrapper) ListContactProperties ¶
func (siw *ServerInterfaceWrapper) ListContactProperties(w http.ResponseWriter, r *http.Request)
ListContactProperties operation middleware
func (*ServerInterfaceWrapper) ListContactSegments ¶
func (siw *ServerInterfaceWrapper) ListContactSegments(w http.ResponseWriter, r *http.Request)
ListContactSegments operation middleware
func (*ServerInterfaceWrapper) ListContactTopics ¶
func (siw *ServerInterfaceWrapper) ListContactTopics(w http.ResponseWriter, r *http.Request)
ListContactTopics operation middleware
func (*ServerInterfaceWrapper) ListContacts ¶
func (siw *ServerInterfaceWrapper) ListContacts(w http.ResponseWriter, r *http.Request)
ListContacts operation middleware
func (*ServerInterfaceWrapper) ListDomains ¶
func (siw *ServerInterfaceWrapper) ListDomains(w http.ResponseWriter, r *http.Request)
ListDomains operation middleware
func (*ServerInterfaceWrapper) ListEmailAttachments ¶
func (siw *ServerInterfaceWrapper) ListEmailAttachments(w http.ResponseWriter, r *http.Request)
ListEmailAttachments operation middleware
func (*ServerInterfaceWrapper) ListEmails ¶
func (siw *ServerInterfaceWrapper) ListEmails(w http.ResponseWriter, r *http.Request)
ListEmails operation middleware
func (*ServerInterfaceWrapper) ListReceivedEmailAttachments ¶
func (siw *ServerInterfaceWrapper) ListReceivedEmailAttachments(w http.ResponseWriter, r *http.Request)
ListReceivedEmailAttachments operation middleware
func (*ServerInterfaceWrapper) ListReceivedEmails ¶
func (siw *ServerInterfaceWrapper) ListReceivedEmails(w http.ResponseWriter, r *http.Request)
ListReceivedEmails operation middleware
func (*ServerInterfaceWrapper) ListSegments ¶
func (siw *ServerInterfaceWrapper) ListSegments(w http.ResponseWriter, r *http.Request)
ListSegments operation middleware
func (*ServerInterfaceWrapper) ListTemplates ¶
func (siw *ServerInterfaceWrapper) ListTemplates(w http.ResponseWriter, r *http.Request)
ListTemplates operation middleware
func (*ServerInterfaceWrapper) ListTopics ¶
func (siw *ServerInterfaceWrapper) ListTopics(w http.ResponseWriter, r *http.Request)
ListTopics operation middleware
func (*ServerInterfaceWrapper) ListWebhooks ¶
func (siw *ServerInterfaceWrapper) ListWebhooks(w http.ResponseWriter, r *http.Request)
ListWebhooks operation middleware
func (*ServerInterfaceWrapper) PublishTemplate ¶
func (siw *ServerInterfaceWrapper) PublishTemplate(w http.ResponseWriter, r *http.Request)
PublishTemplate operation middleware
func (*ServerInterfaceWrapper) RemoveContactFromSegment ¶
func (siw *ServerInterfaceWrapper) RemoveContactFromSegment(w http.ResponseWriter, r *http.Request)
RemoveContactFromSegment operation middleware
func (*ServerInterfaceWrapper) SendBatchEmails ¶
func (siw *ServerInterfaceWrapper) SendBatchEmails(w http.ResponseWriter, r *http.Request)
SendBatchEmails operation middleware
func (*ServerInterfaceWrapper) SendBroadcast ¶
func (siw *ServerInterfaceWrapper) SendBroadcast(w http.ResponseWriter, r *http.Request)
SendBroadcast operation middleware
func (*ServerInterfaceWrapper) SendEmail ¶
func (siw *ServerInterfaceWrapper) SendEmail(w http.ResponseWriter, r *http.Request)
SendEmail operation middleware
func (*ServerInterfaceWrapper) UpdateBroadcast ¶
func (siw *ServerInterfaceWrapper) UpdateBroadcast(w http.ResponseWriter, r *http.Request)
UpdateBroadcast operation middleware
func (*ServerInterfaceWrapper) UpdateContact ¶
func (siw *ServerInterfaceWrapper) UpdateContact(w http.ResponseWriter, r *http.Request)
UpdateContact operation middleware
func (*ServerInterfaceWrapper) UpdateContactProperty ¶
func (siw *ServerInterfaceWrapper) UpdateContactProperty(w http.ResponseWriter, r *http.Request)
UpdateContactProperty operation middleware
func (*ServerInterfaceWrapper) UpdateContactTopics ¶
func (siw *ServerInterfaceWrapper) UpdateContactTopics(w http.ResponseWriter, r *http.Request)
UpdateContactTopics operation middleware
func (*ServerInterfaceWrapper) UpdateDomain ¶
func (siw *ServerInterfaceWrapper) UpdateDomain(w http.ResponseWriter, r *http.Request)
UpdateDomain operation middleware
func (*ServerInterfaceWrapper) UpdateEmail ¶
func (siw *ServerInterfaceWrapper) UpdateEmail(w http.ResponseWriter, r *http.Request)
UpdateEmail operation middleware
func (*ServerInterfaceWrapper) UpdateTemplate ¶
func (siw *ServerInterfaceWrapper) UpdateTemplate(w http.ResponseWriter, r *http.Request)
UpdateTemplate operation middleware
func (*ServerInterfaceWrapper) UpdateTopic ¶
func (siw *ServerInterfaceWrapper) UpdateTopic(w http.ResponseWriter, r *http.Request)
UpdateTopic operation middleware
func (*ServerInterfaceWrapper) UpdateWebhook ¶
func (siw *ServerInterfaceWrapper) UpdateWebhook(w http.ResponseWriter, r *http.Request)
UpdateWebhook operation middleware
func (*ServerInterfaceWrapper) VerifyDomain ¶
func (siw *ServerInterfaceWrapper) VerifyDomain(w http.ResponseWriter, r *http.Request)
VerifyDomain operation middleware
type StdHTTPServerOptions ¶
type StdHTTPServerOptions struct {
BaseURL string
BaseRouter ServeMux
Middlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StrictHTTPServerOptions ¶
type StrictHTTPServerOptions struct {
RequestErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StrictHandlerFunc ¶
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// ListAPIKeys Retrieve a list of API keys
// (GET /api-keys)
ListAPIKeys(ctx context.Context, request ListAPIKeysRequestObject) (ListAPIKeysResponseObject, error)
// CreateAPIKey Create a new API key
// (POST /api-keys)
CreateAPIKey(ctx context.Context, request CreateAPIKeyRequestObject) (CreateAPIKeyResponseObject, error)
// DeleteAPIKey Remove an existing API key
// (DELETE /api-keys/{api_key_id})
DeleteAPIKey(ctx context.Context, request DeleteAPIKeyRequestObject) (DeleteAPIKeyResponseObject, error)
// ListAudiences Retrieve a list of audiences
// (GET /audiences)
//
// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set
ListAudiences(ctx context.Context, request ListAudiencesRequestObject) (ListAudiencesResponseObject, error)
// CreateAudience Create a list of contacts
// (POST /audiences)
//
// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set
CreateAudience(ctx context.Context, request CreateAudienceRequestObject) (CreateAudienceResponseObject, error)
// DeleteAudience Remove an existing audience
// (DELETE /audiences/{id})
//
// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set
DeleteAudience(ctx context.Context, request DeleteAudienceRequestObject) (DeleteAudienceResponseObject, error)
// GetAudience Retrieve a single audience
// (GET /audiences/{id})
//
// Deprecated: this operation has been marked as deprecated upstream, but no `x-deprecated-reason` was set
GetAudience(ctx context.Context, request GetAudienceRequestObject) (GetAudienceResponseObject, error)
// ListBroadcasts Retrieve a list of broadcasts
// (GET /broadcasts)
ListBroadcasts(ctx context.Context, request ListBroadcastsRequestObject) (ListBroadcastsResponseObject, error)
// CreateBroadcast Create a broadcast
// (POST /broadcasts)
CreateBroadcast(ctx context.Context, request CreateBroadcastRequestObject) (CreateBroadcastResponseObject, error)
// DeleteBroadcast Remove an existing broadcast that is in the draft status
// (DELETE /broadcasts/{id})
DeleteBroadcast(ctx context.Context, request DeleteBroadcastRequestObject) (DeleteBroadcastResponseObject, error)
// GetBroadcast Retrieve a single broadcast
// (GET /broadcasts/{id})
GetBroadcast(ctx context.Context, request GetBroadcastRequestObject) (GetBroadcastResponseObject, error)
// UpdateBroadcast Update an existing broadcast
// (PATCH /broadcasts/{id})
UpdateBroadcast(ctx context.Context, request UpdateBroadcastRequestObject) (UpdateBroadcastResponseObject, error)
// SendBroadcast Send or schedule a broadcast
// (POST /broadcasts/{id}/send)
SendBroadcast(ctx context.Context, request SendBroadcastRequestObject) (SendBroadcastResponseObject, error)
// ListContactProperties Retrieve a list of contact properties
// (GET /contact-properties)
ListContactProperties(ctx context.Context, request ListContactPropertiesRequestObject) (ListContactPropertiesResponseObject, error)
// CreateContactProperty Create a new contact property
// (POST /contact-properties)
CreateContactProperty(ctx context.Context, request CreateContactPropertyRequestObject) (CreateContactPropertyResponseObject, error)
// DeleteContactProperty Remove an existing contact property
// (DELETE /contact-properties/{id})
DeleteContactProperty(ctx context.Context, request DeleteContactPropertyRequestObject) (DeleteContactPropertyResponseObject, error)
// GetContactProperty Retrieve a single contact property
// (GET /contact-properties/{id})
GetContactProperty(ctx context.Context, request GetContactPropertyRequestObject) (GetContactPropertyResponseObject, error)
// UpdateContactProperty Update an existing contact property
// (PATCH /contact-properties/{id})
UpdateContactProperty(ctx context.Context, request UpdateContactPropertyRequestObject) (UpdateContactPropertyResponseObject, error)
// ListContacts Retrieve a list of contacts
// (GET /contacts)
ListContacts(ctx context.Context, request ListContactsRequestObject) (ListContactsResponseObject, error)
// CreateContact Create a new contact
// (POST /contacts)
CreateContact(ctx context.Context, request CreateContactRequestObject) (CreateContactResponseObject, error)
// ListContactSegments Retrieve a list of segments for a contact
// (GET /contacts/{contact_id}/segments)
ListContactSegments(ctx context.Context, request ListContactSegmentsRequestObject) (ListContactSegmentsResponseObject, error)
// RemoveContactFromSegment Remove a contact from a segment
// (DELETE /contacts/{contact_id}/segments/{segment_id})
RemoveContactFromSegment(ctx context.Context, request RemoveContactFromSegmentRequestObject) (RemoveContactFromSegmentResponseObject, error)
// AddContactToSegment Add a contact to a segment
// (POST /contacts/{contact_id}/segments/{segment_id})
AddContactToSegment(ctx context.Context, request AddContactToSegmentRequestObject) (AddContactToSegmentResponseObject, error)
// ListContactTopics Retrieve topics for a contact
// (GET /contacts/{contact_id}/topics)
ListContactTopics(ctx context.Context, request ListContactTopicsRequestObject) (ListContactTopicsResponseObject, error)
// UpdateContactTopics Update topics for a contact
// (PATCH /contacts/{contact_id}/topics)
UpdateContactTopics(ctx context.Context, request UpdateContactTopicsRequestObject) (UpdateContactTopicsResponseObject, error)
// DeleteContact Remove an existing contact by ID or email
// (DELETE /contacts/{id})
DeleteContact(ctx context.Context, request DeleteContactRequestObject) (DeleteContactResponseObject, error)
// GetContact Retrieve a single contact by ID or email
// (GET /contacts/{id})
GetContact(ctx context.Context, request GetContactRequestObject) (GetContactResponseObject, error)
// UpdateContact Update a single contact by ID or email
// (PATCH /contacts/{id})
UpdateContact(ctx context.Context, request UpdateContactRequestObject) (UpdateContactResponseObject, error)
// ListDomains Retrieve a list of domains
// (GET /domains)
ListDomains(ctx context.Context, request ListDomainsRequestObject) (ListDomainsResponseObject, error)
// CreateDomain Create a new domain
// (POST /domains)
CreateDomain(ctx context.Context, request CreateDomainRequestObject) (CreateDomainResponseObject, error)
// DeleteDomain Remove an existing domain
// (DELETE /domains/{domain_id})
DeleteDomain(ctx context.Context, request DeleteDomainRequestObject) (DeleteDomainResponseObject, error)
// GetDomain Retrieve a single domain
// (GET /domains/{domain_id})
GetDomain(ctx context.Context, request GetDomainRequestObject) (GetDomainResponseObject, error)
// UpdateDomain Update an existing domain
// (PATCH /domains/{domain_id})
UpdateDomain(ctx context.Context, request UpdateDomainRequestObject) (UpdateDomainResponseObject, error)
// VerifyDomain Verify an existing domain
// (POST /domains/{domain_id}/verify)
VerifyDomain(ctx context.Context, request VerifyDomainRequestObject) (VerifyDomainResponseObject, error)
// ListEmails Retrieve a list of emails
// (GET /emails)
ListEmails(ctx context.Context, request ListEmailsRequestObject) (ListEmailsResponseObject, error)
// SendEmail Send an email
// (POST /emails)
SendEmail(ctx context.Context, request SendEmailRequestObject) (SendEmailResponseObject, error)
// SendBatchEmails Trigger up to 100 batch emails at once.
// (POST /emails/batch)
SendBatchEmails(ctx context.Context, request SendBatchEmailsRequestObject) (SendBatchEmailsResponseObject, error)
// ListReceivedEmails Retrieve a list of received emails
// (GET /emails/receiving)
ListReceivedEmails(ctx context.Context, request ListReceivedEmailsRequestObject) (ListReceivedEmailsResponseObject, error)
// GetReceivedEmail Retrieve a single received email
// (GET /emails/receiving/{email_id})
GetReceivedEmail(ctx context.Context, request GetReceivedEmailRequestObject) (GetReceivedEmailResponseObject, error)
// ListReceivedEmailAttachments Retrieve a list of attachments for a received email
// (GET /emails/receiving/{email_id}/attachments)
ListReceivedEmailAttachments(ctx context.Context, request ListReceivedEmailAttachmentsRequestObject) (ListReceivedEmailAttachmentsResponseObject, error)
// GetReceivedEmailAttachment Retrieve a single attachment for a received email
// (GET /emails/receiving/{email_id}/attachments/{attachment_id})
GetReceivedEmailAttachment(ctx context.Context, request GetReceivedEmailAttachmentRequestObject) (GetReceivedEmailAttachmentResponseObject, error)
// GetEmail Retrieve a single email
// (GET /emails/{email_id})
GetEmail(ctx context.Context, request GetEmailRequestObject) (GetEmailResponseObject, error)
// UpdateEmail Update a single email
// (PATCH /emails/{email_id})
UpdateEmail(ctx context.Context, request UpdateEmailRequestObject) (UpdateEmailResponseObject, error)
// ListEmailAttachments Retrieve a list of attachments for a sent email
// (GET /emails/{email_id}/attachments)
ListEmailAttachments(ctx context.Context, request ListEmailAttachmentsRequestObject) (ListEmailAttachmentsResponseObject, error)
// GetEmailAttachment Retrieve a single attachment for a sent email
// (GET /emails/{email_id}/attachments/{attachment_id})
GetEmailAttachment(ctx context.Context, request GetEmailAttachmentRequestObject) (GetEmailAttachmentResponseObject, error)
// CancelEmail Cancel the schedule of the e-mail.
// (POST /emails/{email_id}/cancel)
CancelEmail(ctx context.Context, request CancelEmailRequestObject) (CancelEmailResponseObject, error)
// ListSegments Retrieve a list of segments
// (GET /segments)
ListSegments(ctx context.Context, request ListSegmentsRequestObject) (ListSegmentsResponseObject, error)
// CreateSegment Create a new segment
// (POST /segments)
CreateSegment(ctx context.Context, request CreateSegmentRequestObject) (CreateSegmentResponseObject, error)
// DeleteSegment Remove an existing segment
// (DELETE /segments/{id})
DeleteSegment(ctx context.Context, request DeleteSegmentRequestObject) (DeleteSegmentResponseObject, error)
// GetSegment Retrieve a single segment
// (GET /segments/{id})
GetSegment(ctx context.Context, request GetSegmentRequestObject) (GetSegmentResponseObject, error)
// ListTemplates Retrieve a list of templates
// (GET /templates)
ListTemplates(ctx context.Context, request ListTemplatesRequestObject) (ListTemplatesResponseObject, error)
// CreateTemplate Create a template
// (POST /templates)
CreateTemplate(ctx context.Context, request CreateTemplateRequestObject) (CreateTemplateResponseObject, error)
// DeleteTemplate Remove an existing template
// (DELETE /templates/{id})
DeleteTemplate(ctx context.Context, request DeleteTemplateRequestObject) (DeleteTemplateResponseObject, error)
// GetTemplate Retrieve a single template
// (GET /templates/{id})
GetTemplate(ctx context.Context, request GetTemplateRequestObject) (GetTemplateResponseObject, error)
// UpdateTemplate Update an existing template
// (PATCH /templates/{id})
UpdateTemplate(ctx context.Context, request UpdateTemplateRequestObject) (UpdateTemplateResponseObject, error)
// DuplicateTemplate Duplicate a template
// (POST /templates/{id}/duplicate)
DuplicateTemplate(ctx context.Context, request DuplicateTemplateRequestObject) (DuplicateTemplateResponseObject, error)
// PublishTemplate Publish a template
// (POST /templates/{id}/publish)
PublishTemplate(ctx context.Context, request PublishTemplateRequestObject) (PublishTemplateResponseObject, error)
// ListTopics Retrieve a list of topics
// (GET /topics)
ListTopics(ctx context.Context, request ListTopicsRequestObject) (ListTopicsResponseObject, error)
// CreateTopic Create a new topic
// (POST /topics)
CreateTopic(ctx context.Context, request CreateTopicRequestObject) (CreateTopicResponseObject, error)
// DeleteTopic Remove an existing topic
// (DELETE /topics/{id})
DeleteTopic(ctx context.Context, request DeleteTopicRequestObject) (DeleteTopicResponseObject, error)
// GetTopic Retrieve a single topic
// (GET /topics/{id})
GetTopic(ctx context.Context, request GetTopicRequestObject) (GetTopicResponseObject, error)
// UpdateTopic Update an existing topic
// (PATCH /topics/{id})
UpdateTopic(ctx context.Context, request UpdateTopicRequestObject) (UpdateTopicResponseObject, error)
// ListWebhooks Retrieve a list of webhooks
// (GET /webhooks)
ListWebhooks(ctx context.Context, request ListWebhooksRequestObject) (ListWebhooksResponseObject, error)
// CreateWebhook Create a new webhook
// (POST /webhooks)
CreateWebhook(ctx context.Context, request CreateWebhookRequestObject) (CreateWebhookResponseObject, error)
// DeleteWebhook Remove an existing webhook
// (DELETE /webhooks/{webhook_id})
DeleteWebhook(ctx context.Context, request DeleteWebhookRequestObject) (DeleteWebhookResponseObject, error)
// GetWebhook Retrieve a single webhook
// (GET /webhooks/{webhook_id})
GetWebhook(ctx context.Context, request GetWebhookRequestObject) (GetWebhookResponseObject, error)
// UpdateWebhook Update an existing webhook
// (PATCH /webhooks/{webhook_id})
UpdateWebhook(ctx context.Context, request UpdateWebhookRequestObject) (UpdateWebhookResponseObject, error)
}
StrictServerInterface represents all server handlers.
type Tag ¶
type Tag struct {
// Name The name of the email tag. It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-). It can contain no more than 256 characters.
Name *string `json:"name,omitempty"`
// Value The value of the email tag.It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-). It can contain no more than 256 characters.
Value *string `json:"value,omitempty"`
}
Tag defines model for Tag.
type Template ¶
type Template struct {
// Alias The alias of the template.
Alias *string `json:"alias,omitempty"`
// CreatedAt Timestamp indicating when the template was created.
CreatedAt *time.Time `json:"created_at,omitempty"`
// CurrentVersionID The ID of the current version of the template.
CurrentVersionID *string `json:"current_version_id,omitempty"`
// From Sender email address. To include a friendly name, use the format "Your Name <sender@domain.com>".
From *string `json:"from,omitempty"`
// HasUnpublishedVersions Indicates whether the template has unpublished versions.
HasUnpublishedVersions *bool `json:"has_unpublished_versions,omitempty"`
// HTML The HTML version of the template.
HTML *string `json:"html,omitempty"`
// ID The ID of the template.
ID *string `json:"id,omitempty"`
// Name The name of the template.
Name *string `json:"name,omitempty"`
// Object The type of object.
//
// Example: template
Object *string `json:"object,omitempty"`
// PublishedAt Timestamp indicating when the template was published.
PublishedAt *time.Time `json:"published_at,omitempty"`
// ReplyTo Reply-to email addresses.
ReplyTo *[]string `json:"reply_to,omitempty"`
// Status The publication status of the template.
Status *TemplateStatus `json:"status,omitempty"`
// Subject Email subject.
Subject *string `json:"subject,omitempty"`
// Text The plain text version of the template.
Text *string `json:"text,omitempty"`
// UpdatedAt Timestamp indicating when the template was last updated.
UpdatedAt *time.Time `json:"updated_at,omitempty"`
Variables *[]TemplateVariable `json:"variables,omitempty"`
}
Template defines model for Template.
type TemplateListItem ¶
type TemplateListItem struct {
// Alias The alias of the template.
Alias *string `json:"alias,omitempty"`
// CreatedAt Timestamp indicating when the template was created.
CreatedAt *time.Time `json:"created_at,omitempty"`
// ID The ID of the template.
ID *string `json:"id,omitempty"`
// Name The name of the template.
Name *string `json:"name,omitempty"`
// PublishedAt Timestamp indicating when the template was published.
PublishedAt *time.Time `json:"published_at,omitempty"`
// Status The publication status of the template.
Status *TemplateListItemStatus `json:"status,omitempty"`
// UpdatedAt Timestamp indicating when the template was last updated.
UpdatedAt *time.Time `json:"updated_at,omitempty"`
}
TemplateListItem defines model for TemplateListItem.
type TemplateListItemStatus ¶
type TemplateListItemStatus string
TemplateListItemStatus The publication status of the template.
const ( TemplateListItemStatusDraft TemplateListItemStatus = "draft" TemplateListItemStatusPublished TemplateListItemStatus = "published" )
Defines values for TemplateListItemStatus.
func (TemplateListItemStatus) Valid ¶
func (e TemplateListItemStatus) Valid() bool
Valid indicates whether the value is a known member of the TemplateListItemStatus enum.
type TemplateStatus ¶
type TemplateStatus string
TemplateStatus The publication status of the template.
const ( TemplateStatusDraft TemplateStatus = "draft" TemplateStatusPublished TemplateStatus = "published" )
Defines values for TemplateStatus.
func (TemplateStatus) Valid ¶
func (e TemplateStatus) Valid() bool
Valid indicates whether the value is a known member of the TemplateStatus enum.
type TemplateVariable ¶
type TemplateVariable struct {
// CreatedAt Timestamp indicating when the variable was created.
CreatedAt *time.Time `json:"created_at,omitempty"`
// FallbackValue The fallback value of the variable.
FallbackValue *TemplateVariable_FallbackValue `json:"fallback_value,omitempty"`
// ID The ID of the template variable.
ID *string `json:"id,omitempty"`
// Key The key of the variable.
Key string `json:"key"`
// Type The type of the variable.
Type TemplateVariableType `json:"type"`
// UpdatedAt Timestamp indicating when the variable was last updated.
UpdatedAt *time.Time `json:"updated_at,omitempty"`
}
TemplateVariable defines model for TemplateVariable.
type TemplateVariableFallbackValue0 ¶
type TemplateVariableFallbackValue0 = string
TemplateVariableFallbackValue0 defines model for TemplateVariable.FallbackValue.0.
type TemplateVariableFallbackValue1 ¶
type TemplateVariableFallbackValue1 = float32
TemplateVariableFallbackValue1 defines model for TemplateVariable.FallbackValue.1.
type TemplateVariableFallbackValue2 ¶
type TemplateVariableFallbackValue2 = bool
TemplateVariableFallbackValue2 defines model for TemplateVariable.FallbackValue.2.
type TemplateVariableFallbackValue3 ¶
type TemplateVariableFallbackValue3 = map[string]interface{}
TemplateVariableFallbackValue3 defines model for TemplateVariable.FallbackValue.3.
type TemplateVariableFallbackValue4 ¶
type TemplateVariableFallbackValue4 = []interface{}
TemplateVariableFallbackValue4 defines model for TemplateVariable.FallbackValue.4.
type TemplateVariableInput ¶
type TemplateVariableInput struct {
// FallbackValue The fallback value of the variable.
FallbackValue *TemplateVariableInput_FallbackValue `json:"fallback_value,omitempty"`
// Key The key of the variable.
Key string `json:"key"`
// Type The type of the variable.
Type TemplateVariableInputType `json:"type"`
}
TemplateVariableInput defines model for TemplateVariableInput.
type TemplateVariableInputFallbackValue0 ¶
type TemplateVariableInputFallbackValue0 = string
TemplateVariableInputFallbackValue0 defines model for TemplateVariableInput.FallbackValue.0.
type TemplateVariableInputFallbackValue1 ¶
type TemplateVariableInputFallbackValue1 = float32
TemplateVariableInputFallbackValue1 defines model for TemplateVariableInput.FallbackValue.1.
type TemplateVariableInputFallbackValue2 ¶
type TemplateVariableInputFallbackValue2 = bool
TemplateVariableInputFallbackValue2 defines model for TemplateVariableInput.FallbackValue.2.
type TemplateVariableInputFallbackValue3 ¶
type TemplateVariableInputFallbackValue3 = map[string]interface{}
TemplateVariableInputFallbackValue3 defines model for TemplateVariableInput.FallbackValue.3.
type TemplateVariableInputFallbackValue4 ¶
type TemplateVariableInputFallbackValue4 = []interface{}
TemplateVariableInputFallbackValue4 defines model for TemplateVariableInput.FallbackValue.4.
type TemplateVariableInputType ¶
type TemplateVariableInputType string
TemplateVariableInputType The type of the variable.
const ( TemplateVariableInputTypeBoolean TemplateVariableInputType = "boolean" TemplateVariableInputTypeList TemplateVariableInputType = "list" TemplateVariableInputTypeNumber TemplateVariableInputType = "number" TemplateVariableInputTypeObject TemplateVariableInputType = "object" TemplateVariableInputTypeString TemplateVariableInputType = "string" )
Defines values for TemplateVariableInputType.
func (TemplateVariableInputType) Valid ¶
func (e TemplateVariableInputType) Valid() bool
Valid indicates whether the value is a known member of the TemplateVariableInputType enum.
type TemplateVariableInput_FallbackValue ¶
type TemplateVariableInput_FallbackValue struct {
// contains filtered or unexported fields
}
TemplateVariableInput_FallbackValue The fallback value of the variable.
func (TemplateVariableInput_FallbackValue) AsTemplateVariableInputFallbackValue0 ¶
func (t TemplateVariableInput_FallbackValue) AsTemplateVariableInputFallbackValue0() (TemplateVariableInputFallbackValue0, error)
AsTemplateVariableInputFallbackValue0 returns the union data inside the TemplateVariableInput_FallbackValue as a TemplateVariableInputFallbackValue0
func (TemplateVariableInput_FallbackValue) AsTemplateVariableInputFallbackValue1 ¶
func (t TemplateVariableInput_FallbackValue) AsTemplateVariableInputFallbackValue1() (TemplateVariableInputFallbackValue1, error)
AsTemplateVariableInputFallbackValue1 returns the union data inside the TemplateVariableInput_FallbackValue as a TemplateVariableInputFallbackValue1
func (TemplateVariableInput_FallbackValue) AsTemplateVariableInputFallbackValue2 ¶
func (t TemplateVariableInput_FallbackValue) AsTemplateVariableInputFallbackValue2() (TemplateVariableInputFallbackValue2, error)
AsTemplateVariableInputFallbackValue2 returns the union data inside the TemplateVariableInput_FallbackValue as a TemplateVariableInputFallbackValue2
func (TemplateVariableInput_FallbackValue) AsTemplateVariableInputFallbackValue3 ¶
func (t TemplateVariableInput_FallbackValue) AsTemplateVariableInputFallbackValue3() (TemplateVariableInputFallbackValue3, error)
AsTemplateVariableInputFallbackValue3 returns the union data inside the TemplateVariableInput_FallbackValue as a TemplateVariableInputFallbackValue3
func (TemplateVariableInput_FallbackValue) AsTemplateVariableInputFallbackValue4 ¶
func (t TemplateVariableInput_FallbackValue) AsTemplateVariableInputFallbackValue4() (TemplateVariableInputFallbackValue4, error)
AsTemplateVariableInputFallbackValue4 returns the union data inside the TemplateVariableInput_FallbackValue as a TemplateVariableInputFallbackValue4
func (*TemplateVariableInput_FallbackValue) FromTemplateVariableInputFallbackValue0 ¶
func (t *TemplateVariableInput_FallbackValue) FromTemplateVariableInputFallbackValue0(v TemplateVariableInputFallbackValue0) error
FromTemplateVariableInputFallbackValue0 overwrites any union data inside the TemplateVariableInput_FallbackValue as the provided TemplateVariableInputFallbackValue0
func (*TemplateVariableInput_FallbackValue) FromTemplateVariableInputFallbackValue1 ¶
func (t *TemplateVariableInput_FallbackValue) FromTemplateVariableInputFallbackValue1(v TemplateVariableInputFallbackValue1) error
FromTemplateVariableInputFallbackValue1 overwrites any union data inside the TemplateVariableInput_FallbackValue as the provided TemplateVariableInputFallbackValue1
func (*TemplateVariableInput_FallbackValue) FromTemplateVariableInputFallbackValue2 ¶
func (t *TemplateVariableInput_FallbackValue) FromTemplateVariableInputFallbackValue2(v TemplateVariableInputFallbackValue2) error
FromTemplateVariableInputFallbackValue2 overwrites any union data inside the TemplateVariableInput_FallbackValue as the provided TemplateVariableInputFallbackValue2
func (*TemplateVariableInput_FallbackValue) FromTemplateVariableInputFallbackValue3 ¶
func (t *TemplateVariableInput_FallbackValue) FromTemplateVariableInputFallbackValue3(v TemplateVariableInputFallbackValue3) error
FromTemplateVariableInputFallbackValue3 overwrites any union data inside the TemplateVariableInput_FallbackValue as the provided TemplateVariableInputFallbackValue3
func (*TemplateVariableInput_FallbackValue) FromTemplateVariableInputFallbackValue4 ¶
func (t *TemplateVariableInput_FallbackValue) FromTemplateVariableInputFallbackValue4(v TemplateVariableInputFallbackValue4) error
FromTemplateVariableInputFallbackValue4 overwrites any union data inside the TemplateVariableInput_FallbackValue as the provided TemplateVariableInputFallbackValue4
func (TemplateVariableInput_FallbackValue) MarshalJSON ¶
func (t TemplateVariableInput_FallbackValue) MarshalJSON() ([]byte, error)
func (*TemplateVariableInput_FallbackValue) MergeTemplateVariableInputFallbackValue0 ¶
func (t *TemplateVariableInput_FallbackValue) MergeTemplateVariableInputFallbackValue0(v TemplateVariableInputFallbackValue0) error
MergeTemplateVariableInputFallbackValue0 performs a merge with any union data inside the TemplateVariableInput_FallbackValue, using the provided TemplateVariableInputFallbackValue0
func (*TemplateVariableInput_FallbackValue) MergeTemplateVariableInputFallbackValue1 ¶
func (t *TemplateVariableInput_FallbackValue) MergeTemplateVariableInputFallbackValue1(v TemplateVariableInputFallbackValue1) error
MergeTemplateVariableInputFallbackValue1 performs a merge with any union data inside the TemplateVariableInput_FallbackValue, using the provided TemplateVariableInputFallbackValue1
func (*TemplateVariableInput_FallbackValue) MergeTemplateVariableInputFallbackValue2 ¶
func (t *TemplateVariableInput_FallbackValue) MergeTemplateVariableInputFallbackValue2(v TemplateVariableInputFallbackValue2) error
MergeTemplateVariableInputFallbackValue2 performs a merge with any union data inside the TemplateVariableInput_FallbackValue, using the provided TemplateVariableInputFallbackValue2
func (*TemplateVariableInput_FallbackValue) MergeTemplateVariableInputFallbackValue3 ¶
func (t *TemplateVariableInput_FallbackValue) MergeTemplateVariableInputFallbackValue3(v TemplateVariableInputFallbackValue3) error
MergeTemplateVariableInputFallbackValue3 performs a merge with any union data inside the TemplateVariableInput_FallbackValue, using the provided TemplateVariableInputFallbackValue3
func (*TemplateVariableInput_FallbackValue) MergeTemplateVariableInputFallbackValue4 ¶
func (t *TemplateVariableInput_FallbackValue) MergeTemplateVariableInputFallbackValue4(v TemplateVariableInputFallbackValue4) error
MergeTemplateVariableInputFallbackValue4 performs a merge with any union data inside the TemplateVariableInput_FallbackValue, using the provided TemplateVariableInputFallbackValue4
func (*TemplateVariableInput_FallbackValue) UnmarshalJSON ¶
func (t *TemplateVariableInput_FallbackValue) UnmarshalJSON(b []byte) error
type TemplateVariableType ¶
type TemplateVariableType string
TemplateVariableType The type of the variable.
const ( TemplateVariableTypeBoolean TemplateVariableType = "boolean" TemplateVariableTypeList TemplateVariableType = "list" TemplateVariableTypeNumber TemplateVariableType = "number" TemplateVariableTypeObject TemplateVariableType = "object" TemplateVariableTypeString TemplateVariableType = "string" )
Defines values for TemplateVariableType.
func (TemplateVariableType) Valid ¶
func (e TemplateVariableType) Valid() bool
Valid indicates whether the value is a known member of the TemplateVariableType enum.
type TemplateVariable_FallbackValue ¶
type TemplateVariable_FallbackValue struct {
// contains filtered or unexported fields
}
TemplateVariable_FallbackValue The fallback value of the variable.
func (TemplateVariable_FallbackValue) AsTemplateVariableFallbackValue0 ¶
func (t TemplateVariable_FallbackValue) AsTemplateVariableFallbackValue0() (TemplateVariableFallbackValue0, error)
AsTemplateVariableFallbackValue0 returns the union data inside the TemplateVariable_FallbackValue as a TemplateVariableFallbackValue0
func (TemplateVariable_FallbackValue) AsTemplateVariableFallbackValue1 ¶
func (t TemplateVariable_FallbackValue) AsTemplateVariableFallbackValue1() (TemplateVariableFallbackValue1, error)
AsTemplateVariableFallbackValue1 returns the union data inside the TemplateVariable_FallbackValue as a TemplateVariableFallbackValue1
func (TemplateVariable_FallbackValue) AsTemplateVariableFallbackValue2 ¶
func (t TemplateVariable_FallbackValue) AsTemplateVariableFallbackValue2() (TemplateVariableFallbackValue2, error)
AsTemplateVariableFallbackValue2 returns the union data inside the TemplateVariable_FallbackValue as a TemplateVariableFallbackValue2
func (TemplateVariable_FallbackValue) AsTemplateVariableFallbackValue3 ¶
func (t TemplateVariable_FallbackValue) AsTemplateVariableFallbackValue3() (TemplateVariableFallbackValue3, error)
AsTemplateVariableFallbackValue3 returns the union data inside the TemplateVariable_FallbackValue as a TemplateVariableFallbackValue3
func (TemplateVariable_FallbackValue) AsTemplateVariableFallbackValue4 ¶
func (t TemplateVariable_FallbackValue) AsTemplateVariableFallbackValue4() (TemplateVariableFallbackValue4, error)
AsTemplateVariableFallbackValue4 returns the union data inside the TemplateVariable_FallbackValue as a TemplateVariableFallbackValue4
func (*TemplateVariable_FallbackValue) FromTemplateVariableFallbackValue0 ¶
func (t *TemplateVariable_FallbackValue) FromTemplateVariableFallbackValue0(v TemplateVariableFallbackValue0) error
FromTemplateVariableFallbackValue0 overwrites any union data inside the TemplateVariable_FallbackValue as the provided TemplateVariableFallbackValue0
func (*TemplateVariable_FallbackValue) FromTemplateVariableFallbackValue1 ¶
func (t *TemplateVariable_FallbackValue) FromTemplateVariableFallbackValue1(v TemplateVariableFallbackValue1) error
FromTemplateVariableFallbackValue1 overwrites any union data inside the TemplateVariable_FallbackValue as the provided TemplateVariableFallbackValue1
func (*TemplateVariable_FallbackValue) FromTemplateVariableFallbackValue2 ¶
func (t *TemplateVariable_FallbackValue) FromTemplateVariableFallbackValue2(v TemplateVariableFallbackValue2) error
FromTemplateVariableFallbackValue2 overwrites any union data inside the TemplateVariable_FallbackValue as the provided TemplateVariableFallbackValue2
func (*TemplateVariable_FallbackValue) FromTemplateVariableFallbackValue3 ¶
func (t *TemplateVariable_FallbackValue) FromTemplateVariableFallbackValue3(v TemplateVariableFallbackValue3) error
FromTemplateVariableFallbackValue3 overwrites any union data inside the TemplateVariable_FallbackValue as the provided TemplateVariableFallbackValue3
func (*TemplateVariable_FallbackValue) FromTemplateVariableFallbackValue4 ¶
func (t *TemplateVariable_FallbackValue) FromTemplateVariableFallbackValue4(v TemplateVariableFallbackValue4) error
FromTemplateVariableFallbackValue4 overwrites any union data inside the TemplateVariable_FallbackValue as the provided TemplateVariableFallbackValue4
func (TemplateVariable_FallbackValue) MarshalJSON ¶
func (t TemplateVariable_FallbackValue) MarshalJSON() ([]byte, error)
func (*TemplateVariable_FallbackValue) MergeTemplateVariableFallbackValue0 ¶
func (t *TemplateVariable_FallbackValue) MergeTemplateVariableFallbackValue0(v TemplateVariableFallbackValue0) error
MergeTemplateVariableFallbackValue0 performs a merge with any union data inside the TemplateVariable_FallbackValue, using the provided TemplateVariableFallbackValue0
func (*TemplateVariable_FallbackValue) MergeTemplateVariableFallbackValue1 ¶
func (t *TemplateVariable_FallbackValue) MergeTemplateVariableFallbackValue1(v TemplateVariableFallbackValue1) error
MergeTemplateVariableFallbackValue1 performs a merge with any union data inside the TemplateVariable_FallbackValue, using the provided TemplateVariableFallbackValue1
func (*TemplateVariable_FallbackValue) MergeTemplateVariableFallbackValue2 ¶
func (t *TemplateVariable_FallbackValue) MergeTemplateVariableFallbackValue2(v TemplateVariableFallbackValue2) error
MergeTemplateVariableFallbackValue2 performs a merge with any union data inside the TemplateVariable_FallbackValue, using the provided TemplateVariableFallbackValue2
func (*TemplateVariable_FallbackValue) MergeTemplateVariableFallbackValue3 ¶
func (t *TemplateVariable_FallbackValue) MergeTemplateVariableFallbackValue3(v TemplateVariableFallbackValue3) error
MergeTemplateVariableFallbackValue3 performs a merge with any union data inside the TemplateVariable_FallbackValue, using the provided TemplateVariableFallbackValue3
func (*TemplateVariable_FallbackValue) MergeTemplateVariableFallbackValue4 ¶
func (t *TemplateVariable_FallbackValue) MergeTemplateVariableFallbackValue4(v TemplateVariableFallbackValue4) error
MergeTemplateVariableFallbackValue4 performs a merge with any union data inside the TemplateVariable_FallbackValue, using the provided TemplateVariableFallbackValue4
func (*TemplateVariable_FallbackValue) UnmarshalJSON ¶
func (t *TemplateVariable_FallbackValue) UnmarshalJSON(b []byte) error
type TestHandler ¶
type TestHandler struct {
// contains filtered or unexported fields
}
TestHandler is an embeddable Resend-compatible HTTP handler.
func NewHandler ¶
func NewHandler(options ...Option) (*TestHandler, error)
NewHandler builds a Resend-compatible HTTP handler without starting a listener.
func (*TestHandler) Calls ¶
func (h *TestHandler) Calls() *Calls
Calls returns the typed endpoint call journal.
func (*TestHandler) ServeHTTP ¶
func (h *TestHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements http.Handler.
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type UpdateBroadcast200JSONResponse ¶
type UpdateBroadcast200JSONResponse UpdateBroadcastResponseSuccess
func (UpdateBroadcast200JSONResponse) VisitUpdateBroadcastResponse ¶
func (response UpdateBroadcast200JSONResponse) VisitUpdateBroadcastResponse(w http.ResponseWriter) error
type UpdateBroadcastJSONRequestBody ¶
type UpdateBroadcastJSONRequestBody = UpdateBroadcastOptions
UpdateBroadcastJSONRequestBody defines body for UpdateBroadcast for application/json ContentType.
type UpdateBroadcastOptions ¶
type UpdateBroadcastOptions struct {
// AudienceID Use `segment_id` instead. Unique identifier of the audience this broadcast will be sent to.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
AudienceID *string `json:"audience_id,omitempty"`
// From The email address of the sender.
From *string `json:"from,omitempty"`
// HTML The HTML version of the message.
HTML *string `json:"html,omitempty"`
// Name Name of the broadcast.
Name *string `json:"name,omitempty"`
// PreviewText The preview text of the email.
PreviewText *string `json:"preview_text,omitempty"`
// ReplyTo The email addresses to which replies should be sent.
ReplyTo *[]string `json:"reply_to,omitempty"`
// SegmentID Unique identifier of the segment this broadcast will be sent to.
SegmentID *string `json:"segment_id,omitempty"`
// Subject The subject line of the email.
Subject *string `json:"subject,omitempty"`
// Text The plain text version of the message.
Text *string `json:"text,omitempty"`
// TopicID The topic ID that the broadcast will be scoped to.
TopicID *string `json:"topic_id,omitempty"`
}
UpdateBroadcastOptions defines model for UpdateBroadcastOptions.
type UpdateBroadcastRequestObject ¶
type UpdateBroadcastRequestObject struct {
ID string `json:"id"`
Body *UpdateBroadcastJSONRequestBody
}
type UpdateBroadcastResponseFunc ¶
type UpdateBroadcastResponseFunc func(http.ResponseWriter) error
UpdateBroadcastResponseFunc writes a fully custom response for UpdateBroadcast.
func (UpdateBroadcastResponseFunc) VisitUpdateBroadcastResponse ¶
func (f UpdateBroadcastResponseFunc) VisitUpdateBroadcastResponse(w http.ResponseWriter) error
VisitUpdateBroadcastResponse implements UpdateBroadcastResponseObject.
type UpdateBroadcastResponseObject ¶
type UpdateBroadcastResponseObject interface {
VisitUpdateBroadcastResponse(w http.ResponseWriter) error
}
type UpdateBroadcastResponseSuccess ¶
type UpdateBroadcastResponseSuccess struct {
// ID The ID of the broadcast.
//
// Example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
ID *string `json:"id,omitempty"`
// Object The object type of the response.
//
// Example: broadcast
Object *string `json:"object,omitempty"`
}
UpdateBroadcastResponseSuccess defines model for UpdateBroadcastResponseSuccess.
type UpdateBroadcastdefaultJSONResponse ¶
type UpdateBroadcastdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (UpdateBroadcastdefaultJSONResponse) VisitUpdateBroadcastResponse ¶
func (response UpdateBroadcastdefaultJSONResponse) VisitUpdateBroadcastResponse(w http.ResponseWriter) error
type UpdateContact200JSONResponse ¶
type UpdateContact200JSONResponse UpdateContactResponseSuccess
func (UpdateContact200JSONResponse) VisitUpdateContactResponse ¶
func (response UpdateContact200JSONResponse) VisitUpdateContactResponse(w http.ResponseWriter) error
type UpdateContactJSONRequestBody ¶
type UpdateContactJSONRequestBody = UpdateContactOptions
UpdateContactJSONRequestBody defines body for UpdateContact for application/json ContentType.
type UpdateContactOptions ¶
type UpdateContactOptions struct {
// Email Email address of the contact.
//
// Example: steve.wozniak@gmail.com
Email *string `json:"email,omitempty"`
// FirstName First name of the contact.
//
// Example: Steve
FirstName *string `json:"first_name,omitempty"`
// LastName Last name of the contact.
//
// Example: Wozniak
LastName *string `json:"last_name,omitempty"`
// Properties A map of custom property keys and values to update.
Properties *map[string]interface{} `json:"properties,omitempty"`
// Unsubscribed The Contact's global subscription status. If set to true, the contact will be unsubscribed from all Broadcasts.
//
// Example: false
Unsubscribed *bool `json:"unsubscribed,omitempty"`
}
UpdateContactOptions defines model for UpdateContactOptions.
type UpdateContactProperty200JSONResponse ¶
type UpdateContactProperty200JSONResponse UpdateContactPropertyResponseSuccess
func (UpdateContactProperty200JSONResponse) VisitUpdateContactPropertyResponse ¶
func (response UpdateContactProperty200JSONResponse) VisitUpdateContactPropertyResponse(w http.ResponseWriter) error
type UpdateContactPropertyJSONRequestBody ¶
type UpdateContactPropertyJSONRequestBody = UpdateContactPropertyOptions
UpdateContactPropertyJSONRequestBody defines body for UpdateContactProperty for application/json ContentType.
type UpdateContactPropertyOptions ¶
type UpdateContactPropertyOptions struct {
// FallbackValue The default value to use when the property is not set for a contact. Must match the type of the property.
FallbackValue *UpdateContactPropertyOptions_FallbackValue `json:"fallback_value,omitempty"`
}
UpdateContactPropertyOptions defines model for UpdateContactPropertyOptions.
type UpdateContactPropertyOptionsFallbackValue0 ¶
type UpdateContactPropertyOptionsFallbackValue0 = string
UpdateContactPropertyOptionsFallbackValue0 defines model for UpdateContactPropertyOptions.FallbackValue.0.
type UpdateContactPropertyOptionsFallbackValue1 ¶
type UpdateContactPropertyOptionsFallbackValue1 = float32
UpdateContactPropertyOptionsFallbackValue1 defines model for UpdateContactPropertyOptions.FallbackValue.1.
type UpdateContactPropertyOptions_FallbackValue ¶
type UpdateContactPropertyOptions_FallbackValue struct {
// contains filtered or unexported fields
}
UpdateContactPropertyOptions_FallbackValue The default value to use when the property is not set for a contact. Must match the type of the property.
func (UpdateContactPropertyOptions_FallbackValue) AsUpdateContactPropertyOptionsFallbackValue0 ¶
func (t UpdateContactPropertyOptions_FallbackValue) AsUpdateContactPropertyOptionsFallbackValue0() (UpdateContactPropertyOptionsFallbackValue0, error)
AsUpdateContactPropertyOptionsFallbackValue0 returns the union data inside the UpdateContactPropertyOptions_FallbackValue as a UpdateContactPropertyOptionsFallbackValue0
func (UpdateContactPropertyOptions_FallbackValue) AsUpdateContactPropertyOptionsFallbackValue1 ¶
func (t UpdateContactPropertyOptions_FallbackValue) AsUpdateContactPropertyOptionsFallbackValue1() (UpdateContactPropertyOptionsFallbackValue1, error)
AsUpdateContactPropertyOptionsFallbackValue1 returns the union data inside the UpdateContactPropertyOptions_FallbackValue as a UpdateContactPropertyOptionsFallbackValue1
func (*UpdateContactPropertyOptions_FallbackValue) FromUpdateContactPropertyOptionsFallbackValue0 ¶
func (t *UpdateContactPropertyOptions_FallbackValue) FromUpdateContactPropertyOptionsFallbackValue0(v UpdateContactPropertyOptionsFallbackValue0) error
FromUpdateContactPropertyOptionsFallbackValue0 overwrites any union data inside the UpdateContactPropertyOptions_FallbackValue as the provided UpdateContactPropertyOptionsFallbackValue0
func (*UpdateContactPropertyOptions_FallbackValue) FromUpdateContactPropertyOptionsFallbackValue1 ¶
func (t *UpdateContactPropertyOptions_FallbackValue) FromUpdateContactPropertyOptionsFallbackValue1(v UpdateContactPropertyOptionsFallbackValue1) error
FromUpdateContactPropertyOptionsFallbackValue1 overwrites any union data inside the UpdateContactPropertyOptions_FallbackValue as the provided UpdateContactPropertyOptionsFallbackValue1
func (UpdateContactPropertyOptions_FallbackValue) MarshalJSON ¶
func (t UpdateContactPropertyOptions_FallbackValue) MarshalJSON() ([]byte, error)
func (*UpdateContactPropertyOptions_FallbackValue) MergeUpdateContactPropertyOptionsFallbackValue0 ¶
func (t *UpdateContactPropertyOptions_FallbackValue) MergeUpdateContactPropertyOptionsFallbackValue0(v UpdateContactPropertyOptionsFallbackValue0) error
MergeUpdateContactPropertyOptionsFallbackValue0 performs a merge with any union data inside the UpdateContactPropertyOptions_FallbackValue, using the provided UpdateContactPropertyOptionsFallbackValue0
func (*UpdateContactPropertyOptions_FallbackValue) MergeUpdateContactPropertyOptionsFallbackValue1 ¶
func (t *UpdateContactPropertyOptions_FallbackValue) MergeUpdateContactPropertyOptionsFallbackValue1(v UpdateContactPropertyOptionsFallbackValue1) error
MergeUpdateContactPropertyOptionsFallbackValue1 performs a merge with any union data inside the UpdateContactPropertyOptions_FallbackValue, using the provided UpdateContactPropertyOptionsFallbackValue1
func (*UpdateContactPropertyOptions_FallbackValue) UnmarshalJSON ¶
func (t *UpdateContactPropertyOptions_FallbackValue) UnmarshalJSON(b []byte) error
type UpdateContactPropertyRequestObject ¶
type UpdateContactPropertyRequestObject struct {
ID string `json:"id"`
Body *UpdateContactPropertyJSONRequestBody
}
type UpdateContactPropertyResponseFunc ¶
type UpdateContactPropertyResponseFunc func(http.ResponseWriter) error
UpdateContactPropertyResponseFunc writes a fully custom response for UpdateContactProperty.
func (UpdateContactPropertyResponseFunc) VisitUpdateContactPropertyResponse ¶
func (f UpdateContactPropertyResponseFunc) VisitUpdateContactPropertyResponse(w http.ResponseWriter) error
VisitUpdateContactPropertyResponse implements UpdateContactPropertyResponseObject.
type UpdateContactPropertyResponseObject ¶
type UpdateContactPropertyResponseObject interface {
VisitUpdateContactPropertyResponse(w http.ResponseWriter) error
}
type UpdateContactPropertyResponseSuccess ¶
type UpdateContactPropertyResponseSuccess struct {
// ID The ID of the contact property.
//
// Example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
ID *string `json:"id,omitempty"`
// Object The object type.
//
// Example: contact_property
Object *string `json:"object,omitempty"`
}
UpdateContactPropertyResponseSuccess defines model for UpdateContactPropertyResponseSuccess.
type UpdateContactPropertydefaultJSONResponse ¶
type UpdateContactPropertydefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (UpdateContactPropertydefaultJSONResponse) VisitUpdateContactPropertyResponse ¶
func (response UpdateContactPropertydefaultJSONResponse) VisitUpdateContactPropertyResponse(w http.ResponseWriter) error
type UpdateContactRequestObject ¶
type UpdateContactRequestObject struct {
ID string `json:"id"`
Body *UpdateContactJSONRequestBody
}
type UpdateContactResponseFunc ¶
type UpdateContactResponseFunc func(http.ResponseWriter) error
UpdateContactResponseFunc writes a fully custom response for UpdateContact.
func (UpdateContactResponseFunc) VisitUpdateContactResponse ¶
func (f UpdateContactResponseFunc) VisitUpdateContactResponse(w http.ResponseWriter) error
VisitUpdateContactResponse implements UpdateContactResponseObject.
type UpdateContactResponseObject ¶
type UpdateContactResponseObject interface {
VisitUpdateContactResponse(w http.ResponseWriter) error
}
type UpdateContactResponseSuccess ¶
type UpdateContactResponseSuccess struct {
// ID Unique identifier for the updated contact.
//
// Example: 479e3145-dd38-476b-932c-529ceb705947
ID *string `json:"id,omitempty"`
// Object Type of the response object.
//
// Example: contact
Object *string `json:"object,omitempty"`
}
UpdateContactResponseSuccess defines model for UpdateContactResponseSuccess.
type UpdateContactTopics200JSONResponse ¶
type UpdateContactTopics200JSONResponse UpdateContactTopicsResponseSuccess
func (UpdateContactTopics200JSONResponse) VisitUpdateContactTopicsResponse ¶
func (response UpdateContactTopics200JSONResponse) VisitUpdateContactTopicsResponse(w http.ResponseWriter) error
type UpdateContactTopicsJSONRequestBody ¶
type UpdateContactTopicsJSONRequestBody = UpdateContactTopicsOptions
UpdateContactTopicsJSONRequestBody defines body for UpdateContactTopics for application/json ContentType.
type UpdateContactTopicsOptions ¶
type UpdateContactTopicsOptions struct {
Topics []struct {
// ID The ID of the topic.
ID *string `json:"id,omitempty"`
// Subscription The subscription status (opt_in or opt_out).
Subscription *UpdateContactTopicsOptionsTopicsSubscription `json:"subscription,omitempty"`
} `json:"topics"`
}
UpdateContactTopicsOptions defines model for UpdateContactTopicsOptions.
type UpdateContactTopicsOptionsTopicsSubscription ¶
type UpdateContactTopicsOptionsTopicsSubscription string
UpdateContactTopicsOptionsTopicsSubscription The subscription status (opt_in or opt_out).
const ( UpdateContactTopicsOptionsTopicsSubscriptionOptIn UpdateContactTopicsOptionsTopicsSubscription = "opt_in" UpdateContactTopicsOptionsTopicsSubscriptionOptOut UpdateContactTopicsOptionsTopicsSubscription = "opt_out" )
Defines values for UpdateContactTopicsOptionsTopicsSubscription.
func (UpdateContactTopicsOptionsTopicsSubscription) Valid ¶
func (e UpdateContactTopicsOptionsTopicsSubscription) Valid() bool
Valid indicates whether the value is a known member of the UpdateContactTopicsOptionsTopicsSubscription enum.
type UpdateContactTopicsRequestObject ¶
type UpdateContactTopicsRequestObject struct {
ContactID string `json:"contact_id"`
Body *UpdateContactTopicsJSONRequestBody
}
type UpdateContactTopicsResponseFunc ¶
type UpdateContactTopicsResponseFunc func(http.ResponseWriter) error
UpdateContactTopicsResponseFunc writes a fully custom response for UpdateContactTopics.
func (UpdateContactTopicsResponseFunc) VisitUpdateContactTopicsResponse ¶
func (f UpdateContactTopicsResponseFunc) VisitUpdateContactTopicsResponse(w http.ResponseWriter) error
VisitUpdateContactTopicsResponse implements UpdateContactTopicsResponseObject.
type UpdateContactTopicsResponseObject ¶
type UpdateContactTopicsResponseObject interface {
VisitUpdateContactTopicsResponse(w http.ResponseWriter) error
}
type UpdateContactTopicsResponseSuccess ¶
type UpdateContactTopicsResponseSuccess struct {
// ContactID The ID of the contact.
ContactID *string `json:"contact_id,omitempty"`
// Object The object type.
//
// Example: contact_topics
Object *string `json:"object,omitempty"`
// Topics Array of updated topic subscriptions.
Topics *[]struct {
// ID The ID of the topic.
ID *string `json:"id,omitempty"`
// Subscription The subscription status.
Subscription *UpdateContactTopicsResponseSuccessTopicsSubscription `json:"subscription,omitempty"`
} `json:"topics,omitempty"`
}
UpdateContactTopicsResponseSuccess defines model for UpdateContactTopicsResponseSuccess.
type UpdateContactTopicsResponseSuccessTopicsSubscription ¶
type UpdateContactTopicsResponseSuccessTopicsSubscription string
UpdateContactTopicsResponseSuccessTopicsSubscription The subscription status.
const ( UpdateContactTopicsResponseSuccessTopicsSubscriptionOptIn UpdateContactTopicsResponseSuccessTopicsSubscription = "opt_in" UpdateContactTopicsResponseSuccessTopicsSubscriptionOptOut UpdateContactTopicsResponseSuccessTopicsSubscription = "opt_out" )
Defines values for UpdateContactTopicsResponseSuccessTopicsSubscription.
func (UpdateContactTopicsResponseSuccessTopicsSubscription) Valid ¶
func (e UpdateContactTopicsResponseSuccessTopicsSubscription) Valid() bool
Valid indicates whether the value is a known member of the UpdateContactTopicsResponseSuccessTopicsSubscription enum.
type UpdateContactTopicsdefaultJSONResponse ¶
type UpdateContactTopicsdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (UpdateContactTopicsdefaultJSONResponse) VisitUpdateContactTopicsResponse ¶
func (response UpdateContactTopicsdefaultJSONResponse) VisitUpdateContactTopicsResponse(w http.ResponseWriter) error
type UpdateContactdefaultJSONResponse ¶
type UpdateContactdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (UpdateContactdefaultJSONResponse) VisitUpdateContactResponse ¶
func (response UpdateContactdefaultJSONResponse) VisitUpdateContactResponse(w http.ResponseWriter) error
type UpdateDomain200JSONResponse ¶
type UpdateDomain200JSONResponse UpdateDomainResponseSuccess
func (UpdateDomain200JSONResponse) VisitUpdateDomainResponse ¶
func (response UpdateDomain200JSONResponse) VisitUpdateDomainResponse(w http.ResponseWriter) error
type UpdateDomainJSONRequestBody ¶
type UpdateDomainJSONRequestBody = UpdateDomainOptions
UpdateDomainJSONRequestBody defines body for UpdateDomain for application/json ContentType.
type UpdateDomainOptions ¶
type UpdateDomainOptions struct {
// Capabilities Configure the domain capabilities for sending and receiving emails. At least one capability must be enabled.
Capabilities *DomainCapabilities `json:"capabilities,omitempty"`
// ClickTracking Track clicks within the body of each HTML email.
ClickTracking *bool `json:"click_tracking,omitempty"`
// OpenTracking Track the open rate of each email.
OpenTracking *bool `json:"open_tracking,omitempty"`
// TLS enforced | opportunistic.
TLS *string `json:"tls,omitempty"`
}
UpdateDomainOptions defines model for UpdateDomainOptions.
type UpdateDomainRequestObject ¶
type UpdateDomainRequestObject struct {
DomainID string `json:"domain_id"`
Body *UpdateDomainJSONRequestBody
}
type UpdateDomainResponseFunc ¶
type UpdateDomainResponseFunc func(http.ResponseWriter) error
UpdateDomainResponseFunc writes a fully custom response for UpdateDomain.
func (UpdateDomainResponseFunc) VisitUpdateDomainResponse ¶
func (f UpdateDomainResponseFunc) VisitUpdateDomainResponse(w http.ResponseWriter) error
VisitUpdateDomainResponse implements UpdateDomainResponseObject.
type UpdateDomainResponseObject ¶
type UpdateDomainResponseObject interface {
VisitUpdateDomainResponse(w http.ResponseWriter) error
}
type UpdateDomainResponseSuccess ¶
type UpdateDomainResponseSuccess struct {
// ID The ID of the updated domain.
//
// Example: d91cd9bd-1176-453e-8fc1-35364d380206
ID *string `json:"id,omitempty"`
// Object The object type representing the updated domain.
//
// Example: domain
Object *string `json:"object,omitempty"`
}
UpdateDomainResponseSuccess defines model for UpdateDomainResponseSuccess.
type UpdateDomaindefaultJSONResponse ¶
type UpdateDomaindefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (UpdateDomaindefaultJSONResponse) VisitUpdateDomainResponse ¶
func (response UpdateDomaindefaultJSONResponse) VisitUpdateDomainResponse(w http.ResponseWriter) error
type UpdateEmail200JSONResponse ¶
type UpdateEmail200JSONResponse UpdateEmailOptions
func (UpdateEmail200JSONResponse) VisitUpdateEmailResponse ¶
func (response UpdateEmail200JSONResponse) VisitUpdateEmailResponse(w http.ResponseWriter) error
type UpdateEmailOptions ¶
type UpdateEmailOptions struct {
// ScheduledAt Schedule email to be sent later. The date should be in ISO 8601 format.
ScheduledAt *string `json:"scheduled_at,omitempty"`
}
UpdateEmailOptions defines model for UpdateEmailOptions.
type UpdateEmailRequestObject ¶
type UpdateEmailRequestObject struct {
EmailID string `json:"email_id"`
}
type UpdateEmailResponseFunc ¶
type UpdateEmailResponseFunc func(http.ResponseWriter) error
UpdateEmailResponseFunc writes a fully custom response for UpdateEmail.
func (UpdateEmailResponseFunc) VisitUpdateEmailResponse ¶
func (f UpdateEmailResponseFunc) VisitUpdateEmailResponse(w http.ResponseWriter) error
VisitUpdateEmailResponse implements UpdateEmailResponseObject.
type UpdateEmailResponseObject ¶
type UpdateEmailResponseObject interface {
VisitUpdateEmailResponse(w http.ResponseWriter) error
}
type UpdateEmaildefaultJSONResponse ¶
type UpdateEmaildefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (UpdateEmaildefaultJSONResponse) VisitUpdateEmailResponse ¶
func (response UpdateEmaildefaultJSONResponse) VisitUpdateEmailResponse(w http.ResponseWriter) error
type UpdateTemplate200JSONResponse ¶
type UpdateTemplate200JSONResponse UpdateTemplateResponseSuccess
func (UpdateTemplate200JSONResponse) VisitUpdateTemplateResponse ¶
func (response UpdateTemplate200JSONResponse) VisitUpdateTemplateResponse(w http.ResponseWriter) error
type UpdateTemplateJSONRequestBody ¶
type UpdateTemplateJSONRequestBody = UpdateTemplateOptions
UpdateTemplateJSONRequestBody defines body for UpdateTemplate for application/json ContentType.
type UpdateTemplateOptions ¶
type UpdateTemplateOptions struct {
// Alias The alias of the template.
Alias *string `json:"alias,omitempty"`
// From Sender email address. To include a friendly name, use the format "Your Name <sender@domain.com>".
From *string `json:"from,omitempty"`
// HTML The HTML version of the template.
HTML *string `json:"html,omitempty"`
// Name The name of the template.
Name *string `json:"name,omitempty"`
// ReplyTo Reply-to email addresses.
ReplyTo *[]string `json:"reply_to,omitempty"`
// Subject Email subject.
Subject *string `json:"subject,omitempty"`
// Text The plain text version of the template.
Text *string `json:"text,omitempty"`
Variables *[]TemplateVariableInput `json:"variables,omitempty"`
}
UpdateTemplateOptions defines model for UpdateTemplateOptions.
type UpdateTemplateRequestObject ¶
type UpdateTemplateRequestObject struct {
ID string `json:"id"`
Body *UpdateTemplateJSONRequestBody
}
type UpdateTemplateResponseFunc ¶
type UpdateTemplateResponseFunc func(http.ResponseWriter) error
UpdateTemplateResponseFunc writes a fully custom response for UpdateTemplate.
func (UpdateTemplateResponseFunc) VisitUpdateTemplateResponse ¶
func (f UpdateTemplateResponseFunc) VisitUpdateTemplateResponse(w http.ResponseWriter) error
VisitUpdateTemplateResponse implements UpdateTemplateResponseObject.
type UpdateTemplateResponseObject ¶
type UpdateTemplateResponseObject interface {
VisitUpdateTemplateResponse(w http.ResponseWriter) error
}
type UpdateTemplateResponseSuccess ¶
type UpdateTemplateResponseSuccess struct {
// ID The ID of the template.
ID *string `json:"id,omitempty"`
// Object The object type of the response.
//
// Example: template
Object *string `json:"object,omitempty"`
}
UpdateTemplateResponseSuccess defines model for UpdateTemplateResponseSuccess.
type UpdateTemplatedefaultJSONResponse ¶
type UpdateTemplatedefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (UpdateTemplatedefaultJSONResponse) VisitUpdateTemplateResponse ¶
func (response UpdateTemplatedefaultJSONResponse) VisitUpdateTemplateResponse(w http.ResponseWriter) error
type UpdateTopic200JSONResponse ¶
type UpdateTopic200JSONResponse UpdateTopicResponseSuccess
func (UpdateTopic200JSONResponse) VisitUpdateTopicResponse ¶
func (response UpdateTopic200JSONResponse) VisitUpdateTopicResponse(w http.ResponseWriter) error
type UpdateTopicJSONRequestBody ¶
type UpdateTopicJSONRequestBody = UpdateTopicOptions
UpdateTopicJSONRequestBody defines body for UpdateTopic for application/json ContentType.
type UpdateTopicOptions ¶
type UpdateTopicOptions struct {
// Description A description of the topic. Max 200 characters.
Description *string `json:"description,omitempty"`
// Name The name of the topic. Max 50 characters.
Name *string `json:"name,omitempty"`
// Visibility The visibility of the topic.
Visibility *UpdateTopicOptionsVisibility `json:"visibility,omitempty"`
}
UpdateTopicOptions defines model for UpdateTopicOptions.
type UpdateTopicOptionsVisibility ¶
type UpdateTopicOptionsVisibility string
UpdateTopicOptionsVisibility The visibility of the topic.
const ( UpdateTopicOptionsVisibilityPrivate UpdateTopicOptionsVisibility = "private" UpdateTopicOptionsVisibilityPublic UpdateTopicOptionsVisibility = "public" )
Defines values for UpdateTopicOptionsVisibility.
func (UpdateTopicOptionsVisibility) Valid ¶
func (e UpdateTopicOptionsVisibility) Valid() bool
Valid indicates whether the value is a known member of the UpdateTopicOptionsVisibility enum.
type UpdateTopicRequestObject ¶
type UpdateTopicRequestObject struct {
ID string `json:"id"`
Body *UpdateTopicJSONRequestBody
}
type UpdateTopicResponseFunc ¶
type UpdateTopicResponseFunc func(http.ResponseWriter) error
UpdateTopicResponseFunc writes a fully custom response for UpdateTopic.
func (UpdateTopicResponseFunc) VisitUpdateTopicResponse ¶
func (f UpdateTopicResponseFunc) VisitUpdateTopicResponse(w http.ResponseWriter) error
VisitUpdateTopicResponse implements UpdateTopicResponseObject.
type UpdateTopicResponseObject ¶
type UpdateTopicResponseObject interface {
VisitUpdateTopicResponse(w http.ResponseWriter) error
}
type UpdateTopicResponseSuccess ¶
type UpdateTopicResponseSuccess struct {
// ID The ID of the topic.
//
// Example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
ID *string `json:"id,omitempty"`
// Object The object type.
//
// Example: topic
Object *string `json:"object,omitempty"`
}
UpdateTopicResponseSuccess defines model for UpdateTopicResponseSuccess.
type UpdateTopicdefaultJSONResponse ¶
type UpdateTopicdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (UpdateTopicdefaultJSONResponse) VisitUpdateTopicResponse ¶
func (response UpdateTopicdefaultJSONResponse) VisitUpdateTopicResponse(w http.ResponseWriter) error
type UpdateWebhook200JSONResponse ¶
type UpdateWebhook200JSONResponse UpdateWebhookResponse
func (UpdateWebhook200JSONResponse) VisitUpdateWebhookResponse ¶
func (response UpdateWebhook200JSONResponse) VisitUpdateWebhookResponse(w http.ResponseWriter) error
type UpdateWebhookJSONRequestBody ¶
type UpdateWebhookJSONRequestBody = UpdateWebhookRequest
UpdateWebhookJSONRequestBody defines body for UpdateWebhook for application/json ContentType.
type UpdateWebhookRequest ¶
type UpdateWebhookRequest struct {
// Endpoint The URL where webhook events will be sent.
//
// Example: https://webhook.example.com/new-handler
Endpoint *string `json:"endpoint,omitempty"`
// Events Array of event types to subscribe to.
//
// Example: ["email.sent","email.delivered"]
Events *[]string `json:"events,omitempty"`
// Status The status of the webhook.
//
// Example: enabled
Status *UpdateWebhookRequestStatus `json:"status,omitempty"`
}
UpdateWebhookRequest defines model for UpdateWebhookRequest.
type UpdateWebhookRequestObject ¶
type UpdateWebhookRequestObject struct {
WebhookID openapi_types.UUID `json:"webhook_id"`
Body *UpdateWebhookJSONRequestBody
}
type UpdateWebhookRequestStatus ¶
type UpdateWebhookRequestStatus string
UpdateWebhookRequestStatus The status of the webhook.
Example: enabled
const ( UpdateWebhookRequestStatusDisabled UpdateWebhookRequestStatus = "disabled" UpdateWebhookRequestStatusEnabled UpdateWebhookRequestStatus = "enabled" )
Defines values for UpdateWebhookRequestStatus.
func (UpdateWebhookRequestStatus) Valid ¶
func (e UpdateWebhookRequestStatus) Valid() bool
Valid indicates whether the value is a known member of the UpdateWebhookRequestStatus enum.
type UpdateWebhookResponse ¶
type UpdateWebhookResponse struct {
// ID The ID of the updated webhook.
//
// Example: 479e3145-dd38-476b-932c-529ceb705947
ID *openapi_types.UUID `json:"id,omitempty"`
// Object The type of object.
//
// Example: webhook
Object *string `json:"object,omitempty"`
}
UpdateWebhookResponse defines model for UpdateWebhookResponse.
type UpdateWebhookResponseFunc ¶
type UpdateWebhookResponseFunc func(http.ResponseWriter) error
UpdateWebhookResponseFunc writes a fully custom response for UpdateWebhook.
func (UpdateWebhookResponseFunc) VisitUpdateWebhookResponse ¶
func (f UpdateWebhookResponseFunc) VisitUpdateWebhookResponse(w http.ResponseWriter) error
VisitUpdateWebhookResponse implements UpdateWebhookResponseObject.
type UpdateWebhookResponseObject ¶
type UpdateWebhookResponseObject interface {
VisitUpdateWebhookResponse(w http.ResponseWriter) error
}
type UpdateWebhookdefaultJSONResponse ¶
type UpdateWebhookdefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (UpdateWebhookdefaultJSONResponse) VisitUpdateWebhookResponse ¶
func (response UpdateWebhookdefaultJSONResponse) VisitUpdateWebhookResponse(w http.ResponseWriter) error
type VerifyDomain200JSONResponse ¶
type VerifyDomain200JSONResponse VerifyDomainResponse
func (VerifyDomain200JSONResponse) VisitVerifyDomainResponse ¶
func (response VerifyDomain200JSONResponse) VisitVerifyDomainResponse(w http.ResponseWriter) error
type VerifyDomainRequestObject ¶
type VerifyDomainRequestObject struct {
DomainID string `json:"domain_id"`
}
type VerifyDomainResponse ¶
type VerifyDomainResponse struct {
// ID The ID of the domain.
//
// Example: d91cd9bd-1176-453e-8fc1-35364d380206
ID *string `json:"id,omitempty"`
// Object The type of object.
//
// Example: domain
Object *string `json:"object,omitempty"`
}
VerifyDomainResponse defines model for VerifyDomainResponse.
type VerifyDomainResponseFunc ¶
type VerifyDomainResponseFunc func(http.ResponseWriter) error
VerifyDomainResponseFunc writes a fully custom response for VerifyDomain.
func (VerifyDomainResponseFunc) VisitVerifyDomainResponse ¶
func (f VerifyDomainResponseFunc) VisitVerifyDomainResponse(w http.ResponseWriter) error
VisitVerifyDomainResponse implements VerifyDomainResponseObject.
type VerifyDomainResponseObject ¶
type VerifyDomainResponseObject interface {
VisitVerifyDomainResponse(w http.ResponseWriter) error
}
type VerifyDomaindefaultJSONResponse ¶
type VerifyDomaindefaultJSONResponse struct {
Body ResendError
StatusCode int
}
func (VerifyDomaindefaultJSONResponse) VisitVerifyDomainResponse ¶
func (response VerifyDomaindefaultJSONResponse) VisitVerifyDomainResponse(w http.ResponseWriter) error
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
atomicfile
Package atomicfile provides the file replacement used by repository tools.
|
Package atomicfile provides the file replacement used by repository tools. |
|
cmd/genglue
command
|
|
|
cmd/syncspec
command
|