[DEPRECATED] Go implementation of plcbundle
at main 28 lines 605 B view raw
1package types 2 3import "time" 4 5// Logger is a simple logging interface used throughout plcbundle 6type Logger interface { 7 Printf(format string, v ...interface{}) 8 Println(v ...interface{}) 9} 10 11const ( 12 // BUNDLE_SIZE is the standard number of operations per bundle 13 BUNDLE_SIZE = 10000 14 15 // INDEX_FILE is the default index filename 16 INDEX_FILE = "plc_bundles.json" 17 18 // INDEX_VERSION is the current index format version 19 INDEX_VERSION = "1.0" 20) 21 22type BundleProductionStats struct { 23 TotalFetches int 24 TotalDuration time.Duration 25 AvgPerFetch float64 26 Throughput float64 27 IndexTime time.Duration 28}