Documentation ¶
Index ¶
- func MakeTitle(str string) string
- type EmailDetails
- func (n *EmailDetails) CreateTemplateHandler(w http.ResponseWriter, r *http.Request)
- func (n *EmailDetails) GetContacts(w http.ResponseWriter, r *http.Request)
- func (n *EmailDetails) HideHandler(w http.ResponseWriter, r *http.Request)
- func (n *EmailDetails) HomeHandler(w http.ResponseWriter, r *http.Request)
- func (n *EmailDetails) NewContactHandler(w http.ResponseWriter, r *http.Request)
- func (n *EmailDetails) RenderHandler(w http.ResponseWriter, r *http.Request)
- func (n *EmailDetails) SearchThruContacts(email string) []c.Contact
- func (n *EmailDetails) SendMailHandler(w http.ResponseWriter, r *http.Request)
- func (n *EmailDetails) ShowHandler(w http.ResponseWriter, r *http.Request)
- func (n *EmailDetails) TemplateHandler(w http.ResponseWriter, r *http.Request)
- func (n *EmailDetails) UpdateDetailsHandler(w http.ResponseWriter, r *http.Request)
- type EmailDetailsParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EmailDetails ¶
type EmailDetails struct { Headers views.EmailHeaders Template string Store c.ContactStore }
func NewEmailDetails ¶
func NewEmailDetails(params *EmailDetailsParams) *EmailDetails
func (*EmailDetails) CreateTemplateHandler ¶
func (n *EmailDetails) CreateTemplateHandler(w http.ResponseWriter, r *http.Request)
func (*EmailDetails) GetContacts ¶
func (n *EmailDetails) GetContacts(w http.ResponseWriter, r *http.Request)
func (*EmailDetails) HideHandler ¶
func (n *EmailDetails) HideHandler(w http.ResponseWriter, r *http.Request)
func (*EmailDetails) HomeHandler ¶
func (n *EmailDetails) HomeHandler(w http.ResponseWriter, r *http.Request)
https://medium.com/@dhanushgopinath/sending-html-emails-using-templates-in-golang-9e953ca32f3d
func (*EmailDetails) NewContactHandler ¶
func (n *EmailDetails) NewContactHandler(w http.ResponseWriter, r *http.Request)
func (*EmailDetails) RenderHandler ¶
func (n *EmailDetails) RenderHandler(w http.ResponseWriter, r *http.Request)
func (*EmailDetails) SearchThruContacts ¶
func (n *EmailDetails) SearchThruContacts(email string) []c.Contact
needs to be refactored
func (*EmailDetails) SendMailHandler ¶
func (n *EmailDetails) SendMailHandler(w http.ResponseWriter, r *http.Request)
ensure contact name is going to the correct contact
func (*EmailDetails) ShowHandler ¶
func (n *EmailDetails) ShowHandler(w http.ResponseWriter, r *http.Request)
func (*EmailDetails) TemplateHandler ¶
func (n *EmailDetails) TemplateHandler(w http.ResponseWriter, r *http.Request)
func (*EmailDetails) UpdateDetailsHandler ¶
func (n *EmailDetails) UpdateDetailsHandler(w http.ResponseWriter, r *http.Request)
create a visual indication that the details have been updated
type EmailDetailsParams ¶
type EmailDetailsParams struct { Headers views.EmailHeaders Template string Store c.ContactStore }
Click to show internal directories.
Click to hide internal directories.