Documentation ¶
Index ¶
- type ConnectionInterface
- type DatabaseInterface
- type Template
- type TemplateAssignmentError
- type TemplateAssociation
- type TemplatesCollection
- func (c TemplatesCollection) AssignToClient(conn ConnectionInterface, clientID, templateID string) error
- func (c TemplatesCollection) AssignToNotification(conn ConnectionInterface, clientID, notificationID, templateID string) error
- func (c TemplatesCollection) Create(connection ConnectionInterface, template Template) (Template, error)
- func (c TemplatesCollection) Delete(connection ConnectionInterface, templateID string) error
- func (c TemplatesCollection) ListAssociations(conn ConnectionInterface, templateID string) ([]TemplateAssociation, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionInterface ¶
type ConnectionInterface interface { models.ConnectionInterface }
type DatabaseInterface ¶
type DatabaseInterface interface { models.DatabaseInterface }
type TemplateAssignmentError ¶
type TemplateAssignmentError struct {
Err error
}
func (TemplateAssignmentError) Error ¶
func (e TemplateAssignmentError) Error() string
type TemplateAssociation ¶
type TemplatesCollection ¶
type TemplatesCollection struct {
// contains filtered or unexported fields
}
func NewTemplatesCollection ¶
func NewTemplatesCollection(clientsRepo clientsRepository, kindsRepo kindsRepository, templatesRepo templatesRepository) TemplatesCollection
func (TemplatesCollection) AssignToClient ¶
func (c TemplatesCollection) AssignToClient(conn ConnectionInterface, clientID, templateID string) error
func (TemplatesCollection) AssignToNotification ¶
func (c TemplatesCollection) AssignToNotification(conn ConnectionInterface, clientID, notificationID, templateID string) error
func (TemplatesCollection) Create ¶
func (c TemplatesCollection) Create(connection ConnectionInterface, template Template) (Template, error)
func (TemplatesCollection) Delete ¶
func (c TemplatesCollection) Delete(connection ConnectionInterface, templateID string) error
func (TemplatesCollection) ListAssociations ¶
func (c TemplatesCollection) ListAssociations(conn ConnectionInterface, templateID string) ([]TemplateAssociation, error)
Click to show internal directories.
Click to hide internal directories.