Documentation
¶
Index ¶
Constants ¶
View Source
const InvalidEmail = "<>InvalidEmail<>"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notify ¶
type Notify struct {
ReplyTo string `json:"reply_to"`
Subject string `json:"subject"`
Text string `json:"text"`
RawHTML string `json:"html"`
ParsedHTML postal.HTML
KindID string `json:"kind_id"`
KindDescription string
SourceDescription string
Errors []string
To string `json:"to"`
}
func (*Notify) ValidateEmailRequest ¶
func (*Notify) ValidateGUIDRequest ¶
type ParseError ¶
type ParseError struct{}
func (ParseError) Error ¶
func (err ParseError) Error() string
type Registration ¶
type Registration struct {
SourceDescription string `json:"source_description"`
Kinds []models.Kind `json:"kinds"`
IncludesKinds bool
}
func NewRegistration ¶
func NewRegistration(body io.Reader) (Registration, error)
func (Registration) Validate ¶
func (registration Registration) Validate() error
type Template ¶
type TemplateUpdateError ¶
type TemplateUpdateError struct{}
func (TemplateUpdateError) Error ¶
func (err TemplateUpdateError) Error() string
type ValidationError ¶
type ValidationError []string
func (ValidationError) Error ¶
func (err ValidationError) Error() string
func (ValidationError) Errors ¶
func (err ValidationError) Errors() []string
Click to show internal directories.
Click to hide internal directories.