bigcache

package
v2.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

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

Checker provides inmemory messages test

func New

func New(cache *bigcache.BigCache) *Checker

New checker wraps bigcache

func NewByConfig

func NewByConfig(config bigcache.Config) (*Checker, error)

NewByConfig checker

func NewDefault

func NewDefault(duration time.Duration) (*Checker, error)

NewDefault checker

func (*Checker) IsSkip

func (ch *Checker) IsSkip(msg any) bool

IsSkip message if was sent

func (*Checker) MarkAsSent

func (ch *Checker) MarkAsSent(msg any) error

MarkAsSent message to the publisher

Jump to

Keyboard shortcuts

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