Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCompiler ¶
Types ¶
type Compiler ¶
type Compiler interface { Compile(context.Context, Compile) (*Void, error) GetDataset(context.Context, GetDatasetRequest) (*Dataset, error) ResolveProjectsForVideo(context.Context, ResolveProjectsForVideoRequest) (*ResolveProjectsForVideoResponse, error) }
func NewCompilerClient ¶
func NewCompilerClient( endpoint string, options ...*CompilerClientOptions, ) Compiler
func NewCompilerClientFromOptions ¶
func NewCompilerClientFromOptions(opts base.ServiceOptions) Compiler
type CompilerClientOptions ¶
type CompilerClientOptions struct {
// contains filtered or unexported fields
}
func NewCompilerClientOptions ¶
func NewCompilerClientOptions() *CompilerClientOptions
func (*CompilerClientOptions) SetBasicAuth ¶
func (o *CompilerClientOptions) SetBasicAuth(username, password string) *CompilerClientOptions
func (*CompilerClientOptions) SetTimeout ¶
func (o *CompilerClientOptions) SetTimeout(timeout time.Duration) *CompilerClientOptions
func (*CompilerClientOptions) SetTransport ¶
func (o *CompilerClientOptions) SetTransport(transport http.RoundTripper) *CompilerClientOptions
type GetDatasetRequest ¶
type ResolveProjectsForVideoRequest ¶
type ResolveProjectsForVideoRequest struct {
VideoID string `json:"videoID"`
}
type Video ¶
type Video struct { ID string `json:"id"` Details *VideoDetails `json:"details"` Source *VideoSource `json:"source"` }
type VideoDetails ¶
type VideoDetails struct { ID string `json:"id"` Title string `json:"title"` Description string `json:"description"` Thumbnail string `json:"thumbnail"` UploadDate string `json:"uploadDate"` Uploader string `json:"uploader"` UploaderID string `json:"uploaderID"` Channel string `json:"channel"` ChannelID string `json:"channelID"` Duration int64 `json:"duration"` ViewCount int64 `json:"viewCount"` Width int `json:"width"` Height int `json:"height"` FPS int `json:"fPS"` }
type VideoSource ¶
Click to show internal directories.
Click to hide internal directories.