1 Star 0 Fork 0

Seppiko Project / Leaf Gateway

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

Seppiko Leaf Gateway

Seppiko Leaf Gateway is Seppiko Leaf RESTful API. And provide load balancing.

Compile and package

Copy Seppiko Leaf /src/main/proto/leaf.proto to /src/main/proto.

mvn clean
mvn protobuf:compile
mvn protobuf:compile-custom
mvn package

Configuration

leafgateway.json MUST BE a JSON array. If just have one config,random choose is not enable.

How to use

You need to modify leafgateway.json for configure leaf server.

Use -Dlgw.configFile=leafgateway.json custom leafgateway.json file path.

Use -Dserver.port for change listener port.

Access http://SERVER_ADDRESS:SERVER_PORT/?srcId=<id>,that <id> will be return.

Response

HTTP 200 With

{
  "srcId":"<id> parameter provided when you visit",
  "leafId":"leaf server return id"
}

Please check srcId is equal on cluster mode.

License

Licensed under of Apache License, Version 2.0

Sponsors

JetBrians

Comments ( 0 )

Sign in for post a comment

About

Seppiko Leaf的负载均衡和RESTful API出口,使用Undertow提供HTTP服务。 spread retract
Java
Apache-2.0
Cancel

Leaf Gateway

Contributors

All

Activities

load more
can not load any more
Java
1
https://gitee.com/seppiko/leaf-gateway.git
git@gitee.com:seppiko/leaf-gateway.git
seppiko
leaf-gateway
Leaf Gateway
master

Search