Documentation
¶
Index ¶
- func ClientCLIFiles(genpkg string, services *httpcodegen.ServicesData) []*codegen.File
- func ClientFiles(genpkg string, data *httpcodegen.ServicesData) []*codegen.File
- func ClientTypeFiles(genpkg string, services *httpcodegen.ServicesData) []*codegen.File
- func CreateJSONRPCServices(root *expr.RootExpr) *httpcodegen.ServicesData
- func ExampleCLIFiles(genpkg string, data *httpcodegen.ServicesData) []*codegen.File
- func ExampleServerFiles(genpkg string, data *httpcodegen.ServicesData, files []*codegen.File) []*codegen.File
- func PathFiles(data *httpcodegen.ServicesData) []*codegen.File
- func RunJSONRPCDSL(t *testing.T, dsl func()) *expr.RootExpr
- func SSEServerFiles(genpkg string, data *httpcodegen.ServicesData) []*codegen.File
- func ServerFiles(genpkg string, data *httpcodegen.ServicesData) []*codegen.File
- func ServerTypeFiles(genpkg string, services *httpcodegen.ServicesData) []*codegen.File
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 ¶
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.
Source Files
¶
- adaptation.go
- client.go
- client_cli.go
- client_stream_sections.go
- client_types.go
- decoder_sections.go
- example_cli.go
- example_sections.go
- example_server.go
- handler_sections.go
- header.go
- paths.go
- server.go
- server_types.go
- sse.go
- sse_server.go
- stream_sections.go
- testing.go
- top_level_sections.go
- websocket_client.go
- websocket_server.go