database

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddAccountParams

type AddAccountParams struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type AddAliasLikeParams

type AddAliasLikeParams struct {
	Address string `json:"address"`
	Goto    string `json:"goto"`
}

type AddAliasParams

type AddAliasParams struct {
	Address string `json:"address"`
	Goto    string `json:"goto"`
}

type AddAliasRegexParams

type AddAliasRegexParams struct {
	Address string `json:"address"`
	Goto    string `json:"goto"`
}

type AddDelegateRouteParams

type AddDelegateRouteParams struct {
	Address  string `json:"address"`
	Delegate string `json:"delegate"`
}

type AddDomainAliasLikeParams

type AddDomainAliasLikeParams struct {
	Domain string `json:"domain"`
	Goto   string `json:"goto"`
}

type AddDomainAliasParams

type AddDomainAliasParams struct {
	Domain string `json:"domain"`
	Goto   string `json:"goto"`
}

type AddDomainAliasRegexParams

type AddDomainAliasRegexParams struct {
	Domain string `json:"domain"`
	Goto   string `json:"goto"`
}

type AddMailboxParams

type AddMailboxParams struct {
	Username string `json:"username"`
	Maildir  string `json:"maildir"`
	Quota    int64  `json:"quota"`
}

type AddMasterAccountParams

type AddMasterAccountParams struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type AddProtectedReceiveParams

type AddProtectedReceiveParams struct {
	Address string `json:"address"`
	Access  string `json:"access"`
}

type AddSMTPSendRouteParams

type AddSMTPSendRouteParams struct {
	Address string         `json:"address"`
	Start   sql.NullString `json:"start"`
}

type AddSenderAliasParams

type AddSenderAliasParams struct {
	Address string `json:"address"`
	Allowed string `json:"allowed"`
}

type AddUserAliasLikeParams

type AddUserAliasLikeParams struct {
	User string `json:"user"`
	Goto string `json:"goto"`
}

type AddUserAliasParams

type AddUserAliasParams struct {
	User string `json:"user"`
	Goto string `json:"goto"`
}

type AddUserAliasRegexParams

type AddUserAliasRegexParams struct {
	User string `json:"user"`
	Goto string `json:"goto"`
}

type AddWildcardAliasParams

type AddWildcardAliasParams struct {
	Address string `json:"address"`
	Goto    string `json:"goto"`
}

type Aliasdomainmap

type Aliasdomainmap struct {
	Domain string               `json:"domain"`
	Goto   string               `json:"goto"`
	Active AliasdomainmapActive `json:"active"`
	Etype  AliasdomainmapEtype  `json:"etype"`
}

type AliasdomainmapActive

type AliasdomainmapActive string
const (
	AliasdomainmapActiveFalse    AliasdomainmapActive = "false"
	AliasdomainmapActiveTrue     AliasdomainmapActive = "true"
	AliasdomainmapActiveCatchAll AliasdomainmapActive = "catch_all"
)

func (*AliasdomainmapActive) Scan

func (e *AliasdomainmapActive) Scan(src interface{}) error

type AliasdomainmapEtype

type AliasdomainmapEtype string
const (
	AliasdomainmapEtypePlain   AliasdomainmapEtype = "plain"
	AliasdomainmapEtypePattern AliasdomainmapEtype = "pattern"
	AliasdomainmapEtypeRegex   AliasdomainmapEtype = "regex"
)

func (*AliasdomainmapEtype) Scan

func (e *AliasdomainmapEtype) Scan(src interface{}) error

type Aliasmap

type Aliasmap struct {
	Address string         `json:"address"`
	Goto    string         `json:"goto"`
	Active  AliasmapActive `json:"active"`
	Etype   AliasmapEtype  `json:"etype"`
}

type AliasmapActive

type AliasmapActive string
const (
	AliasmapActiveFalse AliasmapActive = "false"
	AliasmapActiveTrue  AliasmapActive = "true"
)

func (*AliasmapActive) Scan

func (e *AliasmapActive) Scan(src interface{}) error

type AliasmapEtype

type AliasmapEtype string
const (
	AliasmapEtypePlain   AliasmapEtype = "plain"
	AliasmapEtypePattern AliasmapEtype = "pattern"
	AliasmapEtypeRegex   AliasmapEtype = "regex"
)

func (*AliasmapEtype) Scan

func (e *AliasmapEtype) Scan(src interface{}) error

type Aliasusermap

type Aliasusermap struct {
	User   string             `json:"user"`
	Goto   string             `json:"goto"`
	Active AliasusermapActive `json:"active"`
	Etype  AliasusermapEtype  `json:"etype"`
}

type AliasusermapActive

type AliasusermapActive string
const (
	AliasusermapActiveFalse    AliasusermapActive = "false"
	AliasusermapActiveTrue     AliasusermapActive = "true"
	AliasusermapActiveCatchAll AliasusermapActive = "catch_all"
)

func (*AliasusermapActive) Scan

func (e *AliasusermapActive) Scan(src interface{}) error

type AliasusermapEtype

