Versions in this module Expand all Collapse all v0 v0.12.1 Jul 25, 2023 v0.12.0 Jul 25, 2023 v0.11.2 Jul 23, 2023 v0.11.1 Jul 21, 2023 v0.11.0 Jul 21, 2023 Changes in this version + type Attachment struct + Extension string + ID int64 + MessageID sql.NullInt64 + Mime string + Name string + type DBTX interface + ExecContext func(context.Context, string, ...interface{}) (sql.Result, error) + PrepareContext func(context.Context, string) (*sql.Stmt, error) + QueryContext func(context.Context, string, ...interface{}) (*sql.Rows, error) + QueryRowContext func(context.Context, string, ...interface{}) *sql.Row + type DeleteEnvelopeUntilCountParams struct + CreatedAt time.Time + Limit int64 + type Endpoint struct + AttachmentDisable bool + BodyTemplate string + Config interface{} + CreatedAt time.Time + ID int64 + Internal bool + InternalID string + Kind string + Name string + TextDisable bool + UpdatedAt time.Time + type Message struct + CreatedAt time.Time + Date time.Time + From string + Html string + ID int64 + Subject string + Text string + To interface{} + type Queries struct + func New(db DBTX) *Queries + func (q *Queries) DeleteEnvelopeOlderThan(ctx context.Context, createdAt time.Time) (int64, error) + func (q *Queries) DeleteEnvelopeUntilCount(ctx context.Context, arg DeleteEnvelopeUntilCountParams) (int64, error) + func (q *Queries) GetEnvelopeMessageHTML(ctx context.Context, id int64) (string, error) + func (q *Queries) IsRuleInternal(ctx context.Context, id int64) (bool, error) + func (q *Queries) UpsertInternalEndpoint(ctx context.Context, arg UpsertInternalEndpointParams) error + func (q *Queries) UpsertInternalRule(ctx context.Context, arg UpsertInternalRuleParams) error + func (q *Queries) UpsertInternalRuleToEndpoint(ctx context.Context, arg UpsertInternalRuleToEndpointParams) (int64, error) + func (q *Queries) WithTx(tx *sql.Tx) *Queries + type Rule struct + CreatedAt time.Time + Enable bool + Expression string + ID int64 + Internal bool + InternalID string + Name string + UpdatedAt time.Time + type RulesToEndpoint struct + CreatedAt time.Time + EndpointID string + Internal bool + RuleID int64 + UpdatedAt time.Time + type UpsertInternalEndpointParams struct + AttachmentDisable bool + BodyTemplate string + Config interface{} + InternalID string + Kind string + Name string + TextDisable bool + UpdatedAt time.Time + type UpsertInternalRuleParams struct + Enable bool + Expression string + InternalID string + Name string + UpdatedAt time.Time + type UpsertInternalRuleToEndpointParams struct + InternalID string + InternalID_2 string + UpdatedAt time.Time