-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated the models need to fix the getRoutes method
- Loading branch information
allan
committed
Jan 31, 2023
1 parent
46cc734
commit fa3031c
Showing
6 changed files
with
136 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package hls | ||
|
||
type ResponseSourceHls struct { | ||
Name string `json:"name" required:"true" validate:"nonnil,min=1"` | ||
ID string `json:"id" required:"true" validate:"nonnil,min=1"` | ||
Address string `json:"address" required:"true" validate:"nonnil,min=1"` | ||
Protocol string `json:"protocol" required:"true" validate:"nonnil,min=1"` | ||
Port int `json:"port" required:"true" validate:"nonnil,min=1"` | ||
NetworkInterface string `json:"networkInterface" required:"true" validate:"nonnil,min=1"` | ||
SrtPassPhrase string `json:"srtPassPhrase" required:"true" validate:"nonnil,min=1"` | ||
SrtLatency int `json:"srtLatency" required:"true" validate:"nonnil,min=1"` | ||
SrtRcvBuf int `json:"srtRcvBuf" required:"true" validate:"nonnil,min=1"` | ||
SrtStreamId string `json:"srtStreamId" required:"true" validate:"nonnil,min=1"` | ||
UseFec bool `json:"useFec" required:"true" validate:"nonnil,min=1"` | ||
SrtFecCols int `json:"srtFecCols" required:"true" validate:"nonnil,min=1"` | ||
SrtFecRows int `json:"srtFecRows" required:"true" validate:"nonnil,min=1"` | ||
SrtFecArq string `json:"srtFecArq" required:"true" validate:"nonnil,min=1"` | ||
} | ||
|
||
type ResponseDestinationHls struct { | ||
Name string `json:"name" required:"true" validate:"nonnil,min=1"` | ||
ID string `json:"id" required:"true" validate:"nonnil,min=1"` | ||
Address string `json:"address" required:"true" validate:"nonnil,min=1"` | ||
Protocol string `json:"protocol" required:"true" validate:"nonnil,min=1"` | ||
SegmentDuration string `json:"segmentDuration" required:"true" validate:"nonnil,min=1"` | ||
UseEncryption bool `json:"useEncryption" required:"true" validate:"nonnil,min=1"` | ||
SegmentsPerKey int `json:"segmentsPerKey" required:"true" validate:"nonnil,min=1"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
package rtmp | ||
|
||
type ResponseSourceRtmp struct { | ||
Name string `json:"name" required:"true" validate:"nonnil,min=1"` | ||
ID string `json:"id" required:"true" validate:"nonnil,min=1"` | ||
Address string `json:"address" required:"true" validate:"nonnil,min=1"` | ||
Protocol string `json:"protocol" required:"true" validate:"nonnil,min=1"` | ||
Port int `json:"port" required:"true" validate:"nonnil,min=1"` | ||
NetworkInterface string `json:"networkInterface" required:"true" validate:"nonnil,min=1"` | ||
StreamName string `json:"streamName" required:"true" validate:"nonnil,min=1"` | ||
RtmpMode string `json:"rtmpMode" required:"true" validate:"nonnil,min=1"` | ||
State string `json:"state" required:"true" validate:"nonnil,min=1"` | ||
SummaryStatusCode string `json:"summaryStatusCode" required:"true" validate:"nonnil,min=1"` | ||
SummaryStatusDetails string `json:"summaryStatusDetails" required:"true" validate:"nonnil,min=1"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,33 @@ | ||
package srt | ||
|
||
// need to be finished | ||
type ResponseSourceSrt struct { | ||
Name string `json:"name" required:"true" validate:"nonnil,min=1"` | ||
ID string `json:"id" required:"true" validate:"nonnil,min=1"` | ||
Address string `json:"address" required:"true" validate:"nonnil,min=1"` | ||
Protocol string `json:"protocol" required:"true" validate:"nonnil,min=1"` | ||
Port int `json:"port" required:"true" validate:"nonnil,min=1"` | ||
NetworkInterface string `json:"networkInterface" required:"true" validate:"nonnil,min=1"` | ||
SrtPassPhrase string `json:"srtPassPhrase" required:"true" validate:"nonnil,min=1"` | ||
SrtLatency int `json:"srtLatency" required:"true" validate:"nonnil,min=1"` | ||
SrtRcvBuf int `json:"srtRcvBuf" required:"true" validate:"nonnil,min=1"` | ||
SrtStreamId string `json:"srtStreamId" required:"true" validate:"nonnil,min=1"` | ||
UseFec bool `json:"useFec" required:"true" validate:"nonnil,min=1"` | ||
} | ||
|
||
type ResponseDestinationSrt struct { | ||
Name string `json:"name" required:"true" validate:"nonnil,min=1"` | ||
ID string `json:"id" required:"true" validate:"nonnil,min=1"` | ||
Address string `json:"address" required:"true" validate:"nonnil,min=1"` | ||
Protocol string `json:"protocol" required:"true" validate:"nonnil,min=1"` | ||
Port int `json:"port" required:"true" validate:"nonnil,min=1"` | ||
NetworkInterface string `json:"networkInterface" required:"true" validate:"nonnil,min=1"` | ||
RetainHeader string `json:"retainHeader" required:"true" validate:"nonnil,min=1"` | ||
Mtu int `json:"mtu" required:"true" validate:"nonnil,min=1"` | ||
Ttl string `json:"ttl" required:"true" validate:"nonnil,min=1"` | ||
Tos string `json:"tos" required:"true" validate:"nonnil,min=1"` | ||
SrtEncryption string `json:"srtEncryption" required:"true" validate:"nonnil,min=1"` | ||
SrtPassPhrase string `json:"srtPassPhrase" required:"true" validate:"nonnil,min=1"` | ||
UseFEC bool `json:"useFEC" required:"true" validate:"nonnil,min=1"` | ||
SrtFecCols int `json:"srtFecCols" required:"true" validate:"nonnil,min=1"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,36 @@ | ||
package udprtp | ||
|
||
type ResponseSourceUdpRtp struct { | ||
Name string `json:"name" required:"true" validate:"nonnil,min=1"` | ||
ID string `json:"id" required:"true" validate:"nonnil,min=1"` | ||
Address string `json:"address" required:"true" validate:"nonnil,min=1"` | ||
Protocol string `json:"protocol" required:"true" validate:"nonnil,min=1"` | ||
Port int `json:"port" required:"true" validate:"nonnil,min=1"` | ||
NetworkInterface string `json:"networkInterface" required:"true" validate:"nonnil,min=1"` | ||
RetainHeader string `json:"retainHeader" required:"true" validate:"nonnil,min=1"` | ||
SourceAddress string `json:"sourceAddress" required:"true" validate:"nonnil,min=1"` | ||
State string `json:"state" required:"true" validate:"nonnil,min=1"` | ||
SummaryStatusCode string `json:"summaryStatusCode" required:"true" validate:"nonnil,min=1"` | ||
SummaryStatusDetails string `json:"summaryStatusDetails" required:"true" validate:"nonnil,min=1"` | ||
} | ||
|
||
type ResponseDestinationUdpRtp struct { | ||
Name string `json:"name" required:"true" validate:"nonnil,min=1"` | ||
ID string `json:"id" required:"true" validate:"nonnil,min=1"` | ||
Address string `json:"address" required:"true" validate:"nonnil,min=1"` | ||
Protocol string `json:"protocol" required:"true" validate:"nonnil,min=1"` | ||
Port int `json:"port" required:"true" validate:"nonnil,min=1"` | ||
NetworkInterface string `json:"networkInterface" required:"true" validate:"nonnil,min=1"` | ||
RetainHeader string `json:"retainHeader" required:"true" validate:"nonnil,min=1"` | ||
Action string `json:"action" required:"true" validate:"nonnil,min=1"` | ||
Mtu int `json:"mtu" required:"true" validate:"nonnil,min=1"` | ||
Ttl string `json:"ttl" required:"true" validate:"nonnil,min=1"` | ||
Tos string `json:"tos" required:"true" validate:"nonnil,min=1"` | ||
Fec string `json:"fec" required:"true" validate:"nonnil,min=1"` | ||
PrompegFecLevel string `json:"prompegFecLevel"` | ||
PrompegFeclsBlockAligned bool `json:"prompegFeclsBlockAligned"` | ||
PrompegFecColumns int `json:"prompegFecColumns"` | ||
PrompegFecRows int `json:"prompegFecRows"` | ||
Shaping bool `json:"shaping"` | ||
MaxBitrate int `json:"maxBitrate"` | ||
} |