sillycounter

package
v0.0.0-...-2c3b082 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: GPL-3.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 SillyCounter

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

func New

func New(db *redis.Client) *SillyCounter

func (*SillyCounter) Close

func (s *SillyCounter) Close(_ context.Context) error

nothing to do here

func (*SillyCounter) EnsureDB

func (s *SillyCounter) EnsureDB(_ context.Context) error

nothing to do here

func (*SillyCounter) IncGlobal

func (s *SillyCounter) IncGlobal(ctx context.Context) (uint64, error)

func (*SillyCounter) IncWord

func (s *SillyCounter) IncWord(ctx context.Context, w string) (uint64, error)

func (*SillyCounter) TearDown

func (s *SillyCounter) TearDown(ctx context.Context) error

TearDown deletes all keys in the db with our prefix

Jump to

Keyboard shortcuts

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