type AliasusermapEtype string
const (
	AliasusermapEtypePlain   AliasusermapEtype = "plain"
	AliasusermapEtypePattern AliasusermapEtype = "pattern"
	AliasusermapEtypeRegex   AliasusermapEtype = "regex"
)

func (*AliasusermapEtype) Scan

func (e *AliasusermapEtype) Scan(src interface{}) error

type ChangeAliasRedirectParams

type ChangeAliasRedirectParams struct {
	Goto    string `json:"goto"`
	Address string `json:"address"`
}

type ChangeDomainAliasRedirectParams

type ChangeDomainAliasRedirectParams struct {
	Goto   string `json:"goto"`
	Domain string `json:"domain"`
}

type ChangeMailboxMaildirParams

type ChangeMailboxMaildirParams struct {
	Maildir  string `json:"maildir"`
	Username string `json:"username"`
}

type ChangeMailboxQuotaParams

type ChangeMailboxQuotaParams struct {
	Maildir  int64  `json:"maildir"`
	Username string `json:"username"`
}

type ChangePasswordParams

type ChangePasswordParams struct {
	Password string `json:"password"`
	Username string `json:"username"`
}

type ChangeUserAliasRedirectParams

type ChangeUserAliasRedirectParams struct {
	Goto string `json:"goto"`
	User string `json:"user"`
}

type ChangeWildcardAliasRedirectParams

type ChangeWildcardAliasRedirectParams struct {
	Allowed string `json:"allowed"`
	Address string `json:"address"`
}

type CreateDelegateAccountParams

type CreateDelegateAccountParams struct {
	Address string `json:"address"`
	Owner   string `json:"owner"`
	Auth    string `json:"auth"`
}

type CreateReportParams

type CreateReportParams struct {
	Address  string `json:"address"`
	Reporter string `json:"reporter"`
	Report   string `json:"report"`
}

type DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type Delegatemap

type Delegatemap struct {
	Address string            `json:"address"`
	Owner   string            `json:"owner"`
	Auth    string            `json:"auth"`
	Active  DelegatemapActive `json:"active"`
}

type DelegatemapActive

type DelegatemapActive string
const (
	DelegatemapActiveFalse DelegatemapActive = "false"
	DelegatemapActiveTrue  DelegatemapActive = "true"
)

func (*DelegatemapActive) Scan

func (e *DelegatemapActive) Scan(src interface{}) error

type Delegateroutemap

type Delegateroutemap struct {
	Address  string `json:"address"`
	Delegate string `json:"delegate"`
}

type DeleteReportParams

type DeleteReportParams struct {
	Address  string `json:"address"`
	Reporter string `json:"reporter"`
}

type DisableSenderAliasParams

type DisableSenderAliasParams struct {
	Address interface{} `json:"address"`
	Allowed string      `json:"allowed"`
}

type Domainmap

type Domainmap struct {
	Domain string          `json:"domain"`
	Active DomainmapActive `json:"active"`
}

type DomainmapActive

type DomainmapActive string
const (
	DomainmapActiveFalse DomainmapActive = "false"
	DomainmapActiveTrue  DomainmapActive = "true"
)

func (*DomainmapActive) Scan

func (e *DomainmapActive) Scan(src interface{}) error

type EnableSenderAliasParams

type EnableSenderAliasParams struct {
	Address interface{} `json:"address"`
	Allowed string      `json:"allowed"`
}

type GetAliasRedirectParams

type GetAliasRedirectParams struct {
	Address string `json:"address"`
}

type GetAllActiveAliasesRow

type GetAllActiveAliasesRow struct {
	Address string        `json:"address"`
	Goto    string        `json:"goto"`
	Etype   AliasmapEtype `json:"etype"`
}

type GetAllActiveDomainAliasesRow

type GetAllActiveDomainAliasesRow struct {
	Domain string              `json:"domain"`
	Goto   string              `json:"goto"`
	Etype  AliasdomainmapEtype `json:"etype"`
}

type GetAllActiveMailboxesRow

type GetAllActiveMailboxesRow struct {
	Username string `json:"username"`
	Maildir  string `json:"maildir"`
	Quota    int64  `json:"quota"`
}

type GetAllActiveMasterAccountsRow

type GetAllActiveMasterAccountsRow struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type GetAllActiveProtectedReceivesRow

type GetAllActiveProtectedReceivesRow struct {
	Address string `json:"address"`
	Access  string `json:"access"`
}

type GetAllActiveUserAliasesRow

type GetAllActiveUserAliasesRow struct {
	User  string            `json:"user"`
	Goto  string            `json:"goto"`
	Etype AliasusermapEtype `json:"etype"`
}

type GetAllActiveWildcardAliasesRow

type GetAllActiveWildcardAliasesRow struct {
	Address string `json:"address"`
	Goto    string `json:"goto"`
}

type GetAllEnabledMailboxesRow

type GetAllEnabledMailboxesRow struct {
	Username string `json:"username"`
	Maildir  string `json:"maildir"`
	Quota    int64  `json:"quota"`
}

type GetAllInactiveMailboxesRow

