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