Пример #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
}
Пример #2
0
func New(functions *shared.Functions) (*Images, error) {
	imgs := &Images{
		data: functions.Database(),
	}
	return imgs, nil
}
Пример #3
0
func New(functions *shared.Functions) (*Privileges, error) {
	privs := &Privileges{
		data: functions.Database(),
	}
	return privs, nil
}