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 SourceBytes
- type SourceExternal
- type SourceFS
- type SourceHandler
- 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 SourceBytes ¶
type SourceBytes []byte
func (SourceBytes) Handler ¶
func (s SourceBytes) Handler() HandlerFunc
func (SourceBytes) StaticEntry ¶
func (s SourceBytes) StaticEntry() resources.StaticEntry
type SourceFS ¶
func (SourceFS) Handler ¶
func (s SourceFS) Handler() HandlerFunc
func (SourceFS) StaticEntry ¶
func (s SourceFS) StaticEntry() resources.StaticEntry
type SourceHandler ¶ added in v0.8.5
type SourceHandler interface {
gox.Modify
Handler() HandlerFunc
}
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 {
SourceHandler
StaticEntry() resources.StaticEntry
// contains filtered or unexported methods
}
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.