type GetAllInactiveMailboxesRow struct {
	Username string `json:"username"`
	Maildir  string `json:"maildir"`
	Quota    int64  `json:"quota"`
}

type GetAllInactiveMasterAccountsRow

type GetAllInactiveMasterAccountsRow struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type GetAllInactiveProtectedReceivesRow

type GetAllInactiveProtectedReceivesRow struct {
	Address string `json:"address"`
	Access  string `json:"access"`
}

type GetAllSenderAliasesRow

type GetAllSenderAliasesRow struct {
	Allowed string               `json:"allowed"`
	Active  SenderaliasmapActive `json:"active"`
}

type GetDomainAliasRedirectParams

type GetDomainAliasRedirectParams struct {
	Domain string `json:"domain"`
}

type GetReportParams

type GetReportParams struct {
	Address  string `json:"address"`
	Reporter string `json:"reporter"`
}

type GetReportsOfAddressRow

type GetReportsOfAddressRow struct {
	Reporter string `json:"reporter"`
	Report   string `json:"report"`
}

type GetReportsOfReporterRow

type GetReportsOfReporterRow struct {
	Address string `json:"address"`
	Report  string `json:"report"`
}

type GetSenderAliasesRow

type GetSenderAliasesRow struct {
	Allowed string               `json:"allowed"`
	Active  SenderaliasmapActive `json:"active"`
}

type GetUserAliasRedirectParams

type GetUserAliasRedirectParams struct {
	User string `json:"user"`
}

type Mailbox

type Mailbox struct {
	Username string        `json:"username"`
	Maildir  string        `json:"maildir"`
	Quota    int64         `json:"quota"`
	Active   MailboxActive `json:"active"`
}

type MailboxActive

type MailboxActive string
const (
	MailboxActiveFalse    MailboxActive = "false"
	MailboxActiveDisabled MailboxActive = "disabled"
	MailboxActiveTrue     MailboxActive = "true"
)

func (*MailboxActive) Scan

func (e *MailboxActive) Scan(src interface{}) error

type Mailmaster

type Mailmaster struct {
	Username string           `json:"username"`
	Password string           `json:"password"`
	Active   MailmasterActive `json:"active"`
}

type MailmasterActive

type MailmasterActive string
const (
	MailmasterActiveFalse MailmasterActive = "false"
	MailmasterActiveTrue  MailmasterActive = "true"
)

func (*MailmasterActive) Scan

func (e *MailmasterActive) Scan(src interface{}) error

type Mailshadow

type Mailshadow struct {
	Username     string                 `json:"username"`
	Password     string                 `json:"password"`
	AllowPwdChng MailshadowAllowPwdChng `json:"allow_pwd_chng"`
}

type MailshadowAllowPwdChng

type MailshadowAllowPwdChng string
const (
	MailshadowAllowPwdChngFalse MailshadowAllowPwdChng = "false"
	MailshadowAllowPwdChngTrue  MailshadowAllowPwdChng = "true"
)

func (*MailshadowAllowPwdChng) Scan

func (e *MailshadowAllowPwdChng) Scan(src interface{}) error

type NullAliasdomainmapActive

type NullAliasdomainmapActive struct {
	AliasdomainmapActive AliasdomainmapActive `json:"aliasdomainmap_active"`
	Valid                bool                 `json:"valid"` // Valid is true if AliasdomainmapActive is not NULL
}

func (*NullAliasdomainmapActive) Scan

func (ns *NullAliasdomainmapActive) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullAliasdomainmapActive) Value

Value implements the driver Valuer interface.

type NullAliasdomainmapEtype

type NullAliasdomainmapEtype struct {
	AliasdomainmapEtype AliasdomainmapEtype `json:"aliasdomainmap_etype"`
	Valid               bool                `json:"valid"` // Valid is true if AliasdomainmapEtype is not NULL
}

func (*NullAliasdomainmapEtype) Scan

func (ns *NullAliasdomainmapEtype) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullAliasdomainmapEtype) Value

func (ns NullAliasdomainmapEtype) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullAliasmapActive

type NullAliasmapActive struct {
	AliasmapActive AliasmapActive `json:"aliasmap_active"`
	Valid          bool           `json:"valid"` // Valid is true if AliasmapActive is not NULL
}

func (*NullAliasmapActive) Scan

func (ns *NullAliasmapActive) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullAliasmapActive) Value

func (ns NullAliasmapActive) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullAliasmapEtype

type NullAliasmapEtype struct {
	AliasmapEtype AliasmapEtype `json:"aliasmap_etype"`
	Valid         bool          `json:"valid"` // Valid is true if AliasmapEtype is not NULL
}

func (*NullAliasmapEtype) Scan

func (ns *NullAliasmapEtype) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullAliasmapEtype) Value

func (ns NullAliasmapEtype) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullAliasusermapActive

type NullAliasusermapActive struct {
	AliasusermapActive AliasusermapActive `json:"aliasusermap_active"`
	Valid              bool               `json:"valid"` // Valid is true if AliasusermapActive is not NULL
}

func (*NullAliasusermapActive) Scan

func (ns *NullAliasusermapActive) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullAliasusermapActive) Value

func (ns NullAliasusermapActive) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullAliasusermapEtype

type NullAliasusermapEtype struct {
	AliasusermapEtype AliasusermapEtype `json:"aliasusermap_etype"`
	Valid             bool              `json:"valid"` // Valid is true if AliasusermapEtype is not NULL
}

func (*NullAliasusermapEtype) Scan

func (ns *NullAliasusermapEtype) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullAliasusermapEtype) Value

func (ns NullAliasusermapEtype) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullDelegatemapActive

type NullDelegatemapActive struct {
	DelegatemapActive DelegatemapActive `json:"delegatemap_active"`
	Valid             bool              `json:"valid"` // Valid is true if DelegatemapActive is not NULL
}

func (*NullDelegatemapActive) Scan

func (ns *NullDelegatemapActive) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullDelegatemapActive) Value

func (ns NullDelegatemapActive) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullDomainmapActive

type NullDomainmapActive struct {
	DomainmapActive DomainmapActive `json:"domainmap_active"`
	Valid           bool            `json:"valid"` // Valid is true if DomainmapActive is not NULL
}

func (*NullDomainmapActive) Scan

func (ns *NullDomainmapActive) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullDomainmapActive) Value

func (ns NullDomainmapActive) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullMailboxActive

type NullMailboxActive struct {
	MailboxActive MailboxActive `json:"mailbox_active"`
	Valid         bool          `json:"valid"` // Valid is true if MailboxActive is not NULL
}

func (*NullMailboxActive) Scan

func (ns *NullMailboxActive) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullMailboxActive) Value

func (ns NullMailboxActive) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullMailmasterActive

type NullMailmasterActive struct {
	MailmasterActive MailmasterActive `json:"mailmaster_active"`
	Valid            bool             `json:"valid"` // Valid is true if MailmasterActive is not NULL
}

func (*NullMailmasterActive) Scan

func (ns *NullMailmasterActive) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullMailmasterActive) Value

func (ns NullMailmasterActive) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullMailshadowAllowPwdChng

type NullMailshadowAllowPwdChng struct {
	MailshadowAllowPwdChng MailshadowAllowPwdChng `json:"mailshadow_allow_pwd_chng"`
	Valid                  bool                   `json:"valid"` // Valid is true if MailshadowAllowPwdChng is not NULL
}

func (*NullMailshadowAllowPwdChng) Scan

func (ns *NullMailshadowAllowPwdChng) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullMailshadowAllowPwdChng) Value

Value implements the driver Valuer interface.

type NullReceiveprotectmapActive

type NullReceiveprotectmapActive struct {
	ReceiveprotectmapActive ReceiveprotectmapActive `json:"receiveprotectmap_active"`
	Valid                   bool                    `json:"valid"` // Valid is true if ReceiveprotectmapActive is not NULL
}

func (*NullReceiveprotectmapActive) Scan

func (ns *NullReceiveprotectmapActive) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullReceiveprotectmapActive) Value

Value implements the driver Valuer interface.

type NullSenderaliasmapActive

type NullSenderaliasmapActive struct {
	SenderaliasmapActive SenderaliasmapActive `json:"senderaliasmap_active"`
	Valid                bool                 `json:"valid"` // Valid is true if SenderaliasmapActive is not NULL
}

func (*NullSenderaliasmapActive) Scan

func (ns *NullSenderaliasmapActive) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullSenderaliasmapActive) Value

Value implements the driver Valuer interface.

type NullWildcardaliasmapActive

type NullWildcardaliasmapActive struct {
	WildcardaliasmapActive WildcardaliasmapActive `json:"wildcardaliasmap_active"`
	Valid                  bool                   `json:"valid"` // Valid is true if WildcardaliasmapActive is not NULL
}

func (*NullWildcardaliasmapActive) Scan

func (ns *NullWildcardaliasmapActive) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullWildcardaliasmapActive) Value

Value implements the driver Valuer interface.

type Queries

type Queries struct {
	// contains filtered or unexported fields
}

func New

func New(db DBTX) *Queries

func (*Queries) AddAccount

func (q *Queries) AddAccount(ctx context.Context, arg AddAccountParams) (sql.Result, error)

func (*Queries) AddAlias

func (q *Queries) AddAlias(ctx context.Context, arg AddAliasParams) (sql.Result, error)

func (*Queries) AddAliasLike

func (q *Queries) AddAliasLike(ctx context.Context, arg AddAliasLikeParams) (sql.Result, error)

func (*Queries) AddAliasRegex

func (q *Queries) AddAliasRegex(ctx context.Context, arg AddAliasRegexParams) (sql.Result, error)

func (*Queries) AddDelegateRoute

func (q *Queries) AddDelegateRoute(ctx context.Context, arg AddDelegateRouteParams) (sql.Result, error)

func (*Queries) AddDomain

func (q *Queries) AddDomain(ctx context.Context, domain string) (sql.Result, error)

func (*Queries) AddDomainAlias

func (q *Queries) AddDomainAlias(ctx context.Context, arg AddDomainAliasParams) (sql.Result, error)

