Documentation ¶
Index ¶
Constants ¶
View Source
const ServiceID = "smtp/endpoint"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AssertRequest ¶
type AssertRequest struct { DescriptionTemplate string Expect []*UserMessage `required:"true" description:"expected user messagesByUser"` }
AssertRequest represents a log assert request
func (*AssertRequest) Init ¶
func (r *AssertRequest) Init() error
type AssertResponse ¶
type AssertResponse struct {
Validations []*assertly.Validation
}
AssertResponse represents a smtp message assert response
func (*AssertResponse) Assertion ¶
func (r *AssertResponse) Assertion() []*assertly.Validation
Assertion returns description with validation slice
type ListenRequest ¶
type ListenRequest struct { ServerName string Port int EnableTLS bool MaxBodySize int Users []*User CertLocation string Debug bool }
ListenRequest represents a new listen request
func (*ListenRequest) Init ¶
func (r *ListenRequest) Init() error
func (*ListenRequest) Validate ¶
func (r *ListenRequest) Validate() error
type Message ¶
type Message struct { From string To []string Subject string Header map[string]string Raw string Body string }
Message represent an email
type Messages ¶
Messages represents a FIFO message collection grouped by user
func NewMessages ¶
func NewMessages() *Messages
NewMessages returns a new FIFO message collection by user
type UserMessage ¶
UserMessage represents desired user message
Click to show internal directories.
Click to hide internal directories.