gc

package
v0.1.0-beta-3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, gcInitialDelay time.Duration, gcInterval time.Duration, gcExecutor Executor)

Register a gc task

func StartGC

func StartGC(ctx context.Context) error

StartGC starts to do the gc jobs.

Types

type Executor

type Executor interface {
	GC() error
}

type ExecutorWrapper

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

Jump to

Keyboard shortcuts

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