Documentation ¶
Index ¶
- Variables
- type App
- func (a App) AttachmentGet(ctx context.Context, id int64) (models.Attachment, error)
- func (a App) AttachmentList(ctx context.Context, page pagination.Page, req models.DTOAttachmentListRequest) (models.DTOAttachmentListResult, error)
- func (a App) AttachmentOrphanDelete(ctx context.Context, tracer trace.Tracer) error
- func (a App) AuthHTTPAnonymous() bool
- func (a App) AuthHTTPLogin(ctx context.Context, username, password string) (models.User, error)
- func (a App) AuthSMTPAnonymous() bool
- func (a App) AuthSMTPLogin(ctx context.Context, username, password string) error
- func (a App) DatabaseVacuum(ctx context.Context) error
- func (a App) EndpointList(ctx context.Context) ([]models.Endpoint, error)
- func (a App) EndpointTest(ctx context.Context, id int64) error
- func (a App) EnvelopeCount(ctx context.Context) (int, error)
- func (a App) EnvelopeCreate(ctx context.Context, dtoMsg models.DTOMessageCreate, ...) (int64, error)
- func (a App) EnvelopeDelete(ctx context.Context, id int64) error
- func (a App) EnvelopeDrop(ctx context.Context) error
- func (a App) EnvelopeGet(ctx context.Context, id int64) (models.Envelope, error)
- func (a App) EnvelopeList(ctx context.Context, page pagination.Page, req models.DTOEnvelopeListRequest) (models.DTOEnvelopeListResult, error)
- func (a App) EnvelopeSend(ctx context.Context, envelopeID int64, endpointID int64) error
- func (a App) MailmanDequeue(ctx context.Context) (*models.Envelope, error)
- func (a App) MailmanEnqueue(ctx context.Context, envelopeID int64) error
- func (a App) MessageHTMLGet(ctx context.Context, id int64) (string, error)
- func (a App) RetentionPolicyGet(ctx context.Context) models.ConfigRetentionPolicy
- func (a App) RetentionPolicyRun(ctx context.Context, tracer trace.Tracer) error
- func (a App) RuleCreate(ctx context.Context, req models.DTORuleCreate) (int64, error)
- func (a App) RuleDelete(ctx context.Context, id int64) error
- func (a App) RuleEndpointsGet(ctx context.Context, id int64) (models.RuleEndpoints, error)
- func (a App) RuleEndpointsList(ctx context.Context) ([]models.RuleEndpoints, error)
- func (App) RuleExpressionCheck(ctx context.Context, expression string) error
- func (a App) RuleGet(ctx context.Context, id int64) (models.Rule, error)
- func (a App) RuleList(ctx context.Context) ([]models.Rule, error)
- func (a App) RuleUpdate(ctx context.Context, req models.DTORuleUpdate) error
- func (a App) StorageGet(ctx context.Context) (models.Storage, error)
- func (a App) TraceDrop(ctx context.Context) error
- func (a App) TraceList(ctx context.Context, page pagination.Page, req models.DTOTraceListRequest) (models.DTOTraceListResult, error)
- func (a App) Tracer(source string) trace.Tracer
- type FileStore
- type WebTestFileStore
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorLogin = fmt.Errorf("login invalid")
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (App) AttachmentGet ¶
func (App) AttachmentList ¶
func (a App) AttachmentList(ctx context.Context, page pagination.Page, req models.DTOAttachmentListRequest) (models.DTOAttachmentListResult, error)
func (App) AttachmentOrphanDelete ¶
func (App) AuthHTTPAnonymous ¶
AuthHTTPAnonymous checks if anonymous access is allowed.
func (App) AuthHTTPLogin ¶
func (App) AuthSMTPAnonymous ¶
func (App) AuthSMTPLogin ¶
func (App) DatabaseVacuum ¶
DatabaseVacuum implements core.App.
func (App) EnvelopeCreate ¶
func (a App) EnvelopeCreate(ctx context.Context, dtoMsg models.DTOMessageCreate, dtoDatts []models.DTOAttachmentCreate) (int64, error)
func (App) EnvelopeGet ¶
func (App) EnvelopeList ¶
func (a App) EnvelopeList(ctx context.Context, page pagination.Page, req models.DTOEnvelopeListRequest) (models.DTOEnvelopeListResult, error)
func (App) EnvelopeSend ¶
func (App) MailmanDequeue ¶
func (App) MailmanEnqueue ¶
func (App) MessageHTMLGet ¶
func (App) RetentionPolicyGet ¶
func (a App) RetentionPolicyGet(ctx context.Context) models.ConfigRetentionPolicy
func (App) RetentionPolicyRun ¶
func (App) RuleCreate ¶
func (App) RuleEndpointsGet ¶
func (App) RuleEndpointsList ¶
func (App) RuleExpressionCheck ¶
func (App) RuleUpdate ¶
func (App) TraceList ¶
func (a App) TraceList(ctx context.Context, page pagination.Page, req models.DTOTraceListRequest) (models.DTOTraceListResult, error)
type FileStore ¶
type FileStore interface { Create(ctx context.Context, att models.Attachment, data io.Reader) error Remove(ctx context.Context, att models.Attachment) error Size(ctx context.Context) (int64, error) Trim(ctx context.Context, size int64, minAge time.Time) (int, error) Reader(ctx context.Context, att models.Attachment) (io.ReadCloser, error) Path(ctx context.Context, att models.Attachment) (string, error) }
type WebTestFileStore ¶
type WebTestFileStore struct {
// contains filtered or unexported fields
}
WebTestFileStore is used for testing endpoints.
func NewWebTestFileStore ¶
func NewWebTestFileStore(name, url string) WebTestFileStore
func (WebTestFileStore) Path ¶
func (w WebTestFileStore) Path(ctx context.Context, att models.Attachment) (string, error)
func (WebTestFileStore) Reader ¶
func (w WebTestFileStore) Reader(ctx context.Context, att models.Attachment) (io.ReadCloser, error)
Click to show internal directories.
Click to hide internal directories.