13 Star 52 Fork 0

Gitee 极速下载/etcd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
Documentation
Godeps
auth
client
clientv3
compactor
contrib
discovery
e2e
error
etcdctl
etcdctlv3
etcdmain
etcdserver
api/v3rpc
auth
etcdhttp
etcdserverpb
stats
cluster.go
cluster_test.go
cluster_util.go
cluster_util_test.go
config.go
config_test.go
consistent_index.go
consistent_index_test.go
doc.go
errors.go
member.go
member_test.go
metrics.go
raft.go
raft_test.go
server.go
server_test.go
snapshot_merge.go
storage.go
util.go
v3demo_server.go
hack
integration
lease
logos
pkg
proxy
raft
rafthttp
scripts
snap
storage
store
tools
version
wal
.dockerignore
.gitignore
.godir
.header
.travis.yml
CONTRIBUTING.md
DCO
Dockerfile
LICENSE
MAINTAINERS
NOTICE
Procfile
README.md
ROADMAP.md
V3DemoProcfile
build
build.bat
cover
main.go
test
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/coreos/etcd
克隆/下载
consistent_index.go 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
// Copyright 2015 CoreOS, Inc.
//
// 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 etcdserver
// consistentIndex represents the offset of an entry in a consistent replica log.
// It implements the storage.ConsistentIndexGetter interface.
// It is always set to the offset of current entry before executing the entry,
// so ConsistentWatchableKV could get the consistent index from it.
type consistentIndex uint64
func (i *consistentIndex) setConsistentIndex(v uint64) { *i = consistentIndex(v) }
func (i *consistentIndex) ConsistentIndex() uint64 { return uint64(*i) }
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/mirrors/etcd.git
git@gitee.com:mirrors/etcd.git
mirrors
etcd
etcd
v2.3.7

搜索帮助