Documentation
¶
Index ¶
- type BaseProfile
- type BuildErrors
- type BuildProfiles
- type FormatCommon
- type FormatDefault
- type FormatIIFE
- type FormatModule
- type FormatRaw
- type Kind
- type Registry
- func (rg *Registry) MainScript() *Resource
- func (rg *Registry) MainStyle() *Resource
- func (r *Registry) Script(entry ScriptEntry, format ScriptFormat, profile string, mode ResourceMode) (*Resource, error)
- func (rg *Registry) Serve(id string, w http.ResponseWriter, r *http.Request)
- func (r *Registry) Static(entry StaticEntry, contentType string) (*Resource, error)
- func (r *Registry) Style(entry StyleEntry, minify bool, mode ResourceMode) (*Resource, error)
- type Resource
- type ResourceMode
- type ScriptBytes
- type ScriptEntry
- type ScriptFS
- type ScriptFormat
- type ScriptInlineBytes
- type ScriptInlineFS
- type ScriptInlinePath
- type ScriptInlineString
- type ScriptPath
- type ScriptString
- type StaticBytes
- type StaticEntry
- type StaticFS
- type StaticPath
- type StaticString
- type StyleBytes
- type StyleEntry
- type StyleFS
- type StylePath
- type StyleString
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseProfile ¶
type BaseProfile struct {
}
func (BaseProfile) Options ¶
func (b BaseProfile) Options(profile string) api.BuildOptions
type BuildErrors ¶
func (BuildErrors) Error ¶
func (b BuildErrors) Error() string
type BuildProfiles ¶
type BuildProfiles interface {
Options(profile string) api.BuildOptions
}
type FormatCommon ¶
type FormatCommon struct {
Bundle bool
}
func (FormatCommon) Apply ¶
func (f FormatCommon) Apply(opt *api.BuildOptions)
type FormatDefault ¶
type FormatDefault struct{}
func (FormatDefault) Apply ¶
func (f FormatDefault) Apply(opt *api.BuildOptions)
type FormatIIFE ¶
func (FormatIIFE) Apply ¶
func (f FormatIIFE) Apply(opt *api.BuildOptions)
type FormatModule ¶
type FormatModule struct {
Bundle bool
}
func (FormatModule) Apply ¶
func (f FormatModule) Apply(opt *api.BuildOptions)
type FormatRaw ¶
type FormatRaw struct{}
func (FormatRaw) Apply ¶
func (f FormatRaw) Apply(opt *api.BuildOptions)
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry(s settings) *Registry
func (*Registry) MainScript ¶
func (*Registry) Script ¶
func (r *Registry) Script(entry ScriptEntry, format ScriptFormat, profile string, mode ResourceMode) (*Resource, error)
func (*Registry) Static ¶
func (r *Registry) Static(entry StaticEntry, contentType string) (*Resource, error)
func (*Registry) Style ¶
func (r *Registry) Style(entry StyleEntry, minify bool, mode ResourceMode) (*Resource, error)
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func NewResource ¶
func (*Resource) ServeCache ¶
type ResourceMode ¶
type ResourceMode int
const ( ModeHost ResourceMode = iota ModeCache ModeNoCache )
type ScriptBytes ¶
func (ScriptBytes) Apply ¶
func (e ScriptBytes) Apply(opt *api.BuildOptions) error
func (ScriptBytes) Read ¶
func (e ScriptBytes) Read() ([]byte, error)
type ScriptEntry ¶
type ScriptEntry interface {
Read() ([]byte, error)
Apply(*api.BuildOptions) error
// contains filtered or unexported methods
}
type ScriptFormat ¶
type ScriptFormat interface {
Apply(*api.BuildOptions)
// contains filtered or unexported methods
}
type ScriptInlineBytes ¶
func (ScriptInlineBytes) Apply ¶
func (e ScriptInlineBytes) Apply(opt *api.BuildOptions) error
func (ScriptInlineBytes) Read ¶
func (e ScriptInlineBytes) Read() ([]byte, error)
type ScriptInlineFS ¶
func (ScriptInlineFS) Apply ¶
func (e ScriptInlineFS) Apply(opt *api.BuildOptions) error
func (ScriptInlineFS) Read ¶
func (e ScriptInlineFS) Read() ([]byte, error)
type ScriptInlinePath ¶
type ScriptInlinePath struct {
Path string
}
func (ScriptInlinePath) Apply ¶
func (e ScriptInlinePath) Apply(opt *api.BuildOptions) error
func (ScriptInlinePath) Read ¶
func (e ScriptInlinePath) Read() ([]byte, error)
type ScriptInlineString ¶
func (ScriptInlineString) Apply ¶
func (e ScriptInlineString) Apply(opt *api.BuildOptions) error
func (ScriptInlineString) Read ¶
func (e ScriptInlineString) Read() ([]byte, error)
type ScriptPath ¶
type ScriptPath struct {
Path string
}
func (ScriptPath) Apply ¶
func (e ScriptPath) Apply(opt *api.BuildOptions) error
func (ScriptPath) Read ¶
func (e ScriptPath) Read() ([]byte, error)
type ScriptString ¶
func (ScriptString) Apply ¶
func (e ScriptString) Apply(opt *api.BuildOptions) error
func (ScriptString) Read ¶
func (e ScriptString) Read() ([]byte, error)
type StaticBytes ¶
type StaticBytes struct {
Content []byte
}
func (StaticBytes) Read ¶
func (e StaticBytes) Read() ([]byte, error)
type StaticEntry ¶
type StaticPath ¶
type StaticPath struct {
Path string
}
func (StaticPath) Read ¶
func (e StaticPath) Read() ([]byte, error)
type StaticString ¶
type StaticString struct {
Content string
}
func (StaticString) Read ¶
func (e StaticString) Read() ([]byte, error)
type StyleBytes ¶
type StyleBytes struct {
Content []byte
}
func (StyleBytes) Read ¶
func (e StyleBytes) Read() ([]byte, error)
type StyleEntry ¶
type StyleString ¶
type StyleString struct {
Content string
}
func (StyleString) Read ¶
func (e StyleString) Read() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.