zookeeper

package
v0.0.0-...-be1e383 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZookeeperLock

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

ZookeeperLock lock store

func NewZookeeperLock

func NewZookeeperLock() *ZookeeperLock

NewZookeeperLock Create ZookeeperLock

func (*ZookeeperLock) Features

func (p *ZookeeperLock) Features() []lock.Feature

Features is to get ZookeeperLock's features

func (*ZookeeperLock) Init

func (p *ZookeeperLock) Init(metadata lock.Metadata) error

Init ZookeeperLock

func (*ZookeeperLock) LockKeepAlive

LockKeepAlive try to renewal lease

func (*ZookeeperLock) OnLogLevelChanged

func (p *ZookeeperLock) OnLogLevelChanged(level logger.LogLevel)

OnLogLevelChanged change log level

func (*ZookeeperLock) TryLock

TryLock Node tries to acquire a zookeeper lock

func (*ZookeeperLock) Unlock

Unlock Node tries to release a zookeeper lock

Jump to

Keyboard shortcuts

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