Documentation
¶
Index ¶
- Variables
- type Proxy
- type SSIAttributes
- type SSIElement
- func (s *SSIElement) GetErrorTag() error
- func (s *SSIElement) GetTimeoutTag() error
- func (s *SSIElement) ReplaceWithHTML(html string) error
- func (s *SSIElement) SetFilterIncludes(h string) error
- func (s *SSIElement) SetName(name string) error
- func (s *SSIElement) SetSrc(src string) error
- func (s *SSIElement) SetTemplate(h string) error
- func (s *SSIElement) SetTimeout(t string) error
- func (s *SSIElement) SetupFallback(err error) error
- func (s *SSIElement) SetupSuccess(body []byte) error
- type TemplateContext
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRequest = errors.New("request error") ErrTimeout = errors.New("timeout error") ErrInvalidStatusCode = errors.New("invalid status code") ErrInvalidContentType = errors.New("invalid content type") )
View Source
var Log = logger.NewStdLogger(true, true, true, true, false)
View Source
var ServerLogging = false
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct { ReverseProxy *httputil.ReverseProxy ProxyURL string Handler *httpcache.Handler // contains filtered or unexported fields }
type SSIAttributes ¶
type SSIElement ¶
type SSIElement struct { Tag string HasErrorTag bool HasTimeoutTag bool Attributes SSIAttributes Element *goquery.Selection // contains filtered or unexported fields }
func (*SSIElement) GetErrorTag ¶
func (s *SSIElement) GetErrorTag() error
GetErrorTag find the error tag
func (*SSIElement) GetTimeoutTag ¶
func (s *SSIElement) GetTimeoutTag() error
GetTimeoutTag find the timeout tag
func (*SSIElement) ReplaceWithHTML ¶
func (s *SSIElement) ReplaceWithHTML(html string) error
ReplaceWithHTML use the content from the ssi service and parse the fragment as go template (optionally)
func (*SSIElement) SetFilterIncludes ¶
func (s *SSIElement) SetFilterIncludes(h string) error
SetFilterIncludes enable filter of dynamic includes like <script> and <link> tags
func (*SSIElement) SetName ¶
func (s *SSIElement) SetName(name string) error
SetName set the name of the ssi fragment
func (*SSIElement) SetSrc ¶
func (s *SSIElement) SetSrc(src string) error
SetSrc set the source of the ssi fragment
func (*SSIElement) SetTemplate ¶
func (s *SSIElement) SetTemplate(h string) error
SetTemplate enables go templating
func (*SSIElement) SetTimeout ¶
func (s *SSIElement) SetTimeout(t string) error
SetTimeout set the timeout
func (*SSIElement) SetupFallback ¶
func (s *SSIElement) SetupFallback(err error) error
SetupFallback replace the fragment with the correct fallback content
func (*SSIElement) SetupSuccess ¶
func (s *SSIElement) SetupSuccess(body []byte) error
SetupSuccess replace the fragment with the correct content
Click to show internal directories.
Click to hide internal directories.