Documentation ¶
Index ¶
- Constants
- type Contact
- type ContactsService
- type ContactsServiceImpl
- func (c *ContactsServiceImpl) CreateContacts(ctx context.Context, contact Contact) error
- func (c *ContactsServiceImpl) Delete(ctx context.Context, contact Contact) error
- func (c *ContactsServiceImpl) FindContactsByAccountId(ctx context.Context, id string) ([]Contact, error)
- func (c *ContactsServiceImpl) FindContactsById(ctx context.Context, id string) (Contact, error)
- func (c *ContactsServiceImpl) GetAllContacts(ctx context.Context) ([]Contact, error)
- func (c *ContactsServiceImpl) Modify(ctx context.Context, contact Contact) (bool, error)
Constants ¶
View Source
const ( NULL int64 = iota ID_CARD PASSPORT OTHER )
DocumentType enum
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContactsService ¶
type ContactsService interface { // Find a contact using its `id` FindContactsById(ctx context.Context, id string) (Contact, error) // Find all contacts associated with an account with ID `id` FindContactsByAccountId(ctx context.Context, id string) ([]Contact, error) // Create a new contact CreateContacts(ctx context.Context, c Contact) error // Delete an existing contact Delete(ctx context.Context, c Contact) error // Get all existing contacts GetAllContacts(ctx context.Context) ([]Contact, error) // Modify an existing contact Modify(ctx context.Context, contact Contact) (bool, error) }
Contacts Service manages contacts for users
type ContactsServiceImpl ¶
type ContactsServiceImpl struct {
// contains filtered or unexported fields
}
func NewContactsServiceImpl ¶
func NewContactsServiceImpl(ctx context.Context, db backend.NoSQLDatabase) (*ContactsServiceImpl, error)
func (*ContactsServiceImpl) CreateContacts ¶
func (c *ContactsServiceImpl) CreateContacts(ctx context.Context, contact Contact) error
func (*ContactsServiceImpl) Delete ¶
func (c *ContactsServiceImpl) Delete(ctx context.Context, contact Contact) error
func (*ContactsServiceImpl) FindContactsByAccountId ¶
func (*ContactsServiceImpl) FindContactsById ¶
func (*ContactsServiceImpl) GetAllContacts ¶
func (c *ContactsServiceImpl) GetAllContacts(ctx context.Context) ([]Contact, error)
Click to show internal directories.
Click to hide internal directories.