waiter

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Stamp = time.Stamp + " MST"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(ctx context.Context, opts ManagerOpts) (*Manager, context.Context)

func (*Manager) Endpoint added in v0.0.15

func (m *Manager) Endpoint() string

func (*Manager) Expiration

func (m *Manager) Expiration() time.Time

func (*Manager) ExtendWait

func (m *Manager) ExtendWait(dur time.Duration) time.Time

func (*Manager) SetEndpoint

func (m *Manager) SetEndpoint(addr string)

func (*Manager) StopWait

func (m *Manager) StopWait()

func (*Manager) Wait

func (m *Manager) Wait() error

type ManagerOpts

type ManagerOpts struct {
	InitialDur time.Duration

	Webhooks  []v1.Webhook
	SlackBots []v1.SlackBot
}

Jump to

Keyboard shortcuts

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