counter

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

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

func GetCounterManager

func GetCounterManager() *Counter

func (*Counter) Add

func (this *Counter) Add(name string, t Task)

type Task

type Task interface {
	Process(now int64)
}

type TaskInitialize

type TaskInitialize interface {
	Init() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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