func (*Queries) AddDomainAliasLike

func (q *Queries) AddDomainAliasLike(ctx context.Context, arg AddDomainAliasLikeParams) (sql.Result, error)

func (*Queries) AddDomainAliasRegex

func (q *Queries) AddDomainAliasRegex(ctx context.Context, arg AddDomainAliasRegexParams) (sql.Result, error)

func (*Queries) AddMailbox

func (q *Queries) AddMailbox(ctx context.Context, arg AddMailboxParams) (sql.Result, error)

func (*Queries) AddMasterAccount

func (q *Queries) AddMasterAccount(ctx context.Context, arg AddMasterAccountParams) (sql.Result, error)

func (*Queries) AddProtectedReceive

func (q *Queries) AddProtectedReceive(ctx context.Context, arg AddProtectedReceiveParams) (sql.Result, error)

func (*Queries) AddSMTPSendRoute

func (q *Queries) AddSMTPSendRoute(ctx context.Context, arg AddSMTPSendRouteParams) (sql.Result, error)

func (*Queries) AddSMTPSendRouteDelegated

func (q *Queries) AddSMTPSendRouteDelegated(ctx context.Context, address string) (sql.Result, error)

func (*Queries) AddSenderAlias

func (q *Queries) AddSenderAlias(ctx context.Context, arg AddSenderAliasParams) (sql.Result, error)

func (*Queries) AddUserAlias

func (q *Queries) AddUserAlias(ctx context.Context, arg AddUserAliasParams) (sql.Result, error)

func (*Queries) AddUserAliasLike

func (q *Queries) AddUserAliasLike(ctx context.Context, arg AddUserAliasLikeParams) (sql.Result, error)

func (*Queries) AddUserAliasRegex

func (q *Queries) AddUserAliasRegex(ctx context.Context, arg AddUserAliasRegexParams) (sql.Result, error)

func (*Queries) AddWildcardAlias

func (q *Queries) AddWildcardAlias(ctx context.Context, arg AddWildcardAliasParams) (sql.Result, error)

func (*Queries) Block

func (q *Queries) Block(ctx context.Context, address string) (sql.Result, error)

func (*Queries) ChangeAliasRedirect

func (q *Queries) ChangeAliasRedirect(ctx context.Context, arg ChangeAliasRedirectParams) (sql.Result, error)

func (*Queries) ChangeDomainAliasRedirect

func (q *Queries) ChangeDomainAliasRedirect(ctx context.Context, arg ChangeDomainAliasRedirectParams) (sql.Result, error)

func (*Queries) ChangeMailboxMaildir

func (q *Queries) ChangeMailboxMaildir(ctx context.Context, arg ChangeMailboxMaildirParams) (sql.Result, error)

func (*Queries) ChangeMailboxQuota

func (q *Queries) ChangeMailboxQuota(ctx context.Context, arg ChangeMailboxQuotaParams) (sql.Result, error)

func (*Queries) ChangePassword

func (q *Queries) ChangePassword(ctx context.Context, arg ChangePasswordParams) (sql.Result, error)

func (*Queries) ChangeUserAliasRedirect

func (q *Queries) ChangeUserAliasRedirect(ctx context.Context, arg ChangeUserAliasRedirectParams) (sql.Result, error)

func (*Queries) ChangeWildcardAliasRedirect

func (q *Queries) ChangeWildcardAliasRedirect(ctx context.Context, arg ChangeWildcardAliasRedirectParams) (sql.Result, error)

func (*Queries) CreateDelegateAccount

func (q *Queries) CreateDelegateAccount(ctx context.Context, arg CreateDelegateAccountParams) (sql.Result, error)

func (*Queries) CreateReport

func (q *Queries) CreateReport(ctx context.Context, arg CreateReportParams) (sql.Result, error)

func (*Queries) DeactivateMailbox

func (q *Queries) DeactivateMailbox(ctx context.Context, username string) (sql.Result, error)

func (*Queries) DeleteDelegateAccount

func (q *Queries) DeleteDelegateAccount(ctx context.Context, address string) (sql.Result, error)

func (*Queries) DeleteReport

func (q *Queries) DeleteReport(ctx context.Context, arg DeleteReportParams) (sql.Result, error)

func (*Queries) DisableAccountPasswordChange

func (q *Queries) DisableAccountPasswordChange(ctx context.Context, username string) (sql.Result, error)

func (*Queries) DisableAlias

func (q *Queries) DisableAlias(ctx context.Context, address string) (sql.Result, error)

func (*Queries) DisableDelegateAccount

func (q *Queries) DisableDelegateAccount(ctx context.Context, address string) (sql.Result, error)

func (*Queries) DisableDomain

func (q *Queries) DisableDomain(ctx context.Context, domain string) (sql.Result, error)

func (*Queries) DisableDomainAlias

func (q *Queries) DisableDomainAlias(ctx context.Context, domain string) (sql.Result, error)

func (*Queries) DisableMailbox

func (q *Queries) DisableMailbox(ctx context.Context, username string) (sql.Result, error)

func (*Queries) DisableMasterAccount

