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