Documentation ¶
Index ¶
Constants ¶
View Source
const ErrorMessagePrefix = "[VALIDATION ERROR]"
Variables ¶
This section is empty.
Functions ¶
func EnsureDurationIsSet ¶
func EnsureOnlyOnePrimaryAddress ¶
EnsureOnlyOnePrimaryAddress is a hook that ensures that only one address on a business is marked as primary address
func EnsureOnlyOneTimetableEntry ¶
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 UpdatePublicUser ¶
func VerifyUserRole ¶
Types ¶
type AuditLog ¶
type AuditLog struct {
// contains filtered or unexported fields
}
func (*AuditLog) AuditLogForAddress ¶
AuditLogForAddress is a hook that logs all operations on Adresses.
func (*AuditLog) AuditLogForBusiness ¶
AuditLogForBusiness is a hook that logs all operations on Businesses.
func (*AuditLog) AuditLogForContent ¶
func (*AuditLog) AuditLogForTimetable ¶
func (*AuditLog) AuditLogForUser ¶
AuditLogForUser is a hook that logs all operations on Users.
Click to show internal directories.
Click to hide internal directories.