etcd

package
v0.0.0-...-12f838c Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdCoordinator

type EtcdCoordinator struct {
	// contains filtered or unexported fields
}

func NewEtcdCoordinator

func NewEtcdCoordinator(ttl int64) (*EtcdCoordinator, error)

func (*EtcdCoordinator) GetAllTimes

func (e *EtcdCoordinator) GetAllTimes() (map[string]int64, error)

func (*EtcdCoordinator) GetLeastTime

func (e *EtcdCoordinator) GetLeastTime() (int64, error)

func (*EtcdCoordinator) GetWorkerId

func (e *EtcdCoordinator) GetWorkerId() (uint64, error)

func (*EtcdCoordinator) ReportTime

func (e *EtcdCoordinator) ReportTime(timestamp int64) error

Jump to

Keyboard shortcuts

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