memstats

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 6 Imported by: 0

README

memstats

GoDev Build Status Coverage Status Go Report Card Deepsource.io Card

Simple worker to log down memstats. For debug, monitoring etc.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arg

type Arg func(*Config)

func FnLog

func FnLog(v func(log.Level, string, ...interface{})) Arg

func FnPeriod

func FnPeriod(v func() time.Duration) Arg

type Config

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

type Worker

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

func (*Worker) Done

func (it *Worker) Done()

func (*Worker) DoneContext added in v0.0.4

func (it *Worker) DoneContext(ctx context.Context)

func (*Worker) Initialize

func (it *Worker) Initialize(fnArgs ...Arg)

func (*Worker) Perform

func (it *Worker) Perform()

func (*Worker) Start

func (it *Worker) Start()

func (*Worker) StartContext added in v0.0.4

func (it *Worker) StartContext(ctx context.Context)

func (*Worker) Stop

func (it *Worker) Stop()

Jump to

Keyboard shortcuts

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