Skip to content

Commit

Permalink
Move most functionality from libbeat/beat to libbeat/cmd package
Browse files Browse the repository at this point in the history
- only have commonly shared structs/interfaces in libbeat/beat
- move libbeat/beat functionality to libbeat/cmd/instance package
- update imports/dependencies
- start hiding some exported symbols
  • Loading branch information
urso authored and kvch committed Aug 9, 2017
1 parent 190edf0 commit 66d6929
Show file tree
Hide file tree
Showing 24 changed files with 697 additions and 686 deletions.
5 changes: 1 addition & 4 deletions filebeat/cmd/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ import (
)

func buildModulesManager(beat *beat.Beat) (cmd.ModulesManager, error) {
config, err := beat.BeatConfig()
if err != nil {
return nil, errors.Wrap(err, "initialization error")
}
config := beat.BeatConfig

glob, err := config.String("config.modules.path", -1)
if err != nil {
Expand Down
Loading

0 comments on commit 66d6929

Please sign in to comment.