func (q *Queries) DisableMasterAccount(ctx context.Context, username string) (sql.Result, error)

func (*Queries) DisableProtectedReceive

func (q *Queries) DisableProtectedReceive(ctx context.Context, address string) (sql.Result, error)

func (*Queries) DisableSenderAlias

func (q *Queries) DisableSenderAlias(ctx context.Context, arg DisableSenderAliasParams) (sql.Result, error)

func (*Queries) DisableUserAlias

func (q *Queries) DisableUserAlias(ctx context.Context, user string) (sql.Result, error)

func (*Queries) DisableWildcardAlias

func (q *Queries) DisableWildcardAlias(ctx context.Context, address string) (sql.Result, error)

func (*Queries) EnableAccountPasswordChange

func (q *Queries) EnableAccountPasswordChange(ctx context.Context, username string) (sql.Result, error)

func (*Queries) EnableAlias

func (q *Queries) EnableAlias(ctx context.Context, address string) (sql.Result, error)

func (*Queries) EnableDelegateAccount

func (q *Queries) EnableDelegateAccount(ctx context.Context, address string) (sql.Result, error)

func (*Queries) EnableDomain

func (q *Queries) EnableDomain(ctx context.Context, domain string) (sql.Result, error)

func (*Queries) EnableDomainAlias

func (q *Queries) EnableDomainAlias(ctx context.Context, domain string) (sql.Result, error)

func (*Queries) EnableMailbox

func (q *Queries) EnableMailbox(ctx context.Context, username string) (sql.Result, error)

func (*Queries) EnableMasterAccount

func (q *Queries) EnableMasterAccount(ctx context.Context, username string) (sql.Result, error)

func (*Queries) EnableProtectedReceive

func (q *Queries) EnableProtectedReceive(ctx context.Context, address string) (sql.Result, error)

func (*Queries) EnableSenderAlias

func (q *Queries) EnableSenderAlias(ctx context.Context, arg EnableSenderAliasParams) (sql.Result, error)

func (*Queries) EnableUserAlias

func (q *Queries) EnableUserAlias(ctx context.Context, user string) (sql.Result, error)

func (*Queries) EnableWildcardAlias

func (q *Queries) EnableWildcardAlias(ctx context.Context, address string) (sql.Result, error)

func (*Queries) GetAccount

func (q *Queries) GetAccount(ctx context.Context, username string) (Mailshadow, error)

func (*Queries) GetAccountAllowPasswordChange

func (q *Queries) GetAccountAllowPasswordChange(ctx context.Context, username string) (MailshadowAllowPwdChng, error)

func (*Queries) GetActiveSenderAliases

func (q *Queries) GetActiveSenderAliases(ctx context.Context, address string) ([]string, error)

func (*Queries) GetAliasRedirect

func (q *Queries) GetAliasRedirect(ctx context.Context, arg GetAliasRedirectParams) (string, error)

func (*Queries) GetAllAccounts

func (q *Queries) GetAllAccounts(ctx context.Context) ([]Mailshadow, error)

func (*Queries) GetAllActiveAliases

func (q *Queries) GetAllActiveAliases(ctx context.Context) ([]GetAllActiveAliasesRow, error)

func (*Queries) GetAllActiveDomainAliases

func (q *Queries) GetAllActiveDomainAliases(ctx context.Context) ([]GetAllActiveDomainAliasesRow, error)

func (*Queries) GetAllActiveDomains

func (q *Queries) GetAllActiveDomains(ctx context.Context) ([]string, error)

func (*Queries) GetAllActiveMailboxes

func (q *Queries) GetAllActiveMailboxes(ctx context.Context) ([]GetAllActiveMailboxesRow, error)

func (*Queries) GetAllActiveMasterAccounts

func (q *Queries) GetAllActiveMasterAccounts(ctx context.Context) ([]GetAllActiveMasterAccountsRow, error)

func (*Queries) GetAllActiveProtectedReceives

func (q *Queries) GetAllActiveProtectedReceives(ctx context.Context) ([]GetAllActiveProtectedReceivesRow, error)

func (*Queries) GetAllActiveUserAliases

func (q *Queries) GetAllActiveUserAliases(ctx context.Context) ([]GetAllActiveUserAliasesRow, error)

func (*Queries) GetAllActiveWildcardAliases

func (q *Queries) GetAllActiveWildcardAliases(ctx context.Context) ([]GetAllActiveWildcardAliasesRow, error)

func (*Queries) GetAllAliases

func (q *Queries) GetAllAliases(ctx context.Context) ([]Aliasmap, error)

func (*Queries) GetAllBlocks

func (q *Queries) GetAllBlocks(ctx context.Context) ([]Receiveblockmap, error)

func (*Queries) GetAllDelegateAccounts

func (q *Queries) GetAllDelegateAccounts(ctx context.Context) ([]Delegatemap, error)

func (*Queries) GetAllDelegateAccountsFor

func (q *Queries) GetAllDelegateAccountsFor(ctx context.Context, owner string) ([]Delegatemap, error)

func (*Queries) GetAllDelegateRoutes

