func New(functions *shared.Functions) (*Messages, error) { msgs := &Messages{ data: functions.Database(), } err := msgs.init() if err != nil { return nil, err } return msgs, nil }
func New(functions *shared.Functions) (*Images, error) { imgs := &Images{ data: functions.Database(), } return imgs, nil }
func New(functions *shared.Functions) (*Privileges, error) { privs := &Privileges{ data: functions.Database(), } return privs, nil }