Documentation ¶
Index ¶
- Variables
- func AttachmentCount(ctx context.Context, db database.Querier) (int, error)
- func AttachmentGet(ctx context.Context, db database.Querier, id int64) (models.Attachment, error)
- func AttachmentList(ctx context.Context, db database.Querier, page pagination.Page, ...) (models.DTOAttachmentListResult, error)
- func AttachmentListByMessage(ctx context.Context, db database.Querier, messageID int64) ([]models.Attachment, error)
- func AttachmentListOrphan(ctx context.Context, db database.Querier, limit int) ([]models.Attachment, error)
- func AttachmentRemove(ctx context.Context, db database.Querier, id int64) error
- func EndpointDelete(ctx context.Context, db database.Querier, id int64) error
- func EndpointGet(ctx context.Context, db database.Querier, id int64) (models.Endpoint, error)
- func EndpointList(ctx context.Context, db database.Querier) ([]models.Endpoint, error)
- func EnvelopeCount(ctx context.Context, db database.Querier) (int, error)
- func EnvelopeCreate(ctx context.Context, db database.Querier, msg models.Message, ...) (int64, error)
- func EnvelopeDelete(ctx context.Context, db database.Querier, id int64) error
- func EnvelopeDrop(ctx context.Context, db database.Querier) (int64, error)
- func EnvelopeGet(ctx context.Context, db database.Querier, id int64) (models.Envelope, error)
- func EnvelopeList(ctx context.Context, db database.Querier, page pagination.Page, ...) (models.DTOEnvelopeListResult, error)
- func EnvelopeTrim(ctx context.Context, db database.Querier, age time.Time, keep int) (int64, error)
- func InternalSync(ctx context.Context, db database.Querier, endpoints []models.Endpoint, ...) error
- func MailmanDequeue(ctx context.Context, db database.Querier) (int64, error)
- func MailmanEnqueue(ctx context.Context, db database.Querier, envelopeID int64) error
- func MessageGet(ctx context.Context, db database.Querier, id int64) (models.Message, error)
- func MessageHTMLGet(ctx context.Context, db database.Querier, id int64) (string, error)
- func RuleCreate(ctx context.Context, db database.Querier, rule models.Rule, endpoints []int64) (int64, error)
- func RuleDelete(ctx context.Context, db database.Querier, id int64) error
- func RuleEndpointsGet(ctx context.Context, db database.Querier, id int64) (models.RuleEndpoints, error)
- func RuleEndpointsList(ctx context.Context, db database.Querier) ([]models.RuleEndpoints, error)
- func RuleEndpointsSet(ctx context.Context, db database.Querier, ruleID int64, endpointIDs []int64) error
- func RuleGet(ctx context.Context, db database.Querier, id int64) (models.Rule, error)
- func RuleList(ctx context.Context, db database.Querier) ([]models.Rule, error)
- func RuleUpdate(ctx context.Context, db database.Querier, rule models.Rule) error
- func Size(ctx context.Context, db database.Querier) (int64, error)
- func TraceCreate(ctx context.Context, db database.Querier, r models.Trace) (int64, error)
- func TraceDrop(ctx context.Context, db database.Querier) (int64, error)
- func TraceList(ctx context.Context, db database.Querier, page pagination.Page, ...) (models.DTOTraceListResult, error)
- func TraceTrim(ctx context.Context, db database.Querier, age time.Time) (int64, error)
- func Vacuum(ctx context.Context, db database.Querier) error
- type TraceStore
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoRows = qrm.ErrNoRows
View Source
var ErrNotImplemented = fmt.Errorf("not implemented")
Functions ¶
func AttachmentGet ¶
func AttachmentList ¶
func AttachmentList(ctx context.Context, db database.Querier, page pagination.Page, req models.DTOAttachmentListRequest) (models.DTOAttachmentListResult, error)
func AttachmentListByMessage ¶
func AttachmentListOrphan ¶
func AttachmentRemove ¶
AttachmentRemove should only be called when it's MessageID is null and the associated file has been deleted from the FileStore.
func EndpointGet ¶
func EndpointList ¶
func EnvelopeCreate ¶
func EnvelopeGet ¶
func EnvelopeList ¶
func EnvelopeList(ctx context.Context, db database.Querier, page pagination.Page, req models.DTOEnvelopeListRequest) (models.DTOEnvelopeListResult, error)
func EnvelopeTrim ¶
func InternalSync ¶
func MailmanEnqueue ¶
func MessageGet ¶
func MessageHTMLGet ¶
func RuleCreate ¶
func RuleEndpointsGet ¶
func RuleEndpointsList ¶
func RuleEndpointsSet ¶
func TraceCreate ¶
func TraceList ¶
func TraceList(ctx context.Context, db database.Querier, page pagination.Page, req models.DTOTraceListRequest) (models.DTOTraceListResult, error)
Types ¶
type TraceStore ¶
type TraceStore struct {
// contains filtered or unexported fields
}
func NewTraceStore ¶
func NewTraceStore(db database.Querier) TraceStore
Click to show internal directories.
Click to hide internal directories.