Skip to content

Commit

Permalink
Adding response transporter for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
COMTOP1 committed Dec 19, 2023
1 parent 583af84 commit 78c9332
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion common/transporter/structs.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package transporter

import "github.com/ystv/streamer/common/transporter/action"
import (
"github.com/ystv/streamer/common/transporter/action"
"github.com/ystv/streamer/common/wsMessages"
)

type (
Transporter struct {
Expand Down Expand Up @@ -29,6 +32,11 @@ type (
StreamIn string `json:"streamIn"`
PathOut string `json:"pathOut"`
}

ResponseTransporter struct {
Status wsMessages.WSMessage `json:"status"`
Payload interface{} `json:"payload"`
}
)

// ResponseSeparator is a random string separator between the response status and body
Expand Down

0 comments on commit 78c9332

Please sign in to comment.