func (q *Queries) GetAllDelegateRoutes(ctx context.Context) ([]Delegateroutemap, error)

func (*Queries) GetAllDomainAliases

func (q *Queries) GetAllDomainAliases(ctx context.Context) ([]Aliasdomainmap, error)

func (*Queries) GetAllDomains

func (q *Queries) GetAllDomains(ctx context.Context) ([]Domainmap, error)

func (*Queries) GetAllEnabledMailboxes

func (q *Queries) GetAllEnabledMailboxes(ctx context.Context) ([]GetAllEnabledMailboxesRow, error)

func (*Queries) GetAllInactiveDomains

func (q *Queries) GetAllInactiveDomains(ctx context.Context) ([]string, error)

func (*Queries) GetAllInactiveMailboxes

func (q *Queries) GetAllInactiveMailboxes(ctx context.Context) ([]GetAllInactiveMailboxesRow, error)

func (*Queries) GetAllInactiveMasterAccounts

func (q *Queries) GetAllInactiveMasterAccounts(ctx context.Context) ([]GetAllInactiveMasterAccountsRow, error)

func (*Queries) GetAllInactiveProtectedReceives

func (q *Queries) GetAllInactiveProtectedReceives(ctx context.Context) ([]GetAllInactiveProtectedReceivesRow, error)

func (*Queries) GetAllMailboxes

func (q *Queries) GetAllMailboxes(ctx context.Context) ([]Mailbox, error)

func (*Queries) GetAllMasterAccounts

func (q *Queries) GetAllMasterAccounts(ctx context.Context) ([]Mailmaster, error)

func (*Queries) GetAllProtectedReceives

func (q *Queries) GetAllProtectedReceives(ctx context.Context) ([]Receiveprotectmap, error)

func (*Queries) GetAllReports

func (q *Queries) GetAllReports(ctx context.Context) ([]Receiveblockreport, error)

func (*Queries) GetAllSMTPSendRoutes

func (q *Queries) GetAllSMTPSendRoutes(ctx context.Context) ([]Smtpingestmap, error)

func (*Queries) GetAllSMTPSendRoutesDelegated

func (q *Queries) GetAllSMTPSendRoutesDelegated(ctx context.Context) ([]Smtpingestmap, error)

func (*Queries) GetAllSMTPSendRoutesNonDelegated

func (q *Queries) GetAllSMTPSendRoutesNonDelegated(ctx context.Context) ([]Smtpingestmap, error)

func (*Queries) GetAllSenderAliases

func (q *Queries) GetAllSenderAliases(ctx context.Context) ([]GetAllSenderAliasesRow, error)

func (*Queries) GetAllUserAliases

func (q *Queries) GetAllUserAliases(ctx context.Context) ([]Aliasusermap, error)

func (*Queries) GetAllWildcardAliases

func (q *Queries) GetAllWildcardAliases(ctx context.Context) ([]Wildcardaliasmap, error)

func (*Queries) GetBlock

func (q *Queries) GetBlock(ctx context.Context, address string) (string, error)

func (*Queries) GetDelegateAccount

func (q *Queries) GetDelegateAccount(ctx context.Context, address string) (Delegatemap, error)

func (*Queries) GetDelegateAccountAuth

func (q *Queries) GetDelegateAccountAuth(ctx context.Context, address string) (string, error)

func (*Queries) GetDelegateRoute

func (q *Queries) GetDelegateRoute(ctx context.Context, address string) (string, error)

func (*Queries) GetDomain

func (q *Queries) GetDomain(ctx context.Context, domain string) (Domainmap, error)

func (*Queries) GetDomainAliasRedirect

func (q *Queries) GetDomainAliasRedirect(ctx context.Context, arg GetDomainAliasRedirectParams) (string, error)

func (*Queries) GetMailbox

func (q *Queries) GetMailbox(ctx context.Context, username string) (Mailbox, error)

func (*Queries) GetMailboxMaildir

func (q *Queries) GetMailboxMaildir(ctx context.Context, username string) (string, error)

func (*Queries) GetMailboxQuota

func (q *Queries) GetMailboxQuota(ctx context.Context, username string) (int64, error)

func (*Queries) GetMasterAccount

func (q *Queries) GetMasterAccount(ctx context.Context, username string) (Mailmaster, error)

func (*Queries) GetPassword

func (q *Queries) GetPassword(ctx context.Context, username string) (string, error)

func (*Queries) GetProtectedReceive

func (q *Queries) GetProtectedReceive(ctx context.Context, address string) (Receiveprotectmap, error)

func (*Queries) GetReport

func (q *Queries) GetReport(ctx context.Context, arg GetReportParams) (string, error)

func (*Queries) GetReportsOfAddress

func (q *Queries) GetReportsOfAddress(ctx context.Context, address string) ([]GetReportsOfAddressRow, error)

func (*Queries) GetReportsOfReporter

func (q *Queries) GetReportsOfReporter(ctx context.Context, reporter string) ([]GetReportsOfReporterRow, error)

func (*Queries) GetSMTPSendRoute

