-
Notifications
You must be signed in to change notification settings - Fork 725
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*: independent the service discovery package (#8825)
ref #8690 Make the service discovery module of the client a separate package. Signed-off-by: JmPotato <ghzpotato@gmail.com>
- Loading branch information
Showing
22 changed files
with
396 additions
and
317 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright 2024 TiKV Project Authors. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package constants | ||
|
||
const ( | ||
// DefaultKeyspaceID is the default keyspace ID. | ||
// Valid keyspace id range is [0, 0xFFFFFF](uint24max, or 16777215) | ||
// 0 is reserved for default keyspace with the name "DEFAULT", It's initialized | ||
// when PD bootstrap and reserved for users who haven't been assigned keyspace. | ||
DefaultKeyspaceID = uint32(0) | ||
// MaxKeyspaceID is the maximum keyspace ID. | ||
MaxKeyspaceID = uint32(0xFFFFFF) | ||
// NullKeyspaceID is used for API v1 or legacy path where is keyspace agnostic. | ||
NullKeyspaceID = uint32(0xFFFFFFFF) | ||
// DefaultKeyspaceGroupID is the default key space group id. | ||
// We also reserved 0 for the keyspace group for the same purpose. | ||
DefaultKeyspaceGroupID = uint32(0) | ||
// DefaultKeyspaceName is the default keyspace name. | ||
DefaultKeyspaceName = "DEFAULT" | ||
) |
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
Oops, something went wrong.