hooks

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const ErrorMessagePrefix = "[VALIDATION ERROR]"

Variables

This section is empty.

Functions

func EnsureDurationIsSet

func EnsureDurationIsSet() ent.Hook

func EnsureOnlyOnePrimaryAddress

func EnsureOnlyOnePrimaryAddress() ent.Hook

EnsureOnlyOnePrimaryAddress is a hook that ensures that only one address on a business is marked as primary address

func EnsureOnlyOneTimetableEntry

func EnsureOnlyOneTimetableEntry() ent.Hook

EnsureOnlyOneTimetableEntry is a hook that ensures that only one timetable entry for an address exists for datetime_from in combination with timetable_type

func RemoveZeroTimeValues added in v0.0.6

func RemoveZeroTimeValues() ent.Hook

func UpdatePublicUser

func UpdatePublicUser() ent.Hook

func UpperCaseForBussinessFields

func UpperCaseForBussinessFields() ent.Hook

func VerifyUserRole

func VerifyUserRole() ent.Hook

Types

type AuditLog

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

func (*AuditLog) AuditLogForAddress

func (al *AuditLog) AuditLogForAddress() ent.Hook

AuditLogForAddress is a hook that logs all operations on Adresses.

func (*AuditLog) AuditLogForBusiness

func (al *AuditLog) AuditLogForBusiness() ent.Hook

AuditLogForBusiness is a hook that logs all operations on Businesses.

func (*AuditLog) AuditLogForContent

func (al *AuditLog) AuditLogForContent() ent.Hook

func (*AuditLog) AuditLogForTimetable

func (al *AuditLog) AuditLogForTimetable() ent.Hook

func (*AuditLog) AuditLogForUser

func (al *AuditLog) AuditLogForUser() ent.Hook

AuditLogForUser is a hook that logs all operations on Users.

Jump to

Keyboard shortcuts

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