Skip to content

Commit

Permalink
split event_type
Browse files Browse the repository at this point in the history
Signed-off-by: MUzairS15 <muzair.shaikh810@gmail.com>
  • Loading branch information
MUzairS15 committed Aug 30, 2023
1 parent 7991f81 commit ebf5cbf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
9 changes: 7 additions & 2 deletions models/events/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@ func (e *EventBuilder) WithDescription(description string) *EventBuilder {
return e
}

func (e *EventBuilder) WithEventType(eventType string) *EventBuilder {
e.event.EventType = eventType
func (e *EventBuilder) WithCategory(eventCategory string) *EventBuilder {
e.event.Category = eventCategory
return e
}

func (e *EventBuilder) WithAction(eventAction string) *EventBuilder {
e.event.Action = eventAction
return e
}

Expand Down
20 changes: 11 additions & 9 deletions models/events/events.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ebf5cbf

Please sign in to comment.