store

package
v0.0.0-...-97f3403 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustOpen

func MustOpen(dbName string) *gorm.DB

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

type NewContactStoreParams struct {
	DB *gorm.DB
}

Jump to

Keyboard shortcuts

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