Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Host ¶
type Host struct { // Host name Name string // Main directory DocumentRoot string // Main path Path string // Settings Settings *dig.InterfaceMap // Template TemplateGroup *template.Template // Lock for template *sync.RWMutex // Function map for template. template.FuncMap // Standard request. *http.Request // Standard response writer. http.ResponseWriter // File watcher Watcher *fsnotify.Watcher // Template root TemplateRoot string // contains filtered or unexported fields }
Host is the struct that represents virtual hosts.
func (*Host) Close ¶
func (host *Host) Close()
Close removes the watcher that is currently associated with the host.
func (*Host) GetContentPath ¶
GetContentPath provides the relative path to site content
func (*Host) GetIndexPath ¶ added in v0.9.3
GetIndexPath returns the absolute path to the search index for a host.
Click to show internal directories.
Click to hide internal directories.