tracker

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurrentState

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

func (*CurrentState) String

func (cs *CurrentState) String() string

type Options

type Options struct {
	CheckInterval time.Duration
	ClientID      string
	Cmd           string
	DbDirectory   string
	Debug         bool
	DropCreate    bool
	Env           string
	IdleTolerance time.Duration
}

type Tracker

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

func New

func New(opts *Options) *Tracker

func (*Tracker) Track

func (t *Tracker) Track(ctx context.Context)

Track starts the idle/busy tracker in a loop that runs until the context is cancelled

func (*Tracker) WaitClose

func (t *Tracker) WaitClose()

WaitClose wait for the tracker loop to finish uncommitted work

Jump to

Keyboard shortcuts

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