Skip to content

Commit

Permalink
added restreamer eventgs and generate vod response
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Jun 5, 2024
1 parent 6478c63 commit 6971ca4
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
9 changes: 9 additions & 0 deletions compress/api_restreamer.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,12 @@ func (o *compress) RestreamerHlsStop(request hlsBodyRequest) (*HlsResponse, err
return nil, nil
}


func (o *compress) GenerateVodProxy(request generateVodRequest) (*generateVodResponse, error){
return nil, nil
}


func (o *compress) RestreamerEventsHistory( startFrom int, amount int) ([]RestreamerEvent, error) {
return nil, nil
}
1 change: 1 addition & 0 deletions compress/compress.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ type ICompress interface {
RestreamerHlsStart(request hlsBodyRequest) (*HlsResponse, error)
RestreamerHlsStop(request hlsBodyRequest) (*HlsResponse, error)
GetCustomerS3Zone() (*CustomerS3, error)
GenerateVodProxy(request generateVodRequest) (*generateVodResponse, error)
//
}

Expand Down
22 changes: 22 additions & 0 deletions compress/model_restreamer.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,26 @@ type eventsHistoryRequest struct {
BaseModel
StartFrom int `json:"start_from" `
Amount int `json:"amount" `
}

type RestreamerEvent struct {
Id int `json:"id" `
EventId string `json:"event_id" `
StartAt time.Time `json:"start_at" gorm:"type:timestamp;"`
UpdatedAt time.Time `json:"updated_at" gorm:"type:timestamp;"`
Active int `json:"active" `
Completed int `json:"completed" `
InstanceName string `json:"instance_name" `
CustomerId int `json:"customer_id" `
EventName string `json:"event_name" `
EndAt *time.Time `json:"end_at" gorm:"type:timestamp;"`
Protocol string `json:"protocol" `
IsLive int `json:"is_live" `
Deleted int `json:"deleted" `
}

type generateVodResponse struct {
JobId string `json:"jobid" `
Result string `json:"result" `
Status *string `json:"status" `
}

0 comments on commit 6971ca4

Please sign in to comment.