hold

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: MIT Imports: 7 Imported by: 0

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)

Jump to

Keyboard shortcuts

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