Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateInput ¶
type CreateInput struct {
From string `json:"from"`
To []string `json:"to"`
Cc []string `json:"cc"`
Subject string `json:"subject"`
Body string `json:"body"`
HTML bool `json:"html"`
}
func (CreateInput) Validate ¶
func (input CreateInput) Validate() error
type CreateOutput ¶
type GetOutput ¶
type GetOutput struct {
ID int32 `json:"id"`
From string `json:"from"`
To []string `json:"to"`
Cc []string `json:"cc"`
Subject string `json:"subject"`
Body string `json:"body"`
HTML bool `json:"html"`
Status string `json:"status"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
RetryAt time.Time `json:"retryAt"`
Try int16 `json:"try"`
}
type Handler ¶
func NewHandler ¶
func NewHandler(repo db.Repository) Handler
Click to show internal directories.
Click to hide internal directories.