Documentation
¶
Index ¶
- Constants
- Variables
- func NewDTOEnvelopeField(s string) dtoEnvelopeField
- type Attachment
- type Auth
- type Config
- type ConfigRetentionPolicy
- type DTOAttachmentCreate
- type DTOAttachmentListRequest
- type DTOAttachmentListResult
- type DTOEndpointCreate
- type DTOEndpointUpdate
- type DTOEnvelopeListRequest
- type DTOEnvelopeListResult
- type DTOMessageCreate
- type DTORuleCreate
- type DTORuleUpdate
- type DTOTraceListRequest
- type DTOTraceListResult
- type DataAttachment
- type Endpoint
- type EndpointConfig
- type EndpointSchema
- type EndpointSchemaField
- type EndpointSchemaItem
- type Envelope
- type EventEnvelopeCreated
- type EventEnvelopeDeleted
- type EventMailmanEnqueued
- type Field
- type FieldError
- type Message
- type MessageTo
- type Rule
- type RuleEndpoints
- type Storage
- type Time
- type Trace
- type TraceData
- type TraceDataKV
- type TraceLevel
- type User
Constants ¶
View Source
const ( DTOEnvelopeFieldCreatedAt = "created_at" DTOEnvelopeFieldFrom = "from" DTOEnvelopeFieldSubject = "subject" )
View Source
const EndpointBodyTemplate = "{{ .Message.Text }}"
View Source
const EndpointTitleTemplate = "{{ .Message.Subject }}"
Variables ¶
Functions ¶
func NewDTOEnvelopeField ¶ added in v0.13.0
func NewDTOEnvelopeField(s string) dtoEnvelopeField
Types ¶
type Attachment ¶ added in v0.13.0
type Attachment struct {
ID int64 `sql:"primary_key"`
MessageID int64
Name string
Mime string
Extension string
}
func (Attachment) FileName ¶ added in v0.13.0
func (a Attachment) FileName() string
func (Attachment) IsImage ¶ added in v0.13.0
func (a Attachment) IsImage() bool
type Config ¶ added in v0.12.0
type Config struct {
RetentionPolicy ConfigRetentionPolicy
AuthSMTP Auth
AuthHTTP Auth
}
type ConfigRetentionPolicy ¶ added in v0.13.0
type ConfigRetentionPolicy struct {
MinAge time.Duration
EnvelopeCount *int
EnvelopeAge *time.Duration
AttachmentSize *int64
TraceAge *time.Duration
}
func (ConfigRetentionPolicy) EnvelopeAgeTime ¶ added in v0.13.0
func (p ConfigRetentionPolicy) EnvelopeAgeTime() time.Time
func (ConfigRetentionPolicy) MinAgeTime ¶ added in v0.13.0
func (p ConfigRetentionPolicy) MinAgeTime() time.Time
type DTOAttachmentCreate ¶ added in v0.13.0
type DTOAttachmentListRequest ¶ added in v0.13.0
type DTOAttachmentListRequest struct {
Ascending bool
}
type DTOAttachmentListResult ¶ added in v0.13.0
type DTOAttachmentListResult struct {
PageResult pagination.PageResult
Attachments []Attachment
}
type DTOEndpointCreate ¶ added in v0.14.0
type DTOEndpointUpdate ¶ added in v0.14.0
type DTOEnvelopeListRequest ¶ added in v0.13.0
type DTOEnvelopeListResult ¶ added in v0.13.0
type DTOEnvelopeListResult struct {
PageResult pagination.PageResult
Envelopes []Envelope
}
type DTOMessageCreate ¶ added in v0.13.0
type DTORuleCreate ¶ added in v0.13.0
type DTORuleUpdate ¶ added in v0.13.0
type DTOTraceListRequest ¶ added in v0.13.0
type DTOTraceListRequest struct {
Ascending bool
}
type DTOTraceListResult ¶ added in v0.13.0
type DTOTraceListResult struct {
PageResult pagination.PageResult
Traces [][]Trace
}
type DataAttachment ¶ added in v0.13.0
type DataAttachment struct {
io.Reader
Attachment Attachment
}
type EndpointConfig ¶ added in v0.13.0
func (*EndpointConfig) Scan ¶ added in v0.13.0
func (dst *EndpointConfig) Scan(src any) error
func (EndpointConfig) Str ¶ added in v0.13.0
func (c EndpointConfig) Str(key string) string
func (EndpointConfig) StrSlice ¶ added in v0.13.0
func (c EndpointConfig) StrSlice(key string) []string
type EndpointSchema ¶ added in v0.14.0
type EndpointSchema []EndpointSchemaItem
func (EndpointSchema) Filter ¶ added in v0.14.0
func (e EndpointSchema) Filter(kind string, config EndpointConfig) EndpointConfig
func (EndpointSchema) Get ¶ added in v0.14.0
func (e EndpointSchema) Get(kind string) EndpointSchemaItem
type EndpointSchemaField ¶ added in v0.14.0
type EndpointSchemaItem ¶ added in v0.14.0
type EndpointSchemaItem struct {
Name string
Kind string
Fields []EndpointSchemaField
}
func (EndpointSchemaItem) Filter ¶ added in v0.14.0
func (e EndpointSchemaItem) Filter(config EndpointConfig) EndpointConfig
type Envelope ¶ added in v0.13.0
type Envelope struct {
Message Message
Attachments []Attachment
}
type EventEnvelopeCreated ¶ added in v0.13.0
type EventEnvelopeCreated struct {
ID int64
}
type EventEnvelopeDeleted ¶ added in v0.13.0
type EventEnvelopeDeleted struct {
}
type EventMailmanEnqueued ¶ added in v0.13.0
type EventMailmanEnqueued struct {
}
type FieldError ¶ added in v0.14.0
func (FieldError) Error ¶ added in v0.14.0
func (e FieldError) Error() string
func (FieldError) Unwrap ¶ added in v0.14.0
func (e FieldError) Unwrap() error
type RuleEndpoints ¶ added in v0.13.0
type TraceData ¶ added in v0.13.0
type TraceData []TraceDataKV
type TraceDataKV ¶ added in v0.13.0
func (TraceDataKV) ValueInt64 ¶ added in v0.13.0
func (t TraceDataKV) ValueInt64() int64
type TraceLevel ¶ added in v0.13.0
type TraceLevel string
Click to show internal directories.
Click to hide internal directories.