generator

package
v1.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRepository

func GenerateRepository(persistPackage, domainPackage string, persistStructModel, domainStructModel code.Struct,
	interfaceName string, methodSpecs []spec.MethodSpec, generator RepositoryGenerator, genMapper, genConstructor bool) (string, error)

GenerateRepository generates repository implementation from repository interface specification

Types

type RepositoryGenerator

type RepositoryGenerator interface {
	GenerateConstructor(buffer io.Writer) error
	GenerateMethod(methodSpec spec.MethodSpec, buffer io.Writer) error
}

Jump to

Keyboard shortcuts

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