memory_counter

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryCounter

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

func NewMemoryCounter

func NewMemoryCounter() (*MemoryCounter, error)

func (*MemoryCounter) Increment

func (m *MemoryCounter) Increment(ctx context.Context, counterName string, n int64) (int64, error)

func (*MemoryCounter) Read

func (m *MemoryCounter) Read(ctx context.Context, counterName string) (int64, error)

Jump to

Keyboard shortcuts

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