metrics

package
v0.0.0-...-736094d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

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

View Source
const (
	DestStateOK   = 1
	DestStateFail = 0

	LeaderState   = 1
	FollowerState = 0
)

Variables

This section is empty.

Functions

func DeleteAmount

func DeleteAmount() uint64

func DestState

func DestState() bool

func Initialize

func Initialize() error

func InsertAmount

func InsertAmount() uint64

func LabDeleteRecord

func LabDeleteRecord(lab string) uint64

func LabInsertAmount

func LabInsertAmount(lab string) uint64

func LabUpdateRecord

func LabUpdateRecord(lab string) uint64

func LeaderFlag

func LeaderFlag() bool

func SetDestState

func SetDestState(state int)

func SetLeaderState

func SetLeaderState(state int)

func SetTransferDelay

func SetTransferDelay(d uint32)

func UpdateActionNum

func UpdateActionNum(action, lab string)

func UpdateAmount

func UpdateAmount() uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL