func NewStore(dataPath string) store.Store {
	return &Store{
		roles:           map[string]graylog.Role{},
		users:           map[string]graylog.User{},
		inputs:          map[string]graylog.Input{},
		indexSets:       []graylog.IndexSet{},
		streams:         map[string]graylog.Stream{},
		streamRules:     map[string]map[string]graylog.StreamRule{},
		alertConditions: map[string]graylog.AlertCondition{},
		tokens:          map[string]string{},
		dataPath:        dataPath,
	}
}
// NewStore returns a new Store.
// the argument `dataPath` is the file path where write the data.
// If `dataPath` is empty, the data aren't written to the file.
NewStore returns a new Store.
the argument `dataPath` is the file path where write the data.
If `dataPath` is empty, the data aren't written to the file.
// NewStore returns a new Store . // the argument ` dataPath ` is the file path where write the data . // If ` dataPath ` is empty the data aren ' t written to the file .
func NewStore(dataPath string) store.Store {
	return &Store{
		roles:           map[string]graylog.Role{},
		users:           map[string]graylog.User{},
		inputs:          map[string]graylog.Input{},
		indexSets:       []graylog.IndexSet{},
		streams:         map[string]graylog.Stream{},
		streamRules:     map[string]map[string]graylog.StreamRule{},
		alertConditions: map[string]graylog.AlertCondition{},
		tokens:          map[string]string{},
		dataPath:        dataPath,
	}
}
func NewStore ( dataPath string ) store . Store { return & Store { roles : map [ string ] graylog . Role { } , users : map [ string ] graylog . User { } , inputs : map [ string ] graylog . Input { } , indexSets : [ ] graylog . IndexSet { } , streams : map [ string ] graylog . Stream { } , streamRules : map [ string ] map [ string ] graylog . StreamRule { } , alertConditions : map [ string ] graylog . AlertCondition { } , tokens : map [ string ] string { } , dataPath : dataPath , } }
NewStore returns a new Store.
NewStore returns a new Store .