Skip to content

Commit

Permalink
Added null resolver for Linux (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
scudette authored Oct 19, 2021
1 parent 6859226 commit b4f61df
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ type MessageResolver interface {
Close()
}

type NullResolver struct{}

func (self NullResolver) GetMessage(provider, channel string, event_id int) string {
return ""
}

func (self NullResolver) GetParameter(provider, channel string, parameter_id int) string {
return ""
}

func (self NullResolver) Close() {}

func flatten(dict *ordereddict.Dict) []interface{} {
result := []interface{}{}

Expand Down
2 changes: 1 addition & 1 deletion resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
package evtx

func GetNativeResolver() (MessageResolver, error) {
return nil, nil
return NullResolver{}, nil
}

0 comments on commit b4f61df

Please sign in to comment.