-
Notifications
You must be signed in to change notification settings - Fork 1
/
models.go
176 lines (163 loc) · 9.84 KB
/
models.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
package lambda_go_sdk
type RemotionOptions struct {
ServeUrl string `json:"serveUrl" validate:"required"`
FunctionName string `json:"functionName" validate:"required"`
RendererFunctionName string `json:"rendererFunctionName"`
Region string `json:"region" validate:"required"`
InputProps interface{} `json:"inputProps"`
Composition string `json:"composition" validate:"required"`
Codec string `json:"codec"`
ImageFormat string `json:"imageFormat"`
Crf int `json:"crf"`
EnvVariables interface{} `json:"envVariables"`
Metadata interface{} `json:"metadata"`
JpegQuality int `json:"jpegQuality"`
MaxRetries int `json:"maxRetries"`
Privacy string `json:"privacy"`
ColorSpace string `json:"colorSpace"`
LogLevel string `json:"logLevel"`
FrameRange interface{} `json:"frameRange"`
OutName interface{} `json:"outName"`
TimeoutInMilliseconds int `json:"timeoutInMilliseconds"`
ChromiumOptions interface{} `json:"chromiumOptions"`
Scale int `json:"scale"`
EveryNthFrame int `json:"everyNthFrame"`
NumberOfGifLoops int `json:"numberOfGifLoops"`
ConcurrencyPerLambda int `json:"concurrencyPerLambda"`
DownloadBehavior map[string]interface{} `json:"downloadBehavior"`
Muted bool `json:"muted"`
PreferLossless bool `json:"preferLossless"`
Overwrite bool `json:"overwrite"`
ForcePathStyle bool `json:"forcePathStyle"`
AudioBitrate interface{} `json:"audioBitrate"`
VideoBitrate interface{} `json:"videoBitrate"`
EncodingBufferSize interface{} `json:"encodingBufferSize"`
EncodingMaxRate interface{} `json:"encodingMaxRate"`
Webhook interface{} `json:"webhook"`
ForceHeight interface{} `json:"forceHeight"`
OffthreadVideoCacheSizeInBytes interface{} `json:"offthreadVideoCacheSizeInBytes"`
ForceWidth interface{} `json:"forceWidth"`
BucketName interface{} `json:"bucketName"`
AudioCodec interface{} `json:"audioCodec"`
ForceBucketName string `json:"forceBucketName"`
Gl string `json:"gl"`
X264Preset interface{} `json:"x264Preset"`
DeleteAfter *string `json:"deleteAfter"`
}
type renderInternalOptions struct {
RendererFunctionName *string `json:"rendererFunctionName"`
FramesPerLambda *string `json:"framesPerLambda"`
Composition string `json:"composition" validate:"required"`
ServeUrl string `json:"serveUrl" validate:"required"`
InputProps interface{} `json:"inputProps"`
Type string `json:"type,omitempty"`
Codec string `json:"codec"`
ImageFormat string `json:"imageFormat"`
Crf int `json:"crf,omitempty"`
EnvVariables interface{} `json:"envVariables,omitempty"`
Metadata interface{} `json:"metadata,omitempty"`
JpegQuality int `json:"jpegQuality"`
MaxRetries int `json:"maxRetries"`
Privacy string `json:"privacy"`
ColorSpace interface{} `json:"colorSpace"`
LogLevel string `json:"logLevel"`
FrameRange interface{} `json:"frameRange"`
OutName interface{} `json:"outName"`
TimeoutInMilliseconds int `json:"timeoutInMilliseconds"`
ChromiumOptions interface{} `json:"chromiumOptions"`
Scale int `json:"scale"`
EveryNthFrame int `json:"everyNthFrame"`
NumberOfGifLoops int `json:"numberOfGifLoops"`
ConcurrencyPerLambda int `json:"concurrencyPerLambda"`
DownloadBehavior map[string]interface{} `json:"downloadBehavior"`
Muted bool `json:"muted"`
PreferLossless bool `json:"preferLossless"`
ForcePathStyle bool `json:"forcePathStyle"`
Version string `json:"version"`
Overwrite bool `json:"overwrite"`
AudioBitrate interface{} `json:"audioBitrate"`
VideoBitrate interface{} `json:"videoBitrate"`
EncodingBufferSize interface{} `json:"encodingBufferSize"`
EncodingMaxRate interface{} `json:"encodingMaxRate"`
Webhook interface{} `json:"webhook"`
OffthreadVideoCacheSizeInBytes interface{} `json:"offthreadVideoCacheSizeInBytes"`
ForceHeight interface{} `json:"forceHeight"`
ForceWidth interface{} `json:"forceWidth"`
BucketName interface{} `json:"bucketName"`
AudioCodec interface{} `json:"audioCodec"`
ForceBucketName string `json:"forceBucketName,omitempty"`
Gl *string `json:"gl,omitempty"`
X264Preset interface{} `json:"x264Preset"`
DeleteAfter *string `json:"deleteAfter"`
}
type RawInvokeResponse struct {
Body string `json:"body"`
Type string `json:"type"`
}
type RemotionRenderResponse struct {
BucketName string `json:"bucketName"`
RenderId string `json:"renderId"`
}
type RenderConfig struct {
RenderId string `json:"renderId" validate:"required"`
BucketName string `json:"bucketName" validate:"required"`
LogLevel string `json:"logLevel"`
FunctionName string `json:"functionName" validate:"required"`
Region string `json:"region" validate:"required"`
DeleteAfter *string `json:"deleteAfter"`
}
type renderProgressInternalConfig struct {
RenderId string `json:"renderId" validate:"required"`
BucketName string `json:"bucketName" validate:"required"`
Type string `json:"type" validate:"required"`
Version string `json:"version" validate:"required"`
LogLevel string `json:"logLevel" validate:"required"`
}
type RenderProgress struct {
OverallProgress float64 `json:"overallProgress"`
Chunks int `json:"chunks"`
Done bool `json:"done"`
EncodingStatus *EncodingStatus `json:"encodingStatus,omitempty"`
Costs *Costs `json:"costs,omitempty"`
RenderId string `json:"renderId"`
RenderMetadata *RenderMetadata `json:"renderMetadata,omitempty"`
OutputFile *string `json:"outputFile,omitempty"`
OutKey *string `json:"outKey,omitempty"`
TimeToFinish *int `json:"timeToFinish,omitempty"`
Errors []string `json:"errors,omitempty"`
FatalErrorEncountered bool `json:"fatalErrorEncountered"`
CurrentTime int64 `json:"currentTime"`
RenderSize int64 `json:"renderSize"`
OutputSizeInBytes *int64 `json:"outputSizeInBytes,omitempty"`
LambdasInvoked int `json:"lambdasInvoked"`
FramesRendered *int `json:"framesRendered,omitempty"`
MostExpensiveFrameRanges []FrameRange `json:"mostExpensiveFrameRanges,omitempty"`
}
type EncodingStatus struct {
FramesEncoded int `json:"framesEncoded"`
}
type Costs struct {
AccruedSoFar float64 `json:"accruedSoFar"`
Currency string `json:"currency"`
DisplayCost string `json:"displayCost"`
Disclaimer string `json:"disclaimer"`
}
type RenderMetadata struct {
TotalFrames int `json:"totalFrames"`
StartedDate int64 `json:"startedDate"`
TotalChunks int `json:"totalChunks"`
EstimatedTotalLambdaInvokations int `json:"estimatedTotalLambdaInvokations"`
EstimatedRenderLambdaInvokations int `json:"estimatedRenderLambdaInvokations"`
CompositionId string `json:"compositionId"`
Codec string `json:"codec"`
Bucket string `json:"bucket"`
}
type FrameRange struct {
Chunk int `json:"chunk"`
TimeInMilliseconds int `json:"timeInMilliseconds"`
FrameRange [2]int `json:"frameRange"`
}
type PayloadData struct {
Type string `json:"type"`
Payload string `json:"payload"`
}