Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
microgen
command
|
|
|
microgen/dbschema
Package dbschema 连接数据库,内省表结构,并将其转换为 parser.ParseResult, 供 generator 直接生成完整的 RESTful 微服务代码。
|
Package dbschema 连接数据库,内省表结构,并将其转换为 parser.ParseResult, 供 generator 直接生成完整的 RESTful 微服务代码。 |
|
Package endpoint defines the core Endpoint type and related helpers.
|
Package endpoint defines the core Endpoint type and related helpers. |
|
examples
|
|
|
best_practice
command
Package main demonstrates go-kit best practices:
|
Package main demonstrates go-kit best practices: |
|
httpclient
command
Package main demonstrates the HTTP client components:
|
Package main demonstrates the HTTP client components: |
|
middleware
command
Package main demonstrates every endpoint middleware in the framework:
|
Package main demonstrates every endpoint middleware in the framework: |
|
profilesvc/client
Package client provides a profilesvc client backed by Consul service discovery, round-robin load balancing, and automatic retry.
|
Package client provides a profilesvc client backed by Consul service discovery, round-robin load balancing, and automatic retry. |
|
profilesvc/cmd/profilesvc
command
|
|
|
quickstart
command
Package quickstart is the minimal go-kit HTTP service.
|
Package quickstart is the minimal go-kit HTTP service. |
|
sd
command
Package main demonstrates the service-discovery (sd) components without any external dependency (no Consul, no network):
|
Package main demonstrates the service-discovery (sd) components without any external dependency (no Consul, no network): |
|
Package kit provides a high-level, zero-boilerplate API for rapid prototyping and production microservices.
|
Package kit provides a high-level, zero-boilerplate API for rapid prototyping and production microservices. |
|
Package log provides a thin wrapper around go.uber.org/zap.
|
Package log provides a thin wrapper around go.uber.org/zap. |
|
Package sd provides service-discovery helpers that wire together an Instancer, EndpointCache, Balancer, and Retry executor into a single callable endpoint.Endpoint.
|
Package sd provides service-discovery helpers that wire together an Instancer, EndpointCache, Balancer, and Retry executor into a single callable endpoint.Endpoint. |
|
grpc/client
Package client provides a gRPC transport client that wraps a gRPC connection as an endpoint.Endpoint.
|
Package client provides a gRPC transport client that wraps a gRPC connection as an endpoint.Endpoint. |
|
grpc/server
Package server provides a gRPC transport server that bridges the framework's Endpoint abstraction to the gRPC protocol.
|
Package server provides a gRPC transport server that bridges the framework's Endpoint abstraction to the gRPC protocol. |
|
http/server
Package server provides an HTTP transport server that bridges the framework's Endpoint abstraction to the standard net/http package.
|
Package server provides an HTTP transport server that bridges the framework's Endpoint abstraction to the standard net/http package. |
Click to show internal directories.
Click to hide internal directories.