renderer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataLoaderRenderer

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

func NewDataLoaderRenderer

func NewDataLoaderRenderer(
	structs []model.Struct,
	options *opts.Options,
	importer *imports.ImportBuilder,
) *DataLoaderRenderer

func (*DataLoaderRenderer) Render

func (r *DataLoaderRenderer) Render() ([]*plugin.File, error)

type DataLoaderTplData

type DataLoaderTplData struct {
	Struct               model.Struct
	Package              string
	PrimaryKeyColumnName string
	PrimaryKeyFieldType  string
	PrimaryKeyFieldName  string
	Imports              []imports.Import
}

type LoaderFactoryTplData

type LoaderFactoryTplData struct {
	Structs      []model.Struct
	Package      string
	Imports      []imports.Import
	ModelPackage string
}

Jump to

Keyboard shortcuts

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