webgen

package
v0.0.0-...-fdde285 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzed

type Analyzed struct {
	Bindings struct {
		Path      []*PathBinding
		Query     []*QueryBinding
		Component tinypkg.BindingList
		Data      []*DataBinding
	}
	Vars struct {
		Ignored  []*tinypkg.Var // rename: context.Context, etc...
		Provider *tinypkg.Var
	}
	Names struct {
		ActionFunc     string // core action
		ActionFuncArgs []fmt.Stringer
		QueryParams    *string
		PathParams     *string
	}

	Name     string
	PathInfo *web.PathInfo
	// contains filtered or unexported fields
}

func Analyze

func Analyze(
	here *tinypkg.Package,
	resolver *resolve.Resolver,
	tracker *resolve.Tracker,
	info *web.PathInfo,
	extraDefs []*resolve.Def,
	provider *tinypkg.Var,
) (*Analyzed, error)

func (*Analyzed) CollectImports

func (a *Analyzed) CollectImports(collector *tinypkg.ImportCollector) error

type DataBinding

type DataBinding struct {
	Name string
	Sym  tinypkg.Node
}

type PathBinding

type PathBinding struct {
	Name string // go's name
	Var  *web.PathVar
	Sym  tinypkg.Node
}

type QueryBinding

type QueryBinding struct {
	Name string
	Sym  tinypkg.Node
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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