Documentation
¶
Overview ¶
Package pg implements lease.Provider in terms of a PostgresQL database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Provider)
Option is the type of an option that can be passed to New.
type Provider ¶
Provider is a lease.Provider implemented in terms of a PostgresQL database.
func New ¶
New creates a new PostgresQL lease provider. Leases are stored in a table with the given name. The table is created if it does not already exist.
func (*Provider) Close ¶
func (p *Provider) Close()
Close releases resources held by the provider. However, it does _not_ close the underlying database connection.
Click to show internal directories.
Click to hide internal directories.