Documentation
¶
Index ¶
- func ClientFromUUID(ctx context.Context, txn db.Ex, uid uuid.UUID) (*model.Client, error)
- func ClientInsert(ctx context.Context, txn db.Ex, m model.Client) error
- func ComplianceFromID(ctx context.Context, txn db.Ex, report_id int64) (*model.Compliance, error)
- func ComplianceFromPublicID(ctx context.Context, txn db.Ex, public_id string) (*model.Compliance, error)
- func ComplianceInsert(ctx context.Context, txn db.Ex, m model.Compliance) (*model.Compliance, error)
- func ImageExifByImageID(ctx context.Context, txn db.Ex, image_ids []int64) (map[int64]types.Exif, error)
- func ImageExifInserts(ctx context.Context, txn db.Ex, image_exifs []model.ImageExif) error
- func ImageInsert(ctx context.Context, txn db.Ex, m model.Image) (*model.Image, error)
- func ImagesFromIDs(ctx context.Context, txn db.Ex, image_ids []int64) ([]model.Image, error)
- func NewUpdaterCompliance() db.Updater[table.ComplianceTable, model.Compliance]
- func NotifyEmailCreate(ctx context.Context, txn db.Ex, report_id int32, destination string) error
- func NotifyEmailInsert(ctx context.Context, txn db.Ex, m model.NotifyEmail) error
- func NotifyPhoneCreate(ctx context.Context, txn db.Ex, report_id int32, destination string) error
- func NotifyPhoneInsert(ctx context.Context, txn db.Ex, m model.NotifyPhone) error
- func NuisanceFromPublicID(ctx context.Context, txn db.Ex, public_id string) (*model.Nuisance, error)
- func NuisanceInsert(ctx context.Context, txn db.Ex, m model.Nuisance) (*model.Nuisance, error)
- func ReportCountFromOrganizationIDUnreviewed(ctx context.Context, txn db.Ex, org_id int64) (*countRow, error)
- func ReportFromID(ctx context.Context, txn db.Ex, report_id int64) (*model.Report, error)
- func ReportFromPublicID(ctx context.Context, txn db.Ex, public_id string) (*model.Report, error)
- func ReportFromPublicIDForOrg(ctx context.Context, txn db.Ex, public_id string, org_id int64) (*model.Report, error)
- func ReportImageInsert(ctx context.Context, txn db.Ex, m model.ReportImage) (*model.ReportImage, error)
- func ReportImagesFromReportIDs(ctx context.Context, txn db.Ex, report_ids []int64) ([]model.ReportImage, error)
- func ReportImagesInsert(ctx context.Context, txn db.Ex, m []model.ReportImage) ([]model.ReportImage, error)
- func ReportInsert(ctx context.Context, txn db.Ex, m model.Report) (*model.Report, error)
- func ReportLogInsert(ctx context.Context, txn db.Ex, m model.ReportLog) (*model.ReportLog, error)
- func ReportLogsFromReportIDs(ctx context.Context, txn db.Ex, report_ids []int64) ([]model.ReportLog, error)
- func ReportUpdateOrganization(ctx context.Context, txn db.Ex, id int64, org_id int32) error
- func ReportUpdateReporter(ctx context.Context, txn db.Ex, id int64, ...) error
- func ReportUpdateReporterContactID(ctx context.Context, txn db.Ex, id int64, contact_id int64) error
- func ReportsFromAddressID(ctx context.Context, txn db.Ex, org_id int64, address_id int64) ([]model.Report, error)
- func ReportsFromIDs(ctx context.Context, txn db.Ex, report_ids []int64) ([]model.Report, error)
- func ReportsFromIDsForOrg(ctx context.Context, txn db.Ex, report_ids []int64, org_id int64) ([]model.Report, error)
- func ReportsFromPublicIDs(ctx context.Context, txn db.Ex, public_report_ids []string) ([]model.Report, error)
- func ReportsFromReporterContactID(ctx context.Context, txn db.Ex, contact_id int64) ([]model.Report, error)
- func ReportsFromReporterName(ctx context.Context, txn db.Ex, org_id int64, name string) ([]model.Report, error)
- func ReportsFromReporterPhone(ctx context.Context, txn db.Ex, destination string) ([]model.Report, error)
- func ReportsUnreviewedForOrganization(ctx context.Context, txn db.Ex, org_id int64) ([]model.Report, error)
- func SubscribeEmailInsert(ctx context.Context, txn db.Ex, m model.SubscribeEmail) (*model.SubscribeEmail, error)
- func SubscribePhoneInsert(ctx context.Context, txn db.Ex, m model.SubscribePhone) (*model.SubscribePhone, error)
- func WaterFromReportID(ctx context.Context, txn db.Ex, report_id int64) (*model.Water, error)
- func WaterInsert(ctx context.Context, txn db.Ex, m model.Water) (*model.Water, error)
- type ComplianceUpdater
- type ReportUpdater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientFromUUID ¶
func ComplianceFromID ¶
func ComplianceFromPublicID ¶
func ComplianceInsert ¶
func ComplianceInsert(ctx context.Context, txn db.Ex, m model.Compliance) (*model.Compliance, error)
func ImageExifByImageID ¶
func ImageExifInserts ¶
func ImageInsert ¶
func ImagesFromIDs ¶
func NewUpdaterCompliance ¶
func NewUpdaterCompliance() db.Updater[table.ComplianceTable, model.Compliance]
func NotifyEmailCreate ¶
func NotifyEmailInsert ¶
func NotifyPhoneCreate ¶
func NotifyPhoneInsert ¶
func NuisanceFromPublicID ¶
func NuisanceInsert ¶
func ReportFromID ¶
func ReportFromPublicID ¶
func ReportImageInsert ¶
func ReportImageInsert(ctx context.Context, txn db.Ex, m model.ReportImage) (*model.ReportImage, error)
func ReportImagesInsert ¶
func ReportImagesInsert(ctx context.Context, txn db.Ex, m []model.ReportImage) ([]model.ReportImage, error)
func ReportInsert ¶
func ReportLogInsert ¶
func ReportLogsFromReportIDs ¶
func ReportUpdateReporter ¶
func ReportsFromAddressID ¶
func ReportsFromIDs ¶
func ReportsFromIDsForOrg ¶
func ReportsFromPublicIDs ¶
func ReportsFromReporterName ¶
func SubscribeEmailInsert ¶
func SubscribeEmailInsert(ctx context.Context, txn db.Ex, m model.SubscribeEmail) (*model.SubscribeEmail, error)
func SubscribePhoneInsert ¶
func SubscribePhoneInsert(ctx context.Context, txn db.Ex, m model.SubscribePhone) (*model.SubscribePhone, error)
func WaterFromReportID ¶
Types ¶
type ComplianceUpdater ¶
type ComplianceUpdater = db.Updater[table.ComplianceTable, model.Compliance]
func NewComplianceUpdater ¶
func NewComplianceUpdater() ComplianceUpdater
type ReportUpdater ¶
func NewReportUpdater ¶
func NewReportUpdater() ReportUpdater
Click to show internal directories.
Click to hide internal directories.