gc

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: Apache-2.0 Imports: 4 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

Types

type Executor

type Executor interface {
	GC() error
}

type ExecutorWrapper

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

type Server

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

func New

func New() (*Server, error)

func (*Server) Serve

func (server *Server) Serve() error

func (*Server) Shutdown

func (server *Server) Shutdown() error

Jump to

Keyboard shortcuts

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