internal

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CQRS        annotation = "@CQRS"
	Query       annotation = "@Query"
	Command     annotation = "@Command"
	QueryPath   annotation = "@QueryPath"
	CommandPath annotation = "@CommandPath"
)

Variables

This section is empty.

Functions

func ExtractValue added in v1.2.6

func ExtractValue(s string, annotation string) (string, bool)

Types

type File added in v1.2.6

type File struct {
	Type          string
	AbsFilename   string
	Package       string
	Endpoint      string
	LowerEndpoint string
}

func NewCommandFile added in v1.2.6

func NewCommandFile(endpoint string, commandDir string) *File

func NewFileFromComment added in v1.2.6

func NewFileFromComment(endpoint string, queryDir, commandDir string, comments []string) *File

func NewQueryFile added in v1.2.6

func NewQueryFile(endpoint string, queryDir string) *File

func (File) Gen added in v1.2.6

func (v File) Gen() error

func (File) GenCommand added in v1.2.6

func (v File) GenCommand() error

func (File) GenQuery added in v1.2.6

func (v File) GenQuery() error

type Path added in v1.2.6

type Path struct {
	Query   string
	Command string
}

func NewPath added in v1.2.6

func NewPath(comments []string) *Path

Jump to

Keyboard shortcuts

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