Documentation ¶
Overview ¶
* Copyright 2020-2021 the original author(https://github.com/wj596) * * <p> * 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. * </p>
Index ¶
- Constants
- func DeleteAmount() uint64
- func DestState() bool
- func Initialize() error
- func InsertAmount() uint64
- func LabDeleteRecord(lab string) uint64
- func LabInsertAmount(lab string) uint64
- func LabUpdateRecord(lab string) uint64
- func LeaderFlag() bool
- func SetDestState(state int)
- func SetLeaderState(state int)
- func SetTransferDelay(d uint32)
- func UpdateActionNum(action, lab string)
- func UpdateAmount() uint64
Constants ¶
View Source
const ( DestStateOK = 1 DestStateFail = 0 LeaderState = 1 FollowerState = 0 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.