Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorInvalidDisposition = errors.New("invalid disposition") DispositionAttachments = "attachments" DispositionInlines = "inlines" DispositionOthers = "others" )
Functions ¶
Types ¶
type GetEmailContentResult ¶ added in v1.4.0
type GetEmailResult ¶ added in v1.4.0
type S3DeleteObjectAPI ¶
type S3DeleteObjectAPI interface {
DeleteObject(ctx context.Context, params *s3.DeleteObjectInput, optFns ...func(*s3.Options)) (*s3.DeleteObjectOutput, error)
}
S3DeleteObjectAPI defines set of API required by DeleteEmail functions
type S3GetObjectAPI ¶
type S3GetObjectAPI interface {
GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error)
}
S3GetObjectAPI defines set of API required by GetEmail functions
type S3Storage ¶
type S3Storage interface { GetEmail(ctx context.Context, api S3GetObjectAPI, messageID string) (*GetEmailResult, error) DeleteEmail(ctx context.Context, api S3DeleteObjectAPI, messageID string) error GetEmailRaw(ctx context.Context, api S3GetObjectAPI, messageID string) ([]byte, error) GetEmailContent(ctx context.Context, api S3GetObjectAPI, messageID, disposition, contentID string) (*GetEmailContentResult, error) }
S3Storage is an interface that defines required S3 functions
var S3 S3Storage = s3Storage{}
S3 holds functions that handles S3 related operations
Click to show internal directories.
Click to hide internal directories.