handlers

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeTitle

func MakeTitle(str string) string

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) 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
}

Jump to

Keyboard shortcuts

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