Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
loom
command
|
|
|
Package codegen contains data structures and algorithms used by the Loom code generation tool.
|
Package codegen contains data structures and algorithms used by the Loom code generation tool. |
|
cli
Package cli contains helpers used by transport-specific command-line client generators for parsing the command-line flags to identify the service and the method to make a request along with the request payload to be sent.
|
Package cli contains helpers used by transport-specific command-line client generators for parsing the command-line flags to identify the service and the method to make a request along with the request payload to be sent. |
|
codegentest
Package codegentest provides utilities to assist writing unit test for codegen packages.
|
Package codegentest provides utilities to assist writing unit test for codegen packages. |
|
example
Package example contains code generation algorithms to produce an example server and client implementation for the transports defined in the design.
|
Package example contains code generation algorithms to produce an example server and client implementation for the transports defined in the design. |
|
generator
Package generator contains the code generation algorithms for a service server, client, and OpenAPI specification.
|
Package generator contains the code generation algorithms for a service server, client, and OpenAPI specification. |
|
service
Package service contains the code generation algorithms to produce code for the service and views packages and dummy implementation for the services defined in the design.
|
Package service contains the code generation algorithms to produce code for the service and views packages and dummy implementation for the services defined in the design. |
|
template
Package template provides a shared template reader for codegen packages.
|
Package template provides a shared template reader for codegen packages. |
|
testutil
Package testutil provides testing utilities for the Loom code generation framework.
|
Package testutil provides testing utilities for the Loom code generation framework. |
|
Package dsl implements the Loom DSL.
|
Package dsl implements the Loom DSL. |
|
Package eval implements a DSL engine for executing arbitrary Go DSLs.
|
Package eval implements a DSL engine for executing arbitrary Go DSLs. |
|
Package expr defines expressions and data types used by the DSL and the code generators.
|
Package expr defines expressions and data types used by the DSL and the code generators. |
|
Package grpc contains code generation logic to produce a server that serves gRPC requests and a client that encode requests to and decode responses from a gRPC server.
|
Package grpc contains code generation logic to produce a server that serves gRPC requests and a client that encode requests to and decode responses from a gRPC server. |
|
codegen
Package codegen contains the code generation logic to generate gRPC service definitions (.proto files) from the design DSLs and the corresponding server and client code that wraps the Loom-generated endpoints with the protocol buffer compiler (protoc) generated clients and servers.
|
Package codegen contains the code generation logic to generate gRPC service definitions (.proto files) from the design DSLs and the corresponding server and client code that wraps the Loom-generated endpoints with the protocol buffer compiler (protoc) generated clients and servers. |
|
middleware
Package middleware contains gRPC server and client interceptors that wraps unary and streaming RPCs to provide additional functionality.
|
Package middleware contains gRPC server and client interceptors that wraps unary and streaming RPCs to provide additional functionality. |
|
middleware/otel
Package otel provides thin OpenTelemetry helpers for Loom gRPC servers and clients.
|
Package otel provides thin OpenTelemetry helpers for Loom gRPC servers and clients. |
|
middleware/xray
Package xray contains unary and streaming server and client interceptors that create AWS X-Ray segments from the gRPC requests and responses and send the segments to an AWS X-ray daemon.
|
Package xray contains unary and streaming server and client interceptors that create AWS X-Ray segments from the gRPC requests and responses and send the segments to an AWS X-ray daemon. |
|
pb
Package loompb contains protocol buffer message types used by the code generation logic.
|
Package loompb contains protocol buffer message types used by the code generation logic. |
|
Package http contains HTTP specific constructs that complement the code generated by Loom.
|
Package http contains HTTP specific constructs that complement the code generated by Loom. |
|
codegen
Package codegen contains code generation algorithms that produce HTTP servers and clients meant to call - or wrap - the Loom endpoints generated by the service package.
|
Package codegen contains code generation algorithms that produce HTTP servers and clients meant to call - or wrap - the Loom endpoints generated by the service package. |
|
codegen/openapi
Package openapi provides common algorithms and data structures used to generate OpenAPI 3.1 specifications from Loom designs.
|
Package openapi provides common algorithms and data structures used to generate OpenAPI 3.1 specifications from Loom designs. |
|
codegen/openapi/v3
Package openapiv3 contains the algorithms and data structures used to generate OpenAPI 3.1 specifications from Loom designs.
|
Package openapiv3 contains the algorithms and data structures used to generate OpenAPI 3.1 specifications from Loom designs. |
|
middleware
Package middleware contains HTTP middlewares that wrap a HTTP handler to provide ancillary functionality such as capturing HTTP details into the request context or printing debug information on incoming requests.
|
Package middleware contains HTTP middlewares that wrap a HTTP handler to provide ancillary functionality such as capturing HTTP details into the request context or printing debug information on incoming requests. |
|
middleware/otel
Package otel provides thin OpenTelemetry middleware helpers for Loom HTTP servers and clients.
|
Package otel provides thin OpenTelemetry middleware helpers for Loom HTTP servers and clients. |
|
middleware/xray
Package xray contains middleware that creates AWS X-Ray segments from the HTTP requests and responses and send the segments to an AWS X-ray daemon.
|
Package xray contains middleware that creates AWS X-Ray segments from the HTTP requests and responses and send the segments to an AWS X-ray daemon. |
|
internal
|
|
|
Package jsonrpc provides constructs and utilities for building JSON-RPC 2.0 services with Loom.
|
Package jsonrpc provides constructs and utilities for building JSON-RPC 2.0 services with Loom. |
|
Package middleware contains transport independent middlewares.
|
Package middleware contains transport independent middlewares. |
|
xray
Package xray contains the AWS X-Ray segment document type populated by the transport-specific X-Ray middleware.
|
Package xray contains the AWS X-Ray segment document type populated by the transport-specific X-Ray middleware. |
|
xray/xraytest
Package xraytest contains test helpers for package xray that are used by transport-specific X-Ray middleware tests.
|
Package xraytest contains test helpers for package xray that are used by transport-specific X-Ray middleware tests. |
|
observability
|
|
|
otel
Package otel provides framework-owned OpenTelemetry bootstrap and transport instrumentation helpers.
|
Package otel provides framework-owned OpenTelemetry bootstrap and transport instrumentation helpers. |
|
Package loom contains the core runtime types and helpers for the Loom framework.
|
Package loom contains the core runtime types and helpers for the Loom framework. |
|
Package security contains the types used by the code generators to secure Loom endpoint.
|
Package security contains the types used by the code generators to secure Loom endpoint. |
Click to show internal directories.
Click to hide internal directories.