indexcounter

package
v1.25.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: BSD-3-Clause Imports: 5 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 {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(shardPath string) (*Counter, error)

func (*Counter) Drop

func (c *Counter) Drop() error

func (*Counter) FileName

func (c *Counter) FileName() string

func (*Counter) Get

func (c *Counter) Get() uint64

func (*Counter) GetAndInc

func (c *Counter) GetAndInc() (uint64, error)

func (*Counter) PreviewNext

func (c *Counter) PreviewNext() uint64

PreviewNext can be used to check if there is data present in the index, if it returns 0, you can be certain that no data exists

Jump to

Keyboard shortcuts

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