pglockx

package
v1.0.0-beta.228 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultHeartbeatInterval = 3 * time.Second
	DefaultLeaseTime         = time.Minute
)

Variables

This section is empty.

Functions

func New

func New(db *sql.DB, config Config) (*pglock.Client, error)

Types

type Config

type Config struct {
	LeaseTime         time.Duration
	HeartbeatInterval time.Duration
	Owner             string
}

func (Config) Validate

func (c Config) Validate() error

Jump to

Keyboard shortcuts

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