Documentation
¶
Index ¶
- func NewPagePrinter(w io.Writer, ctx context.Context, static bool, importMap []byte, ...) gox.Printer
- func NewResourcePrinter(printer gox.Printer) gox.Printer
- type HandlerFunc
- type HandlerSimpleFunc
- type PayloadPrinter
- type Source
- type SourceBytes
- type SourceExternal
- type SourceFS
- type SourceHook
- type SourceLocalFS
- type SourceProxy
- type SourceStatic
- type SourceString
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPagePrinter ¶
Types ¶
type HandlerFunc ¶
type HandlerSimpleFunc ¶
type HandlerSimpleFunc = func(w http.ResponseWriter, r *http.Request)
type PayloadPrinter ¶
type PayloadPrinter struct {
// contains filtered or unexported fields
}
func NewPayloadPrinter ¶
func NewPayloadPrinter(disableGzip bool) *PayloadPrinter
func (*PayloadPrinter) Finalize ¶
func (b *PayloadPrinter) Finalize()
func (*PayloadPrinter) Payload ¶
func (b *PayloadPrinter) Payload() action.Payload
func (*PayloadPrinter) Release ¶
func (b *PayloadPrinter) Release()
type Source ¶
type Source interface {
// Handler serves the resource request.
Handler() HandlerFunc
gox.Modify
// contains filtered or unexported methods
}
Source describes content or a URL that can be attached to HTML resource attributes and, when needed, served by Doors.
type SourceBytes ¶
type SourceBytes []byte
func (SourceBytes) Handler ¶
func (s SourceBytes) Handler() HandlerFunc
func (SourceBytes) StaticEntry ¶
func (s SourceBytes) StaticEntry() resources.StaticEntry
type SourceExternal ¶
type SourceExternal string
func (SourceExternal) Handler ¶
func (s SourceExternal) Handler() HandlerFunc
type SourceFS ¶
func (SourceFS) Handler ¶
func (s SourceFS) Handler() HandlerFunc
func (SourceFS) StaticEntry ¶
func (s SourceFS) StaticEntry() resources.StaticEntry
type SourceHook ¶
func (SourceHook) Handler ¶
func (s SourceHook) Handler() HandlerFunc
type SourceLocalFS ¶
type SourceLocalFS string
func (SourceLocalFS) Handler ¶
func (s SourceLocalFS) Handler() HandlerFunc
func (SourceLocalFS) StaticEntry ¶
func (s SourceLocalFS) StaticEntry() resources.StaticEntry
type SourceProxy ¶
type SourceProxy string
func (SourceProxy) Handler ¶
func (s SourceProxy) Handler() HandlerFunc
type SourceStatic ¶
type SourceStatic interface {
Source
// StaticEntry returns the underlying static resource description.
StaticEntry() resources.StaticEntry
}
SourceStatic is a Source that can also be mounted at a stable public path.
type SourceString ¶
type SourceString string
func (SourceString) Handler ¶
func (s SourceString) Handler() HandlerFunc
func (SourceString) StaticEntry ¶
func (s SourceString) StaticEntry() resources.StaticEntry
Click to show internal directories.
Click to hide internal directories.