visual

package
v1.0.75 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DefaultRegion          = "ap-singapore-1"
	ServiceVersion20200826 = "2020-08-26"
	ServiceName            = "cv"
)

Variables

View Source
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"},
			},
		},
	}
)
View Source
var DefaultInstance = NewInstance()

DefaultInstance Default Instance

Functions

This section is empty.

Types

type Visual

type Visual struct {
	Client *base.Client
}

IAM .

func NewInstance

func NewInstance() *Visual

NewInstance Create an instance

func (*Visual) CVCancelTask

func (p *Visual) CVCancelTask(bodyMap interface{}) (map[string]interface{}, int, error)

CVCancelTask common async cancel task interface bodyMap: Please refer to the request body in interface documentation

func (*Visual) CVGetResult

func (p *Visual) CVGetResult(bodyMap interface{}) (map[string]interface{}, int, error)

CVGetResult common async get result interface bodyMap: Please refer to the request body in interface documentation

func (*Visual) CVProcess

func (p *Visual) CVProcess(bodyMap interface{}) (map[string]interface{}, int, error)

CVProcess comman sync interface bodyMap: Please refer to the request body in interface documentation

func (*Visual) CVSubmitTask

func (p *Visual) CVSubmitTask(bodyMap interface{}) (map[string]interface{}, int, error)

CVSubmitTask Common async submit task interface bodyMap: Please refer to the request body in interface documentation

func (*Visual) CVSync2AsyncGetResult

func (p *Visual) CVSync2AsyncGetResult(bodyMap interface{}) (map[string]interface{}, int, error)

CVSync2AsyncGetResult common sync to async get result interface bodyMap: Please refer to the request body in interface documentation

func (*Visual) CVSync2AsyncSubmitTask

func (p *Visual) CVSync2AsyncSubmitTask(bodyMap interface{}) (map[string]interface{}, int, error)

CVSync2AsyncSubmitTask common sync to async submit task interface bodyMap: Please refer to the request body in interface documentation

func (*Visual) GetAPIInfo

func (p *Visual) GetAPIInfo(api string) *base.ApiInfo

GetAPIInfo interface

func (*Visual) GetServiceInfo

func (p *Visual) GetServiceInfo() *base.ServiceInfo

GetServiceInfo interface

func (*Visual) SetHost

func (p *Visual) SetHost(host string)

SetHost .

func (*Visual) SetRegion

func (p *Visual) SetRegion(region string)

SetRegion

func (*Visual) SetSchema

func (p *Visual) SetSchema(schema string)

SetSchema .

Jump to

Keyboard shortcuts

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