wiregen

package
v0.0.0-...-4f71f7c Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WireAddModuleDto

type WireAddModuleDto struct {
	WireDto
	Import     ast.ImportSpec
	Dependency ast.WireDependencyInjection
}

type WireDto

type WireDto struct {
	ProjectPath string
	// function name to inject modules
	FunctionName string
	GomodName    string
}

type WireEntryPointDto

type WireEntryPointDto struct {
	WireDto
	Import ast.ImportSpec
	Return *ast.FunctionReturnSpecList
}

type WireGen

type WireGen interface {
	CreateWireFiles(dto WireDto) error
	CreateWireEntryPoint(dto WireEntryPointDto) error
	AddDependencyAfterCreatingModule(dto WireAddModuleDto) error
}

type WireGenImpl

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

func NewWire

func NewWire(
	fs database.FileSystem,
) *WireGenImpl

func (WireGenImpl) AddDependencyAfterCreatingModule

func (s WireGenImpl) AddDependencyAfterCreatingModule(dto WireAddModuleDto) error

func (WireGenImpl) CreateWireEntryPoint

func (s WireGenImpl) CreateWireEntryPoint(dto WireEntryPointDto) error

func (WireGenImpl) CreateWireFiles

func (s WireGenImpl) CreateWireFiles(dto WireDto) error

Jump to

Keyboard shortcuts

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