lava

package module
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: Apache-2.0 Imports: 15 Imported by: 4

README

lava文档|example

lava 是一个经过企业实践而抽象出来的微服务中台集成框架

  1. 配置管理, 配置驱动开发, 本地配置, 配置中心, 配置变更

  2. 对象管理, 通过依赖注入框架dix管理对象, 可结合配置中心动态变更, 对象无感变更

  3. runtime抽象, cli, gin, grpc, task等服务抽象统一的entry, 统一使用习惯, 多服务子命令运行

  4. plugin抽象, 结合运行顺序, 启动初始化, 配置变更, 对象管理, 对所有资源进行管理

  5. 便捷protobuf生成管理, lava集成protoc命令去管理protobuf依赖,插件,版本和编译, 只需要一个protobuf.yaml配置文件

  6. grpc自动注册, 通过自定义protoc-gen-lava管理grpc注册函数, 并自动识别服务的handler

  7. 调试友好, 便捷的系统日志和业务日志集成, 丰富且详细的debug api可以查看系统的配置参数和细节

  8. 自动生成swagger和http rest client文档, 方便测试和集成

  9. tracing和metric自动集成, 通过reqId打通业务日志和tracing日志, 便于系统异常排查和跟踪

  10. 统一抽象的middleware, gin和grpc的server以及client共享一套middleware抽象, 定义一套middleware作用于所有组件

  11. 统一protobuf定义grpc和http服务, 便于生成swagger和sdk, 方便第三方调用

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(description string, entries ...entry.Entry)

Types

This section is empty.

Directories

Path Synopsis
builder
chi
kcp
clients
orm
cmd
example module
cmd
protopb/proto/gid
Package gid is a reverse proxy.
Package gid is a reverse proxy.
protopb/proto/hello
Package hello is a reverse proxy.
Package hello is a reverse proxy.
protopb/proto/login
Package login is a reverse proxy.
Package login is a reverse proxy.
protopb/proto/sqlx
Package sqlx is a reverse proxy.
Package sqlx is a reverse proxy.
protopb/proto/user
Package gid is a reverse proxy.
Package gid is a reverse proxy.
internal
vm
example/grpc Module
example/http Module
middlewares
pkg
attributes
Package attributes defines a generic key/value store used in various gRPC components.
Package attributes defines a generic key/value store used in various gRPC components.
captcha
generated by go run gen.go; DO NOT EDIT
generated by go run gen.go; DO NOT EDIT
chanx
Package buffer provides an implementation of an unbounded buffer.
Package buffer provides an implementation of an unbounded buffer.
df
env
jwt
k8s
shm
plugins
jwt
registry
Package registry is an interface for service discovery
Package registry is an interface for service discovery
registry/etcdv3
Package etcdv3 provides an etcd version 3 registry
Package etcdv3 provides an etcd version 3 registry
registry/gossip
Package gossip provides a gossip registry based on hashicorp/memberlist
Package gossip provides a gossip registry based on hashicorp/memberlist
registry/mdns
Package mdns is a multicast dns registry
Package mdns is a multicast dns registry
proto

Jump to

Keyboard shortcuts

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