Documentation ¶
Index ¶
- type BundleGroup
- func (l *BundleGroup) AcceptComponent(ctx context.Context, c srcpack.PackComponent, cacheOpts *webwrap.CacheDOMOpts) error
- func (l *BundleGroup) AcceptComponents(ctx context.Context, comps []srcpack.PackComponent, ...) error
- func (opts *BundleGroup) WriteLibout(files Libout, fOpts *FilePathOpts) error
- type BundleGroupOpts
- type BundleWriter
- type FilePathOpts
- type GOLibFile
- type GOLibout
- type Libout
- type LiboutFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BundleGroup ¶
type BundleGroup struct { *BundleGroupOpts // contains filtered or unexported fields }
func New ¶
func New(opts *BundleGroupOpts) *BundleGroup
func (*BundleGroup) AcceptComponent ¶ added in v0.3.6
func (l *BundleGroup) AcceptComponent(ctx context.Context, c srcpack.PackComponent, cacheOpts *webwrap.CacheDOMOpts) error
AcceptComponent collects the required DOM elements and applies it to the component body map
func (*BundleGroup) AcceptComponents ¶
func (l *BundleGroup) AcceptComponents(ctx context.Context, comps []srcpack.PackComponent, cacheOpts *webwrap.CacheDOMOpts) error
AcceptComponents collects the required DOM elements and applies it to the component body map
func (*BundleGroup) WriteLibout ¶
func (opts *BundleGroup) WriteLibout(files Libout, fOpts *FilePathOpts) error
type BundleGroupOpts ¶
type BundleWriter ¶ added in v0.3.6
type BundleWriter interface { WriteLibout(files Libout, fOpts *FilePathOpts) error AcceptComponent(ctx context.Context, c srcpack.PackComponent, cacheOpts *webwrap.CacheDOMOpts) error AcceptComponents(ctx context.Context, comps []srcpack.PackComponent, cacheOpts *webwrap.CacheDOMOpts) error }
type FilePathOpts ¶
type GOLibFile ¶
GOLibFile is an implementation of the libout.LiboutFile that represents a single golang generated file
type GOLibout ¶
type GOLibout struct {
// contains filtered or unexported fields
}
GOLibOut is an implementation of the libout.Libout interface which is an auto generated set of files that represent some bundling process.
func (*GOLibout) EnvFile ¶
func (l *GOLibout) EnvFile(bg *BundleGroup) (LiboutFile, error)
type Libout ¶
type Libout interface { TestFile(packageName string) (LiboutFile, error) HTTPFile(packageName string) (LiboutFile, error) EnvFile(*BundleGroup) (LiboutFile, error) }
Libout represents autogenerated output created by the compiler
func NewGOLibout ¶
func NewGOLibout(testFile embedutils.FileReader, httpFile embedutils.FileReader) Libout
type LiboutFile ¶
Click to show internal directories.
Click to hide internal directories.