mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-28 05:16:39 +08:00
实现基本的集群DNS列表、设置、简单数据同步
This commit is contained in:
@@ -336,7 +336,7 @@ var file_service_http_rewrite_rule_proto_rawDesc = []byte{
|
||||
0x09, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73,
|
||||
0x4f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x12, 0x1c,
|
||||
0x0a, 0x09, 0x77, 0x69, 0x74, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28,
|
||||
0x08, 0x52, 0x09, 0x77, 0x69, 0x74, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x32, 0xc7, 0x01, 0x0a,
|
||||
0x08, 0x52, 0x09, 0x77, 0x69, 0x74, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x32, 0xc1, 0x01, 0x0a,
|
||||
0x16, 0x48, 0x54, 0x54, 0x50, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65,
|
||||
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5c, 0x0a, 0x15, 0x63, 0x72, 0x65, 0x61, 0x74,
|
||||
0x65, 0x48, 0x54, 0x54, 0x50, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65,
|
||||
@@ -344,13 +344,12 @@ var file_service_http_rewrite_rule_proto_rawDesc = []byte{
|
||||
0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x54,
|
||||
0x54, 0x50, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73,
|
||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x15, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48,
|
||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x15, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48,
|
||||
0x54, 0x54, 0x50, 0x52, 0x65, 0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x20,
|
||||
0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x54, 0x54, 0x50, 0x52, 0x65,
|
||||
0x77, 0x72, 0x69, 0x74, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
||||
0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53,
|
||||
0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73,
|
||||
0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -370,13 +369,13 @@ var file_service_http_rewrite_rule_proto_goTypes = []interface{}{
|
||||
(*CreateHTTPRewriteRuleRequest)(nil), // 0: pb.CreateHTTPRewriteRuleRequest
|
||||
(*CreateHTTPRewriteRuleResponse)(nil), // 1: pb.CreateHTTPRewriteRuleResponse
|
||||
(*UpdateHTTPRewriteRuleRequest)(nil), // 2: pb.UpdateHTTPRewriteRuleRequest
|
||||
(*RPCUpdateSuccess)(nil), // 3: pb.RPCUpdateSuccess
|
||||
(*RPCSuccess)(nil), // 3: pb.RPCSuccess
|
||||
}
|
||||
var file_service_http_rewrite_rule_proto_depIdxs = []int32{
|
||||
0, // 0: pb.HTTPRewriteRuleService.createHTTPRewriteRule:input_type -> pb.CreateHTTPRewriteRuleRequest
|
||||
2, // 1: pb.HTTPRewriteRuleService.updateHTTPRewriteRule:input_type -> pb.UpdateHTTPRewriteRuleRequest
|
||||
1, // 2: pb.HTTPRewriteRuleService.createHTTPRewriteRule:output_type -> pb.CreateHTTPRewriteRuleResponse
|
||||
3, // 3: pb.HTTPRewriteRuleService.updateHTTPRewriteRule:output_type -> pb.RPCUpdateSuccess
|
||||
3, // 3: pb.HTTPRewriteRuleService.updateHTTPRewriteRule:output_type -> pb.RPCSuccess
|
||||
2, // [2:4] is the sub-list for method output_type
|
||||
0, // [0:2] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
@@ -463,7 +462,7 @@ type HTTPRewriteRuleServiceClient interface {
|
||||
// 创建重写规则
|
||||
CreateHTTPRewriteRule(ctx context.Context, in *CreateHTTPRewriteRuleRequest, opts ...grpc.CallOption) (*CreateHTTPRewriteRuleResponse, error)
|
||||
// 修改重写规则
|
||||
UpdateHTTPRewriteRule(ctx context.Context, in *UpdateHTTPRewriteRuleRequest, opts ...grpc.CallOption) (*RPCUpdateSuccess, error)
|
||||
UpdateHTTPRewriteRule(ctx context.Context, in *UpdateHTTPRewriteRuleRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
}
|
||||
|
||||
type hTTPRewriteRuleServiceClient struct {
|
||||
@@ -483,8 +482,8 @@ func (c *hTTPRewriteRuleServiceClient) CreateHTTPRewriteRule(ctx context.Context
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *hTTPRewriteRuleServiceClient) UpdateHTTPRewriteRule(ctx context.Context, in *UpdateHTTPRewriteRuleRequest, opts ...grpc.CallOption) (*RPCUpdateSuccess, error) {
|
||||
out := new(RPCUpdateSuccess)
|
||||
func (c *hTTPRewriteRuleServiceClient) UpdateHTTPRewriteRule(ctx context.Context, in *UpdateHTTPRewriteRuleRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||||
out := new(RPCSuccess)
|
||||
err := c.cc.Invoke(ctx, "/pb.HTTPRewriteRuleService/updateHTTPRewriteRule", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -497,7 +496,7 @@ type HTTPRewriteRuleServiceServer interface {
|
||||
// 创建重写规则
|
||||
CreateHTTPRewriteRule(context.Context, *CreateHTTPRewriteRuleRequest) (*CreateHTTPRewriteRuleResponse, error)
|
||||
// 修改重写规则
|
||||
UpdateHTTPRewriteRule(context.Context, *UpdateHTTPRewriteRuleRequest) (*RPCUpdateSuccess, error)
|
||||
UpdateHTTPRewriteRule(context.Context, *UpdateHTTPRewriteRuleRequest) (*RPCSuccess, error)
|
||||
}
|
||||
|
||||
// UnimplementedHTTPRewriteRuleServiceServer can be embedded to have forward compatible implementations.
|
||||
@@ -507,7 +506,7 @@ type UnimplementedHTTPRewriteRuleServiceServer struct {
|
||||
func (*UnimplementedHTTPRewriteRuleServiceServer) CreateHTTPRewriteRule(context.Context, *CreateHTTPRewriteRuleRequest) (*CreateHTTPRewriteRuleResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CreateHTTPRewriteRule not implemented")
|
||||
}
|
||||
func (*UnimplementedHTTPRewriteRuleServiceServer) UpdateHTTPRewriteRule(context.Context, *UpdateHTTPRewriteRuleRequest) (*RPCUpdateSuccess, error) {
|
||||
func (*UnimplementedHTTPRewriteRuleServiceServer) UpdateHTTPRewriteRule(context.Context, *UpdateHTTPRewriteRuleRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateHTTPRewriteRule not implemented")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user