vedit

package
v1.0.139 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTimeout = 10 * time.Second
)

Variables

View Source
var (
	ServiceInfoMap = map[string]*base.ServiceInfo{
		base.RegionCnNorth1: {
			Timeout: DefaultTimeout,
			Host:    "vedit.volcengineapi.com",
			Header: http.Header{
				"Accept": []string{"application/json"},
			},
			Credentials: base.Credentials{
				Region:  base.RegionCnNorth1,
				Service: "edit",
			},
		},
	}

	ApiInfoList = map[string]*base.ApiInfo{
		"SubmitDirectEditTaskAsync": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"SubmitDirectEditTaskAsync"},
				"Version": []string{"2018-01-01"},
			},
		},
		"GetDirectEditResult": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"GetDirectEditResult"},
				"Version": []string{"2018-01-01"},
			},
		},
		"SubmitTemplateTaskAsync": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"SubmitTemplateTaskAsync"},
				"Version": []string{"2018-01-01"},
			},
		},
	}
)

Functions

This section is empty.

Types

type GetDirectEditResultRequest

type GetDirectEditResultRequest struct {
	ReqIds []string `json:"ReqIds"`
}

type GetDirectEditResultResponse

type GetDirectEditResultResponse struct {
	ResponseMetadata *base.ResponseMetadata
	Result           []struct {
		ReqId        string      `json:"ReqId"`
		Param        interface{} `json:"EditParam"`
		Priority     int32       `json:"Priority"`
		CallbackUri  string      `json:"CallbackUri"`
		CallbackArgs string      `json:"CallbackArgs"`
		Status       string      `json:"Status"`
		OutputVid    string      `json:"OutputVid"`
		TaskId       string      `json:"TaskId"`
	} `json:"Result"`
}

type SubmitDirectEditTaskAsyncResponse

type SubmitDirectEditTaskAsyncResponse struct {
	ResponseMetadata *base.ResponseMetadata
	Result           struct {
		ReqId string `json:"ReqId"`
	} `json:"Result"`
}

type SubmitDirectEditTaskRequest

type SubmitDirectEditTaskRequest struct {
	Uploader     string      `json:"Uploader,omitempty"`
	Application  string      `json:"Application,omitempty"`
	VideoName    string      `json:"VideoName,omitempty"`
	Param        interface{} `json:"EditParam"`
	Priority     int32       `json:"Priority"`
	CallbackUri  string      `json:"CallbackUri,omitempty"`
	CallbackArgs string      `json:"CallbackArgs,omitempty"`
}

type SubmitTemplateTaskAsyncResponse

type SubmitTemplateTaskAsyncResponse struct {
	ResponseMetadata *base.ResponseMetadata
	Result           []string `json:"Result"`
}

type SubmitTemplateTaskRequest

type SubmitTemplateTaskRequest struct {
	TemplateId   string                `json:"TemplateId,omitempty"`
	Space        string                `json:"Space,omitempty"`
	VideoName    []string              `json:"VideoName,omitempty"`
	Params       [][]TemplateParamItem `json:"Params,omitempty"`
	Priority     int32                 `json:"Priority"`
	CallbackUri  string                `json:"CallbackUri,omitempty"`
	CallbackArgs string                `json:"CallbackArgs,omitempty"`
}

type TemplateParamItem

type TemplateParamItem struct {
	Name     string `json:"Name,omitempty"`
	Type     string `json:"Type,omitempty"`
	Position string `json:"Position,omitempty"`
	Source   string `json:"Source,omitempty"`
	Text     string `json:"Text,omitempty"`
}

type VEdit

type VEdit struct {
	*base.Client
}

func NewInstance

func NewInstance() *VEdit

func (*VEdit) GetDirectEditResult

func (e *VEdit) GetDirectEditResult(request *GetDirectEditResultRequest) (*GetDirectEditResultResponse, error)

func (*VEdit) SubmitDirectEditTaskAsync

func (e *VEdit) SubmitDirectEditTaskAsync(request *SubmitDirectEditTaskRequest) (*SubmitDirectEditTaskAsyncResponse, error)

func (*VEdit) SubmitTemplateTaskAsync

func (e *VEdit) SubmitTemplateTaskAsync(request *SubmitTemplateTaskRequest) (*SubmitTemplateTaskAsyncResponse, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL