collections

package
v0.0.0-...-ca24b28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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 Template

type Template struct {
	ID       string
	Name     string
	Text     string
	HTML     string
	Subject  string
	Metadata string
}

type TemplateAssignmentError

type TemplateAssignmentError struct {
	Err error
}

func (TemplateAssignmentError) Error

func (e TemplateAssignmentError) Error() string

type TemplateAssociation

type TemplateAssociation struct {
	ClientID       string
	NotificationID string
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL