Skip to content

Commit

Permalink
Add more documentation for Config and ESClient
Browse files Browse the repository at this point in the history
  • Loading branch information
bittersweet committed Oct 11, 2015
1 parent 5fe9546 commit 9be2c15
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions notifilter.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,23 @@ const maxPacketSize = 1024 * 1024

var db *sqlx.DB

// Config will be populated with settings loaded from the environment or
// local defaults
type Config struct {
AppPort int `default:"8000"`
DBHost string `default:"127.0.0.1"`
DBUser string `default:"markmulder"`
DBUser string `default:""`
DBPassword string `default:""`
DBName string `default:"notifilter_development"`
ESHost string `default:"127.0.0.1"`
ESPort int `default:"9200"`
SlackHookURL string `required:"true"`
}

// C holds main application config loaded from ENV variables
// C is a global variable that holds loaded config settings
var C Config

// ESClient is a global variable that points to our ES client
var ESClient elasticsearch.Client

// Event will hold incoming data and will be persisted to ES eventually
Expand Down

0 comments on commit 9be2c15

Please sign in to comment.