Documentation ¶
Index ¶
- func Download(rd io.Reader, filename string, w http.ResponseWriter, r *http.Request)
- type Config
- type NLgids
- func (n *NLgids) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error)
- func (n *NLgids) WebBooking(w http.ResponseWriter, r *http.Request) (int, error)
- func (n *NLgids) WebCalendar(w http.ResponseWriter, r *http.Request) (int, error)
- func (n *NLgids) WebConform(w http.ResponseWriter, r *http.Request) (int, error)
- func (n *NLgids) WebContact(w http.ResponseWriter, r *http.Request) (int, error)
- func (n *NLgids) WebInvoice(w http.ResponseWriter, r *http.Request) (int, error)
- func (n *NLgids) WebTocht(w http.ResponseWriter, r *http.Request) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Recipients []string // Who gets nlgids email. Subject string // Calendar auth subject. Secret string // File containing the google service account secret. Template string // Directory where the templates live. Tours string // tours.json location, defaults to /var/www/nlgids.london/tours.json }
Config holds the Caddy file directives. Typically these will look like:
nlgids { recipients ans@nlgids.london miek@miek.nl subject ans@nlgids.london secret /etc/caddy/NLgids-fcbeb7928cdb.json template /etc/caddy/tmpl tours /var/www/nlgids.london/tours.json }
type NLgids ¶
type NLgids struct { Next httpserver.Handler Config *Config }
NLgids is the NLgids handler.
func (*NLgids) WebBooking ¶
WebBooking sends an email to the recipients with a booking made from the website.
func (*NLgids) WebCalendar ¶
WebCalendar returns a calendar in table form. All-day events from the subject are greyed out, as are pasted days.
func (*NLgids) WebConform ¶
WebConform sends an email to the recipients from a invoice form from the website.
func (*NLgids) WebContact ¶
WebContact sends an email to the recipients from a contact form from the website.
func (*NLgids) WebInvoice ¶
WebInvoice sends an email to the recipients from a invoice form from the website.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package calendar generates and has utlilty functions to generate an HTML calendar for use in nlgids.
|
Package calendar generates and has utlilty functions to generate an HTML calendar for use in nlgids. |
Click to show internal directories.
Click to hide internal directories.