consul

package
v1.16.23 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_LOCK_WAIT_TIMEOUT = 30
)
View Source
const (
	DSC_LOCK_TRUNK = "zero.dsc.lock.trunk"
)
View Source
const (
	REGISTRY_TRUNK = "zero.registry.trunk"
)

Variables

This section is empty.

Functions

func RunDCSMutex

func RunDCSMutex()

func RunServeRegistry

func RunServeRegistry()

Types

type ZeroDCSMutex

type ZeroDCSMutex struct {
	KeyName string
	Lock    *api.Lock
	Lockc   chan struct{}
}

type ZeroDCSMutexTrunk

type ZeroDCSMutexTrunk interface {
	Key(string, string) error
	Value(string) (string, error)
	Del(string) error

	Acquire(string) (bool, *api.WriteMeta, error)
	Release(string) (bool, *api.WriteMeta, error)

	Lock(string, string, ...int) (*ZeroDCSMutex, error)
	Unlock(*ZeroDCSMutex) error
}

type ZeroServeRegistryTrunk

type ZeroServeRegistryTrunk interface {
	Registry(*api.AgentServiceRegistration) error
	Deregister(*api.AgentServiceRegistration) error
	FindAll() (map[string]*api.AgentService, error)
}

Jump to

Keyboard shortcuts

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