-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: c++ 对齐其他语言SDK 1. 限流接口支持传入method 2. 去掉grpc以及动态权重调整的代码 3. 支持非二次寻址 4. 支持环境变量配置 * feat:修复用例失败问题 * feat: 默认地址导致用例失败问题 * feat: 优化并去掉二次寻址 * githu流水线配置低,等待的时间比较长 * feat: 修复样例错误
- Loading branch information
1 parent
d4a7035
commit ebf9ee1
Showing
8 changed files
with
57 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
BIT = $(shell getconf LONG_BIT) | ||
|
||
POLARIS_CPP = ../.. | ||
POLARIS_INCL = $(POLARIS_CPP)/include | ||
POLARIS_LIB_DIR = $(POLARIS_CPP)/build$(BIT)/lib | ||
POLARIS_LIB = $(POLARIS_LIB_DIR)/libpolaris_api.a | ||
PROTOBUF_LIB = $(POLARIS_CPP)/third_party/protobuf/build$(BIT)/libprotobuf.a | ||
|
||
CXX = g++ | ||
CXXFLAGS += -g -Wall -Wno-write-strings -Werror -std=c++11 | ||
|
||
SRC = $(wildcard *.cpp) | ||
OBJECTS = $(SRC:%.cpp=%) | ||
|
||
all: $(OBJECTS) | ||
|
||
%: %.cpp $(POLARIS_LIB) | ||
@echo -e Building $< ... | ||
$(CXX) $(CXXFLAGS) -I$(POLARIS_INCL) $< $(POLARIS_LIB) $(PROTOBUF_LIB) -pthread -lz -o $@ | ||
|
||
$(POLARIS_LIB): | ||
@echo build polaris-cpp lib | ||
make -C ${POLARIS_CPP} | ||
|
||
clean: | ||
@echo -e Clean $(OBJECTS) | ||
@-rm -rf $(OBJECTS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
global: | ||
serverConnector: | ||
addresses: | ||
- 127.0.0.1:8091 | ||
rateLimiter: | ||
rateLimitCluster: | ||
namespace: Polaris | ||
service: polaris.limiter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters