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 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)
Click to show internal directories.
Click to hide internal directories.