generator

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

Generator is an implementation of Interface that generates content.

func NewGenerator added in v0.8.0

func NewGenerator(pm *describer.PathMatcher, dashConfig config.Dash) (*Generator, error)

NewGenerator creates a Generator.

func (*Generator) Generate

func (g *Generator) Generate(ctx context.Context, contentPath string, opts Options) (component.ContentResponse, error)

Generate generates a content response.

type Interface added in v0.8.0

type Interface interface {
	Generate(ctx context.Context, contentPath string, opts Options) (component.ContentResponse, error)
}

Interface generates content.

type Options

type Options struct {
	LabelSet *kLabels.Set
}

Options are additional options to pass a Generator

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL