Skip to content

Commit

Permalink
Merge pull request #39 from frain-dev/subomi/fix/remove-unused-variable
Browse files Browse the repository at this point in the history
fix: removed metadata fields
  • Loading branch information
subomi committed Feb 8, 2024
2 parents 4ad8d53 + f316650 commit 6a0dc14
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
11 changes: 5 additions & 6 deletions event.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@ type CreateDynamicEventRequest struct {
}

type EventResponse struct {
UID string `json:"uid"`
EventType string `json:"event_type"`
MatchedEndpoints int `json:"matched_endpoints"`
ProviderID string `json:"provider_id"`
Data json.RawMessage `json:"data"`
EndpointMetadata []*EndpointResponse `json:"endpoint_metadata"`
UID string `json:"uid"`
EventType string `json:"event_type"`
MatchedEndpoints int `json:"matched_endpoints"`
ProviderID string `json:"provider_id"`
Data json.RawMessage `json:"data"`

CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Expand Down
11 changes: 5 additions & 6 deletions event_delivery.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ type EventDelivery struct {
}

type EventDeliveryResponse struct {
UID string `json:"uid"`
EventMetadata EventMetadata `json:"event_metadata"`
EndpointMetadata EndpointResponse `json:"endpoint_metadata"`
Metadata Metadata `json:"metadata"`
Description string `json:"description,omitempty"`
Status string `json:"status"`
UID string `json:"uid"`
EventMetadata EventMetadata `json:"event_metadata"`
Metadata Metadata `json:"metadata"`
Description string `json:"description,omitempty"`
Status string `json:"status"`

CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Expand Down
3 changes: 1 addition & 2 deletions subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ type SubscriptionResponse struct {
Type string `json:"type"`
Status string `json:"status"`

Source *SourceResponse `json:"source_metadata,omitempty"`
Endpoint *EndpointResponse `json:"endpoint_metadata,omitempty"`
Source *SourceResponse `json:"source_metadata,omitempty"`

// subscription config
AlertConfig *AlertConfiguration `json:"alert_config,omitempty"`
Expand Down

0 comments on commit 6a0dc14

Please sign in to comment.