Advertise full table every minute.

This commit is contained in:
Milos Gajdos
2019-07-11 12:36:39 +01:00
parent 7631463b94
commit 35a1de91a9
3 changed files with 115 additions and 43 deletions

View File

@@ -22,6 +22,22 @@ const (
Update
)
// String implements fmt.Stringer
// NOTE: we need this as this makes converting the numeric codes
// into miro style string actions very simple
func (et EventType) String() string {
switch et {
case Create:
return "create"
case Delete:
return "delete"
case Update:
return "update"
default:
return "unknown"
}
}
// Event is returned by a call to Next on the watcher.
type Event struct {
// Type defines type of event