Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SyncDumper ¶
func (*SyncDumper) ConfigRouter ¶
func (sd *SyncDumper) ConfigRouter(r *gin.Engine)
配置路由,提供了一个 /dumper/sync 的 HTTP GET 请求 只允许本地访问(127.0.0.1 或 ::1)
func (*SyncDumper) Put ¶
func (sd *SyncDumper) Put(key string, timestamp, mills int64, count int, message string)
func (*SyncDumper) Sprint ¶
func (sd *SyncDumper) Sprint() string
busi_groups: last: timestamp, mills, count curr: timestamp, mills, count
type SyncRecord ¶
func (*SyncRecord) String ¶
func (sr *SyncRecord) String() string
type SyncRecords ¶
type SyncRecords struct {
Current *SyncRecord
Last *SyncRecord
}
Click to show internal directories.
Click to hide internal directories.