Move to i_s / p_s and add user info (not quite complete)
[pstop.git] / p_s / ps_table / ps_table.go
diff --git a/p_s/ps_table/ps_table.go b/p_s/ps_table/ps_table.go
new file mode 100644 (file)
index 0000000..e16d4b7
--- /dev/null
@@ -0,0 +1,22 @@
+// This file contains the library routines for managing the
+// table_lock_waits_summary_by_table table.
+package ps_table
+
+import (
+       "database/sql"
+       "time"
+)
+
+// a table of rows
+type Tabler interface {
+       Collect(dbh *sql.DB)
+       SyncReferenceValues()
+       Headings() string
+       RowContent(max_rows int) []string
+       TotalRowContent() string
+       EmptyRowContent() string
+       Description() string
+       SetNow()
+       Last() time.Time
+       SetWantRelativeStats(want_relative_stats bool)
+}