Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultBind = ":8152"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RWTxt ¶ added in v1.2.0
type RWTxt struct {
Config Config
// contains filtered or unexported fields
}
type TemplateRender ¶
type TemplateRender struct {
Title string
Page string
Rendered template.HTML
File db.File
IntroText template.JS
Rows int
RandomUUID string
Domain string
DomainID int
DomainKey string
DomainIsPrivate bool
DomainIsPublic bool
PrivateEnvironment bool
DomainValue template.HTMLAttr
DomainList []string
DomainKeys map[string]string
DefaultDomain string
SignedIn bool
Message string
NumResults int
Files []db.File
MostActiveList []db.File
SimilarFiles []db.File
AllFiles []db.File
Search string
DomainExists bool
ShowCookieMessage bool
EditOnly bool
Languages []string
LanguageJS []template.JS
RWTxtConfig Config
RenderTime time.Time
UTCOffset int
Options db.DomainOptions
CustomIntro template.HTML
CustomCSS template.CSS
// contains filtered or unexported fields
}
func NewTemplateRender ¶ added in v1.2.0
func NewTemplateRender(rwt *RWTxt) *TemplateRender
Click to show internal directories.
Click to hide internal directories.