Documentation ¶
Index ¶
- Constants
- type HttpIndexContent
- type HttpIndexRenderer
- func (this *HttpIndexRenderer) IsModifiedSince(docroot string, req *http.Request, t time.Time) bool
- func (this *HttpIndexRenderer) New(gopi.Config) error
- func (this *HttpIndexRenderer) ServeContent(docroot string, req *http.Request) (gopi.HttpRenderContext, error)
- func (this *HttpIndexRenderer) String() string
- type HttpTextRenderer
- func (this *HttpTextRenderer) IsModifiedSince(docroot string, req *http.Request, t time.Time) bool
- func (this *HttpTextRenderer) New(gopi.Config) error
- func (this *HttpTextRenderer) ServeContent(docroot string, req *http.Request) (gopi.HttpRenderContext, error)
- func (this *HttpTextRenderer) String() string
- type IndexContent
- type TextContent
Constants ¶
View Source
const (
EXT = ".txt .tmpl .md .go"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpIndexContent ¶
type HttpIndexContent struct { Path string `json:"path"` Content []IndexContent `json:"content"` }
type HttpIndexRenderer ¶
type HttpIndexRenderer struct { gopi.Unit gopi.Logger gopi.HttpTemplate // contains filtered or unexported fields }
func (*HttpIndexRenderer) IsModifiedSince ¶
func (*HttpIndexRenderer) New ¶ added in v3.0.26
func (this *HttpIndexRenderer) New(gopi.Config) error
func (*HttpIndexRenderer) ServeContent ¶
func (this *HttpIndexRenderer) ServeContent(docroot string, req *http.Request) (gopi.HttpRenderContext, error)
func (*HttpIndexRenderer) String ¶
func (this *HttpIndexRenderer) String() string
type HttpTextRenderer ¶
type HttpTextRenderer struct { gopi.Unit gopi.Logger gopi.HttpTemplate // contains filtered or unexported fields }
func (*HttpTextRenderer) IsModifiedSince ¶
func (*HttpTextRenderer) New ¶ added in v3.0.26
func (this *HttpTextRenderer) New(gopi.Config) error
func (*HttpTextRenderer) ServeContent ¶
func (this *HttpTextRenderer) ServeContent(docroot string, req *http.Request) (gopi.HttpRenderContext, error)
func (*HttpTextRenderer) String ¶
func (this *HttpTextRenderer) String() string
type IndexContent ¶
type TextContent ¶
Click to show internal directories.
Click to hide internal directories.