Documentation ¶
Index ¶
- func MustOpen(dbName string) *gorm.DB
- type ContactStore
- func (s *ContactStore) CreateContact(fname, lname, email string, subscribed, unsubscribed bool) error
- func (s *ContactStore) GetContact(email string) (*contacts.Contact, error)
- func (s *ContactStore) GetSubscribersList() (*[]contacts.Contact, error)
- func (s *ContactStore) SearchContacts(str string) (*[]contacts.Contact, error)
- type NewContactStoreParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContactStore ¶
type ContactStore struct {
// contains filtered or unexported fields
}
func NewContactStore ¶
func NewContactStore(params NewContactStoreParams) *ContactStore
func (*ContactStore) CreateContact ¶
func (s *ContactStore) CreateContact(fname, lname, email string, subscribed, unsubscribed bool) error
func (*ContactStore) GetContact ¶
func (s *ContactStore) GetContact(email string) (*contacts.Contact, error)
func (*ContactStore) GetSubscribersList ¶
func (s *ContactStore) GetSubscribersList() (*[]contacts.Contact, error)
func (*ContactStore) SearchContacts ¶
func (s *ContactStore) SearchContacts(str string) (*[]contacts.Contact, error)
type NewContactStoreParams ¶
Click to show internal directories.
Click to hide internal directories.