tools/

directory
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: MIT

Directories

Path Synopsis
Package decorgen generates decorators: for each named interface, a Decorated<Name> type whose every operation — a method taking a context.Context first and returning an error last — runs through a decorate.Subject (the Exec every tier's Base embeds), named by the method, and whose other methods pass straight through.
Package decorgen generates decorators: for each named interface, a Decorated<Name> type whose every operation — a method taking a context.Context first and returning an error last — runs through a decorate.Subject (the Exec every tier's Base embeds), named by the method, and whose other methods pass straight through.
cmd/decorgen command
Command decorgen writes the decorators decorgen.Generate builds, for a go:generate directive:
Command decorgen writes the decorators decorgen.Generate builds, for a go:generate directive:
internal
gofile
Package gofile is the generators' shared Go source writer: it names the packages a generated file refers to, choosing an import alias per path, and writes the import block for them.
Package gofile is the generators' shared Go source writer: it names the packages a generated file refers to, choosing an import alias per path, and writes the import block for them.
Package opmockgen generates the mocks of operation contracts: for each named struct whose fields are interfaces (an interfaces.Op per operation, engine role interfaces, and the app's own interfaces) or embedded structs of them, a Mock<Name> holding one gomock mock per interface field, flattened through the embedded structs, and a Contract method that assembles the struct from them.
Package opmockgen generates the mocks of operation contracts: for each named struct whose fields are interfaces (an interfaces.Op per operation, engine role interfaces, and the app's own interfaces) or embedded structs of them, a Mock<Name> holding one gomock mock per interface field, flattened through the embedded structs, and a Contract method that assembles the struct from them.
cmd/opmockgen command
Command opmockgen writes the operation-contract mocks opmockgen.Generate builds, for a go:generate directive in a mocks package:
Command opmockgen writes the operation-contract mocks opmockgen.Generate builds, for a go:generate directive in a mocks package:

Jump to

Keyboard shortcuts

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