internal

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMonoChecker  = errors.New("monochecker error")
	ErrDuplicateRun = fmt.Errorf("[%w]:run仅允许调用一次", ErrMonoChecker)
	ErrTouchBlock   = fmt.Errorf("[%w]:touch管道阻塞了", ErrMonoChecker)
)

Functions

This section is empty.

Types

type Entry

type Entry struct {
	K string
	T time.Time
}

type MonoChecker

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

func NewMonoChecker

func NewMonoChecker(bufferCount int, timeout time.Duration, batchSize int) *MonoChecker

func (*MonoChecker) DownChan

func (checker *MonoChecker) DownChan() (downChan <-chan Entry)

func (*MonoChecker) Run

func (checker *MonoChecker) Run() (err error)

func (*MonoChecker) Touch

func (checker *MonoChecker) Touch(identity string) (err error)

func (*MonoChecker) UpChan

func (checker *MonoChecker) UpChan() (upChan <-chan Entry)

Jump to

Keyboard shortcuts

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