top

Package eventdb handles the events storage.

The DB contains multiple sqlite instances, a new sqlite instance would be created and also an old instance would be expired every day.

File Structure

Example file structure for period=1day, expiration=7days:

	storage/
	   |- event/
            |- 16912 -- Outdated
	        |- 16913 -- -7
	        |- 16914 -- -6
	        |- 16915 -- -5
	        |- 16916 -- -4
	        |- 16917 -- -3
	        |- 16918 -- -2
	        |- 16919 -- -1
	        |- 16920 -- Active

Imported by 6 package(s)

  1. github.com/eleme/banshee/alerter
  2. github.com/eleme/banshee/storage
  3. github.com/eleme/banshee/webapp
  4. github.com/yujinqiu/banshee/alerter
  5. github.com/yujinqiu/banshee/storage
  6. github.com/yujinqiu/banshee/webapp

Imports 4 package(s)

  1. github.com/eleme/banshee/models
  2. github.com/jinzhu/gorm
  3. github.com/mattn/go-sqlite3
  4. github.com/eleme/banshee/util/log

Test imports 1 package(s)

  1. github.com/eleme/banshee/util