Documentation
¶
Overview ¶
Package hold implement the holding mechanism common to all the backends.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hold ¶
type Hold struct {
Manager name_manager.NameManager
// clock is the clock used to get the CreatedAt/UpdatedAt timestamps.
Clock clock.Clock
KeepAliveInterval time.Duration
}
func (*Hold) Hold ¶
func (h *Hold) Hold(family string) (string, <-chan error, name_manager.ReleaseFunc, error)
func (*Hold) TryHold ¶
func (h *Hold) TryHold(family, name string) (<-chan error, name_manager.ReleaseFunc, error)
Click to show internal directories.
Click to hide internal directories.