mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-30 06:46:36 +08:00
实现基本的集群DNS列表、设置、简单数据同步
This commit is contained in:
@@ -197,18 +197,18 @@ var file_service_sys_setting_proto_rawDesc = []byte{
|
||||
0x16, 0x52, 0x65, 0x61, 0x64, 0x53, 0x79, 0x73, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52,
|
||||
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
||||
0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x75,
|
||||
0x65, 0x4a, 0x53, 0x4f, 0x4e, 0x32, 0xa3, 0x01, 0x0a, 0x11, 0x53, 0x79, 0x73, 0x53, 0x65, 0x74,
|
||||
0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x45, 0x0a, 0x10, 0x75,
|
||||
0x65, 0x4a, 0x53, 0x4f, 0x4e, 0x32, 0x9d, 0x01, 0x0a, 0x11, 0x53, 0x79, 0x73, 0x53, 0x65, 0x74,
|
||||
0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x10, 0x75,
|
||||
0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x79, 0x73, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12,
|
||||
0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x79, 0x73, 0x53, 0x65,
|
||||
0x74, 0x74, 0x69, 0x6e, 0x67, 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, 0x12, 0x47, 0x0a, 0x0e, 0x72, 0x65, 0x61, 0x64, 0x53, 0x79, 0x73, 0x53, 0x65, 0x74,
|
||||
0x74, 0x69, 0x6e, 0x67, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x53, 0x79,
|
||||
0x73, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
||||
0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x53, 0x79, 0x73, 0x53, 0x65, 0x74, 0x74,
|
||||
0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e,
|
||||
0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70,
|
||||
0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x47, 0x0a, 0x0e,
|
||||
0x72, 0x65, 0x61, 0x64, 0x53, 0x79, 0x73, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x19,
|
||||
0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x53, 0x79, 0x73, 0x53, 0x65, 0x74, 0x74, 0x69,
|
||||
0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x52,
|
||||
0x65, 0x61, 0x64, 0x53, 0x79, 0x73, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73,
|
||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@@ -228,12 +228,12 @@ var file_service_sys_setting_proto_goTypes = []interface{}{
|
||||
(*UpdateSysSettingRequest)(nil), // 0: pb.UpdateSysSettingRequest
|
||||
(*ReadSysSettingRequest)(nil), // 1: pb.ReadSysSettingRequest
|
||||
(*ReadSysSettingResponse)(nil), // 2: pb.ReadSysSettingResponse
|
||||
(*RPCUpdateSuccess)(nil), // 3: pb.RPCUpdateSuccess
|
||||
(*RPCSuccess)(nil), // 3: pb.RPCSuccess
|
||||
}
|
||||
var file_service_sys_setting_proto_depIdxs = []int32{
|
||||
0, // 0: pb.SysSettingService.updateSysSetting:input_type -> pb.UpdateSysSettingRequest
|
||||
1, // 1: pb.SysSettingService.readSysSetting:input_type -> pb.ReadSysSettingRequest
|
||||
3, // 2: pb.SysSettingService.updateSysSetting:output_type -> pb.RPCUpdateSuccess
|
||||
3, // 2: pb.SysSettingService.updateSysSetting:output_type -> pb.RPCSuccess
|
||||
2, // 3: pb.SysSettingService.readSysSetting:output_type -> pb.ReadSysSettingResponse
|
||||
2, // [2:4] is the sub-list for method output_type
|
||||
0, // [0:2] is the sub-list for method input_type
|
||||
@@ -319,7 +319,7 @@ const _ = grpc.SupportPackageIsVersion6
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type SysSettingServiceClient interface {
|
||||
// 更改配置
|
||||
UpdateSysSetting(ctx context.Context, in *UpdateSysSettingRequest, opts ...grpc.CallOption) (*RPCUpdateSuccess, error)
|
||||
UpdateSysSetting(ctx context.Context, in *UpdateSysSettingRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
// 读取配置
|
||||
ReadSysSetting(ctx context.Context, in *ReadSysSettingRequest, opts ...grpc.CallOption) (*ReadSysSettingResponse, error)
|
||||
}
|
||||
@@ -332,8 +332,8 @@ func NewSysSettingServiceClient(cc grpc.ClientConnInterface) SysSettingServiceCl
|
||||
return &sysSettingServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *sysSettingServiceClient) UpdateSysSetting(ctx context.Context, in *UpdateSysSettingRequest, opts ...grpc.CallOption) (*RPCUpdateSuccess, error) {
|
||||
out := new(RPCUpdateSuccess)
|
||||
func (c *sysSettingServiceClient) UpdateSysSetting(ctx context.Context, in *UpdateSysSettingRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||||
out := new(RPCSuccess)
|
||||
err := c.cc.Invoke(ctx, "/pb.SysSettingService/updateSysSetting", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -353,7 +353,7 @@ func (c *sysSettingServiceClient) ReadSysSetting(ctx context.Context, in *ReadSy
|
||||
// SysSettingServiceServer is the server API for SysSettingService service.
|
||||
type SysSettingServiceServer interface {
|
||||
// 更改配置
|
||||
UpdateSysSetting(context.Context, *UpdateSysSettingRequest) (*RPCUpdateSuccess, error)
|
||||
UpdateSysSetting(context.Context, *UpdateSysSettingRequest) (*RPCSuccess, error)
|
||||
// 读取配置
|
||||
ReadSysSetting(context.Context, *ReadSysSettingRequest) (*ReadSysSettingResponse, error)
|
||||
}
|
||||
@@ -362,7 +362,7 @@ type SysSettingServiceServer interface {
|
||||
type UnimplementedSysSettingServiceServer struct {
|
||||
}
|
||||
|
||||
func (*UnimplementedSysSettingServiceServer) UpdateSysSetting(context.Context, *UpdateSysSettingRequest) (*RPCUpdateSuccess, error) {
|
||||
func (*UnimplementedSysSettingServiceServer) UpdateSysSetting(context.Context, *UpdateSysSettingRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateSysSetting not implemented")
|
||||
}
|
||||
func (*UnimplementedSysSettingServiceServer) ReadSysSetting(context.Context, *ReadSysSettingRequest) (*ReadSysSettingResponse, error) {
|
||||
|
||||
Reference in New Issue
Block a user