Documentation
¶
Overview ¶
Package git is a ServerController that serves templates from a git repository via the installed `git` binary. JSON type: "git".
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// Repo is the git repository URL or path. Required.
Repo string `json:"repo,omitempty" arg:"--git-repo"`
// Ref is the branch/tag/ref to track. Empty uses the remote default.
Ref string `json:"ref,omitempty" arg:"--git-ref"`
// Interval between polls. Default 15s.
Interval xtemplate.Duration `json:"interval,omitempty" arg:"--git-interval"`
// Path is the subdirectory inside the clone that holds templates. Default "templates".
// Must be a relative path with no ".." segments (confined to the clone).
Path string `json:"path,omitempty" arg:"-t,--template-dir,--templates-dir" default:"templates"`
}
Controller polls a remote (or local) git repo and reloads when the ref moves. JSON type: "git".
Click to show internal directories.
Click to hide internal directories.