codegen

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientCLIFiles

func ClientCLIFiles(genpkg string, services *httpcodegen.ServicesData) []*codegen.File

ClientCLIFiles returns the JSON-RPC transport type files.

func ClientFiles

func ClientFiles(genpkg string, data *httpcodegen.ServicesData) []*codegen.File

ClientFiles returns the generated HTTP client files.

func ClientTypeFiles

func ClientTypeFiles(genpkg string, services *httpcodegen.ServicesData) []*codegen.File

ClientTypeFiles returns the JSON-RPC transport type files.

func CreateJSONRPCServices

func CreateJSONRPCServices(root *expr.RootExpr) *httpcodegen.ServicesData

CreateJSONRPCServices creates a new ServicesData instance for JSON-RPC testing.

func ExampleCLIFiles

func ExampleCLIFiles(genpkg string, data *httpcodegen.ServicesData) []*codegen.File

ExampleCLIFiles returns example JSON-RPC client CLI implementation.

func ExampleServerFiles

func ExampleServerFiles(genpkg string, data *httpcodegen.ServicesData, files []*codegen.File) []*codegen.File

ExampleServerFiles returns example JSON-RPC server implementation.

func PathFiles

func PathFiles(data *httpcodegen.ServicesData) []*codegen.File

PathFiles returns the service path files.

func RunJSONRPCDSL

func RunJSONRPCDSL(t *testing.T, dsl func()) *expr.RootExpr

RunJSONRPCDSL returns the DSL root resulting from running the given DSL. Used only in tests.

func SSEServerFiles

func SSEServerFiles(genpkg string, data *httpcodegen.ServicesData) []*codegen.File

SSEServerFiles returns the generated JSON-RPC SSE server files if any.

func ServerFiles

func ServerFiles(genpkg string, data *httpcodegen.ServicesData) []*codegen.File

ServerFiles returns the generated JSON-RPC server files if any.

func ServerTypeFiles

func ServerTypeFiles(genpkg string, services *httpcodegen.ServicesData) []*codegen.File

ServerTypeFiles returns the JSON-RPC transport type files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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