Skip to content

Commit

Permalink
Beholder: add NewMessage constructor to global
Browse files Browse the repository at this point in the history
  • Loading branch information
pkcll committed Aug 14, 2024
1 parent 160a7d8 commit e48eaed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/beholder/global/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,7 @@ func Bootstrap(cfg beholder.Config, errorHandler func(error)) error {
func NewConfig() beholder.Config {
return beholder.DefaultConfig()
}

func NewMessage(body []byte, attrKVs ...any) beholder.Message {
return beholder.NewMessage(body, attrKVs...)
}

0 comments on commit e48eaed

Please sign in to comment.