Versions in this module Expand all Collapse all v0 v0.1.1 Apr 12, 2026 v0.1.0 Apr 12, 2026 Changes in this version + const AliyunGreenDefaultEndpoint + const KindAliyun + const KindQCloud + const KindQiniu + const QCloudVODDefaultRegion + const VideoCensorEndpoint + const VideoCensorHost + const VideoJobEndpoint + type AliyunVideoCensor struct + AccessKeyID string + AccessKeySecret string + Client *green.Client + Endpoint string + func NewAliyunVideoCensor(accessKeyID, accessKeySecret, endpoint string) (*AliyunVideoCensor, error) + func (c *AliyunVideoCensor) GetCensorResult(taskID string) (interface{}, error) + func (c *AliyunVideoCensor) SubmitCensorVideo(videoURL string) (string, error) + type QCloudVideoCensor struct + Client *vod.Client + Region string + SecretID string + SecretKey string + func NewQCloudVideoCensor(secretID, secretKey, region string) (*QCloudVideoCensor, error) + func (c *QCloudVideoCensor) GetCensorResult(taskID string) (interface{}, error) + func (c *QCloudVideoCensor) SubmitCensorVideo(videoURL string) (string, error) + func (c *QCloudVideoCensor) SubmitCensorVideoByFileID(fileID string) (string, error) + type QiniuVideoCensor struct + AccessKey string + Client *http.Client + Host string + SecretKey string + func NewQiniuVideoCensor(accessKey, secretKey string) *QiniuVideoCensor + func (c *QiniuVideoCensor) GetCensorResult(taskID string) (interface{}, error) + func (c *QiniuVideoCensor) GetCensorResultFull(jobID string) (*VideoCensorJobResponse, error) + func (c *QiniuVideoCensor) SubmitCensor(req VideoCensorRequest) (*VideoCensorSubmitResponse, error) + func (c *QiniuVideoCensor) SubmitCensorVideo(videoURL string) (string, error) + func (c *QiniuVideoCensor) SubmitCensorVideoFull(uri, videoID string, scenes []string, intervalMsecs int) (*VideoCensorSubmitResponse, error) + type VideoCensor interface + GetCensorResult func(taskID string) (interface{}, error) + SubmitCensorVideo func(videoURL string) (string, error) + func GetVideoCensor(kind string, credentials ...interface{}) (VideoCensor, error) + type VideoCensorCutDetail struct + Detections []VideoCensorDetection + Group string + Label string + Sample *VideoPoliticianSample + Score float64 + Suggestion string + type VideoCensorCutResult struct + Details []VideoCensorCutDetail + Offset int + Suggestion string + URI string + type VideoCensorData struct + ID string + URI string + type VideoCensorDetection struct + Pts [][]int + Score float64 + type VideoCensorJobResponse struct + CreatedAt string + ID string + Request json.RawMessage + RescheduledAt string + Result *VideoCensorResult + Status string + UpdatedAt string + VID string + type VideoCensorParams struct + CutParam *VideoCutParam + Scenes []string + type VideoCensorRequest struct + Data VideoCensorData + Params VideoCensorParams + type VideoCensorResult struct + Code int + Message string + Result *VideoCensorResultDetail + type VideoCensorResultDetail struct + Scenes map[string]VideoCensorSceneResult + Suggestion string + type VideoCensorSceneResult struct + Cuts []VideoCensorCutResult + Suggestion string + type VideoCensorSubmitResponse struct + Job string + type VideoCutParam struct + IntervalMsecs int + type VideoPoliticianSample struct + Pts [][]int + URI string