实现路径规则部分功能

This commit is contained in:
GoEdgeLab
2020-09-21 19:51:56 +08:00
parent 62b9efe0e6
commit 8a1cfa92ca
17 changed files with 415 additions and 23 deletions

View File

@@ -68,6 +68,7 @@ func (this *APINode) listenRPC() error {
pb.RegisterHTTPAccessLogPolicyServiceServer(rpcServer, &services.HTTPAccessLogPolicyService{})
pb.RegisterHTTPCachePolicyServiceServer(rpcServer, &services.HTTPCachePolicyService{})
pb.RegisterHTTPFirewallPolicyServiceServer(rpcServer, &services.HTTPFirewallPolicyService{})
pb.RegisterHTTPLocationServiceServer(rpcServer, &services.HTTPLocationService{})
err = rpcServer.Serve(listener)
if err != nil {
return errors.New("[API]start rpc failed: " + err.Error())