Documentation
¶
Index ¶
- Constants
- Variables
- type Visual
- func (p *Visual) CVCancelTask(bodyMap interface{}) (map[string]interface{}, int, error)
- func (p *Visual) CVGetResult(bodyMap interface{}) (map[string]interface{}, int, error)
- func (p *Visual) CVProcess(bodyMap interface{}) (map[string]interface{}, int, error)
- func (p *Visual) CVSubmitTask(bodyMap interface{}) (map[string]interface{}, int, error)
- func (p *Visual) CVSync2AsyncGetResult(bodyMap interface{}) (map[string]interface{}, int, error)
- func (p *Visual) CVSync2AsyncSubmitTask(bodyMap interface{}) (map[string]interface{}, int, error)
- func (p *Visual) GetAPIInfo(api string) *base.ApiInfo
- func (p *Visual) GetServiceInfo() *base.ServiceInfo
- func (p *Visual) SetHost(host string)
- func (p *Visual) SetRegion(region string)
- func (p *Visual) SetSchema(schema string)
Constants ¶
const ( DefaultRegion = "ap-singapore-1" ServiceVersion20200826 = "2020-08-26" ServiceName = "cv" )
Variables ¶
var ( ServiceInfo = &base.ServiceInfo{ Timeout: 30 * time.Second, Host: "cv.byteplusapi.com", Header: http.Header{}, } ApiInfoList = map[string]*base.ApiInfo{ "CVProcess": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"CVProcess"}, "Version": []string{"2024-06-06"}, }, Header: http.Header{ "Content-Type": []string{"application/json"}, }, }, "CVSubmitTask": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"CVSubmitTask"}, "Version": []string{"2024-06-06"}, }, Header: http.Header{ "Content-Type": []string{"application/json"}, }, }, "CVGetResult": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"CVGetResult"}, "Version": []string{"2024-06-06"}, }, Header: http.Header{ "Content-Type": []string{"application/json"}, }, }, "CVCancelTask": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"CVCancelTask"}, "Version": []string{"2024-06-06"}, }, Header: http.Header{ "Content-Type": []string{"application/json"}, }, }, "CVSync2AsyncSubmitTask": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"CVSync2AsyncSubmitTask"}, "Version": []string{"2024-06-06"}, }, Header: http.Header{ "Content-Type": []string{"application/json"}, }, }, "CVSync2AsyncGetResult": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"CVSync2AsyncGetResult"}, "Version": []string{"2024-06-06"}, }, Header: http.Header{ "Content-Type": []string{"application/json"}, }, }, } )
var DefaultInstance = NewInstance()
DefaultInstance Default Instance
Functions ¶
This section is empty.
Types ¶
type Visual ¶
IAM .
func (*Visual) CVCancelTask ¶
CVCancelTask common async cancel task interface bodyMap: Please refer to the request body in interface documentation
func (*Visual) CVGetResult ¶
CVGetResult common async get result interface bodyMap: Please refer to the request body in interface documentation
func (*Visual) CVProcess ¶
CVProcess comman sync interface bodyMap: Please refer to the request body in interface documentation
func (*Visual) CVSubmitTask ¶
CVSubmitTask Common async submit task interface bodyMap: Please refer to the request body in interface documentation
func (*Visual) CVSync2AsyncGetResult ¶
CVSync2AsyncGetResult common sync to async get result interface bodyMap: Please refer to the request body in interface documentation
func (*Visual) CVSync2AsyncSubmitTask ¶
CVSync2AsyncSubmitTask common sync to async submit task interface bodyMap: Please refer to the request body in interface documentation
func (*Visual) GetAPIInfo ¶
GetAPIInfo interface
func (*Visual) GetServiceInfo ¶
func (p *Visual) GetServiceInfo() *base.ServiceInfo
GetServiceInfo interface