Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStaleFencingToken = errors.New("fencing/postgres: stale fencing token")
ErrStaleFencingToken is returned when a mutation carries a stale token.
Functions ¶
This section is empty.
Types ¶
type Resource ¶
Resource is a fenced row helper. Table schema (caller migrates):
CREATE TABLE IF NOT EXISTS shiftlock_fenced ( name TEXT PRIMARY KEY, fencing_token BIGINT NOT NULL DEFAULT 0, value TEXT NOT NULL DEFAULT '' );
Click to show internal directories.
Click to hide internal directories.