github.com/songzhibin97/gkit@v1.2.13/window/slidingwindow.go (about)

     1  package window
     2  
     3  // SlidingWindow 滑动窗口接口化
     4  type SlidingWindow interface {
     5  	// sentinel 哨兵
     6  	sentinel()
     7  
     8  	// Shutdown 优雅关闭
     9  	Shutdown()
    10  
    11  	// AddIndex 添加指标信息
    12  	AddIndex(k string, v uint)
    13  
    14  	// Show 展示信息
    15  	Show() []interface{}
    16  }