refactor(main): refactoring main grafana server / startup code

This commit is contained in:
Torkel Ödegaard
2016-09-30 08:36:20 +02:00
parent 2b8177e3e5
commit 86b546c21d
3 changed files with 138 additions and 63 deletions

10
pkg/models/server.go Normal file
View File

@@ -0,0 +1,10 @@
package models
import "context"
type GrafanaServer interface {
context.Context
Start()
Shutdown(code int, reason string)
}