func (q *Queries) GetSMTPSendRoute(ctx context.Context, address string) (sql.NullString, error)

func (*Queries) GetSenderAliases

func (q *Queries) GetSenderAliases(ctx context.Context, address string) ([]GetSenderAliasesRow, error)

func (*Queries) GetUserAliasRedirect

func (q *Queries) GetUserAliasRedirect(ctx context.Context, arg GetUserAliasRedirectParams) (string, error)

func (*Queries) GetWildcardAliasRedirect

func (q *Queries) GetWildcardAliasRedirect(ctx context.Context, address string) (string, error)

func (*Queries) RemoveAccount

func (q *Queries) RemoveAccount(ctx context.Context, username string) (sql.Result, error)

func (*Queries) RemoveAlias

func (q *Queries) RemoveAlias(ctx context.Context, address string) (sql.Result, error)

func (*Queries) RemoveDelegateRoute

func (q *Queries) RemoveDelegateRoute(ctx context.Context, address string) (sql.Result, error)

func (*Queries) RemoveDomain

func (q *Queries) RemoveDomain(ctx context.Context, domain string) (sql.Result, error)

func (*Queries) RemoveDomainAlias

func (q *Queries) RemoveDomainAlias(ctx context.Context, domain string) (sql.Result, error)

func (*Queries) RemoveMailbox

func (q *Queries) RemoveMailbox(ctx context.Context, username string) (sql.Result, error)

func (*Queries) RemoveMasterAccount

func (q *Queries) RemoveMasterAccount(ctx context.Context, username string) (sql.Result, error)

func (*Queries) RemoveProtectedReceive

func (q *Queries) RemoveProtectedReceive(ctx context.Context, address string) (sql.Result, error)

func (*Queries) RemoveSMTPSendRoute

func (q *Queries) RemoveSMTPSendRoute(ctx context.Context, address string) (sql.Result, error)

func (*Queries) RemoveSenderAlias

func (q *Queries) RemoveSenderAlias(ctx context.Context, arg RemoveSenderAliasParams) (sql.Result, error)

func (*Queries) RemoveUserAlias

func (q *Queries) RemoveUserAlias(ctx context.Context, user string) (sql.Result, error)

func (*Queries) RemoveWildcardAlias

func (q *Queries) RemoveWildcardAlias(ctx context.Context, address string) (sql.Result, error)

func (*Queries) Unblock

func (q *Queries) Unblock(ctx context.Context, address string) (sql.Result, error)

func (*Queries) UpdateDelegateAccountAuth

func (q *Queries) UpdateDelegateAccountAuth(ctx context.Context, arg UpdateDelegateAccountAuthParams) (sql.Result, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx *sql.Tx) *Queries

type Receiveblockmap

type Receiveblockmap struct {
	Address string `json:"address"`
	Access  string `json:"access"`
}

type Receiveblockreport

type Receiveblockreport struct {
	Address  string `json:"address"`
	Reporter string `json:"reporter"`
	Report   string `json:"report"`
}

type Receiveprotectmap

type Receiveprotectmap struct {
	Address string                  `json:"address"`
	Access  string                  `json:"access"`
	Active  ReceiveprotectmapActive `json:"active"`
}

type ReceiveprotectmapActive

type ReceiveprotectmapActive string
const (
	ReceiveprotectmapActiveFalse ReceiveprotectmapActive = "false"
	ReceiveprotectmapActiveTrue  ReceiveprotectmapActive = "true"
)

func (*ReceiveprotectmapActive) Scan

func (e *ReceiveprotectmapActive) Scan(src interface{}) error

type RemoveSenderAliasParams

type RemoveSenderAliasParams struct {
	Address string `json:"address"`
	Allowed string `json:"allowed"`
}

type Senderaliasmap

type Senderaliasmap struct {
	Address string               `json:"address"`
	Allowed string               `json:"allowed"`
	Active  SenderaliasmapActive `json:"active"`
}

type SenderaliasmapActive

type SenderaliasmapActive string
const (
	SenderaliasmapActiveFalse SenderaliasmapActive = "false"
	SenderaliasmapActiveTrue  SenderaliasmapActive = "true"
)

func (*SenderaliasmapActive) Scan

func (e *SenderaliasmapActive) Scan(src interface{}) error

type Smtpingestmap

type Smtpingestmap struct {
	Address string         `json:"address"`
	Start   sql.NullString `json:"start"`
}

type UpdateDelegateAccountAuthParams

type UpdateDelegateAccountAuthParams struct {
	Auth    string `json:"auth"`
	Address string `json:"address"`
}

type Wildcardaliasmap

type Wildcardaliasmap struct {
	Address string                 `json:"address"`
	Goto    string                 `json:"goto"`
	Active  WildcardaliasmapActive `json:"active"`
}

type WildcardaliasmapActive

type WildcardaliasmapActive string
const (
	WildcardaliasmapActiveFalse WildcardaliasmapActive = "false"
	WildcardaliasmapActiveTrue  WildcardaliasmapActive = "true"
)

func (*WildcardaliasmapActive) Scan

func (e *WildcardaliasmapActive) Scan(src interface{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL