Documentation
¶
Overview ¶
Package customAttribute handles the management of custom attributes for contacts and conversations.
Index ¶
- type Manager
- func (m *Manager) Create(attr models.CustomAttribute) (models.CustomAttribute, error)
- func (m *Manager) Delete(id int) error
- func (m *Manager) Get(id int) (models.CustomAttribute, error)
- func (m *Manager) GetAll(appliesTo string) ([]models.CustomAttribute, error)
- func (m *Manager) Update(id int, attr models.CustomAttribute) (models.CustomAttribute, error)
- type Opts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) Create ¶
func (m *Manager) Create(attr models.CustomAttribute) (models.CustomAttribute, error)
Create creates a new custom attribute.
func (*Manager) Get ¶
func (m *Manager) Get(id int) (models.CustomAttribute, error)
Get retrieves a custom attribute by ID.
func (*Manager) GetAll ¶
func (m *Manager) GetAll(appliesTo string) ([]models.CustomAttribute, error)
GetAll retrieves all custom attributes.
func (*Manager) Update ¶
func (m *Manager) Update(id int, attr models.CustomAttribute) (models.CustomAttribute, error)
Update updates a custom attribute by ID.
Click to show internal directories.
Click to hide internal directories.