Documentation ¶
Index ¶
- type CensorClient
- func (c *CensorClient) AsyncAudioScan(request *censor.AsyncAudioScanRequest) (*censor.AsyncAudioScanResponse, error)
- func (c *CensorClient) AsyncAudioScanV2(request *censor.AsyncAudioScanV2Request) (*censor.AsyncAudioScanV2Response, error)
- func (c *CensorClient) AsyncImageScan(request *censor.AsyncImageScanRequest) (*censor.AsyncImageScanResponse, error)
- func (c *CensorClient) AsyncVideoScan(request *censor.AsyncVideoScanRequest) (*censor.AsyncVideoScanResponse, error)
- func (c *CensorClient) AsyncVideoScanV2(request *censor.AsyncVideoScanV2Request) (*censor.AsyncVideoScanV2Response, error)
- func (c *CensorClient) AudioCallbackV2(request *censor.AudioCallbackV2Request) (*censor.AudioCallbackV2Response, error)
- func (c *CensorClient) AudioResults(request *censor.AudioResultsRequest) (*censor.AudioResultsResponse, error)
- func (c *CensorClient) AudioResultsV2(request *censor.AudioResultsV2Request) (*censor.AudioResultsV2Response, error)
- func (c *CensorClient) DeleteCensorLib(request *censor.DeleteCensorLibRequest) (*censor.DeleteCensorLibResponse, error)
- func (c *CensorClient) DeleteCensorLibItems(request *censor.DeleteCensorLibItemsRequest) (*censor.DeleteCensorLibItemsResponse, error)
- func (c *CensorClient) DeleteLimit(request *censor.DeleteLimitRequest) (*censor.DeleteLimitResponse, error)
- func (c *CensorClient) DisableLogger()
- func (c *CensorClient) ImageResults(request *censor.ImageResultsRequest) (*censor.ImageResultsResponse, error)
- func (c *CensorClient) ImageScan(request *censor.ImageScanRequest) (*censor.ImageScanResponse, error)
- func (c *CensorClient) ImageScanV2(request *censor.ImageScanV2Request) (*censor.ImageScanV2Response, error)
- func (c *CensorClient) InnerTextScan(request *censor.InnerTextScanRequest) (*censor.InnerTextScanResponse, error)
- func (c *CensorClient) SetConfig(config *core.Config)
- func (c *CensorClient) SetLogger(logger core.Logger)
- func (c *CensorClient) TextResultsV2(request *censor.TextResultsV2Request) (*censor.TextResultsV2Response, error)
- func (c *CensorClient) TextScan(request *censor.TextScanRequest) (*censor.TextScanResponse, error)
- func (c *CensorClient) TextScanV2(request *censor.TextScanV2Request) (*censor.TextScanV2Response, error)
- func (c *CensorClient) VideoCallbackV2(request *censor.VideoCallbackV2Request) (*censor.VideoCallbackV2Response, error)
- func (c *CensorClient) VideoResults(request *censor.VideoResultsRequest) (*censor.VideoResultsResponse, error)
- func (c *CensorClient) VideoResultsV2(request *censor.VideoResultsV2Request) (*censor.VideoResultsV2Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CensorClient ¶
type CensorClient struct {
core.JDCloudClient
}
func NewCensorClient ¶
func NewCensorClient(credential *core.Credential) *CensorClient
func (*CensorClient) AsyncAudioScan ¶ added in v1.45.0
func (c *CensorClient) AsyncAudioScan(request *censor.AsyncAudioScanRequest) (*censor.AsyncAudioScanResponse, error)
提交音频异步检测任务
func (*CensorClient) AsyncAudioScanV2 ¶ added in v1.56.0
func (c *CensorClient) AsyncAudioScanV2(request *censor.AsyncAudioScanV2Request) (*censor.AsyncAudioScanV2Response, error)
提交音频异步检测任务V2
func (*CensorClient) AsyncImageScan ¶
func (c *CensorClient) AsyncImageScan(request *censor.AsyncImageScanRequest) (*censor.AsyncImageScanResponse, error)
提交图片异步检测任务
func (*CensorClient) AsyncVideoScan ¶ added in v1.45.0
func (c *CensorClient) AsyncVideoScan(request *censor.AsyncVideoScanRequest) (*censor.AsyncVideoScanResponse, error)
提交视频异步检测任务
func (*CensorClient) AsyncVideoScanV2 ¶ added in v1.56.0
func (c *CensorClient) AsyncVideoScanV2(request *censor.AsyncVideoScanV2Request) (*censor.AsyncVideoScanV2Response, error)
提交视频异步检测任务V2
func (*CensorClient) AudioCallbackV2 ¶ added in v1.56.0
func (c *CensorClient) AudioCallbackV2(request *censor.AudioCallbackV2Request) (*censor.AudioCallbackV2Response, error)
语音检测结果获取接口,获取离线处理的数据后,下次调用,不会再次返回之前获取过的离线数据。小于10s/20次,请求频率过快服务器会拒绝处理
func (*CensorClient) AudioResults ¶ added in v1.45.0
func (c *CensorClient) AudioResults(request *censor.AudioResultsRequest) (*censor.AudioResultsResponse, error)
查看音频异步检测结果
func (*CensorClient) AudioResultsV2 ¶ added in v1.56.0
func (c *CensorClient) AudioResultsV2(request *censor.AudioResultsV2Request) (*censor.AudioResultsV2Response, error)
根据taskid查询语音检测结果,小于10s/20次,请求频率过快服务器会拒绝处理
func (*CensorClient) DeleteCensorLib ¶ added in v1.45.0
func (c *CensorClient) DeleteCensorLib(request *censor.DeleteCensorLibRequest) (*censor.DeleteCensorLibResponse, error)
删除敏感库
func (*CensorClient) DeleteCensorLibItems ¶ added in v1.45.0
func (c *CensorClient) DeleteCensorLibItems(request *censor.DeleteCensorLibItemsRequest) (*censor.DeleteCensorLibItemsResponse, error)
删除敏感库Item
func (*CensorClient) DeleteLimit ¶ added in v1.45.0
func (c *CensorClient) DeleteLimit(request *censor.DeleteLimitRequest) (*censor.DeleteLimitResponse, error)
删除限制参数配置
func (*CensorClient) DisableLogger ¶
func (c *CensorClient) DisableLogger()
func (*CensorClient) ImageResults ¶
func (c *CensorClient) ImageResults(request *censor.ImageResultsRequest) (*censor.ImageResultsResponse, error)
查看图片异步检测结果
func (*CensorClient) ImageScan ¶
func (c *CensorClient) ImageScan(request *censor.ImageScanRequest) (*censor.ImageScanResponse, error)
图片同步检测
func (*CensorClient) ImageScanV2 ¶ added in v1.56.0
func (c *CensorClient) ImageScanV2(request *censor.ImageScanV2Request) (*censor.ImageScanV2Response, error)
图片同步检测v2
func (*CensorClient) InnerTextScan ¶ added in v1.45.0
func (c *CensorClient) InnerTextScan(request *censor.InnerTextScanRequest) (*censor.InnerTextScanResponse, error)
文本同步检测-检测文本中是否包含违规信息
func (*CensorClient) SetConfig ¶
func (c *CensorClient) SetConfig(config *core.Config)
func (*CensorClient) SetLogger ¶
func (c *CensorClient) SetLogger(logger core.Logger)
func (*CensorClient) TextResultsV2 ¶ added in v1.56.0
func (c *CensorClient) TextResultsV2(request *censor.TextResultsV2Request) (*censor.TextResultsV2Response, error)
查看文本疑似结果,小于10s/20次,请求频率过快服务器会拒绝处理
func (*CensorClient) TextScan ¶
func (c *CensorClient) TextScan(request *censor.TextScanRequest) (*censor.TextScanResponse, error)
文本同步检测-检测文本中是否包含违规信息
func (*CensorClient) TextScanV2 ¶ added in v1.56.0
func (c *CensorClient) TextScanV2(request *censor.TextScanV2Request) (*censor.TextScanV2Response, error)
文本同步检测-检测文本中是否包含违规信息
func (*CensorClient) VideoCallbackV2 ¶ added in v1.56.0
func (c *CensorClient) VideoCallbackV2(request *censor.VideoCallbackV2Request) (*censor.VideoCallbackV2Response, error)
视频检测结果获取接口,获取离线处理的数据后,下次调用,不会再次返回之前获取过的离线数据。小于10s/20次,请求频率过快服务器会拒绝处理
func (*CensorClient) VideoResults ¶ added in v1.45.0
func (c *CensorClient) VideoResults(request *censor.VideoResultsRequest) (*censor.VideoResultsResponse, error)
查看视频异步检测结果
func (*CensorClient) VideoResultsV2 ¶ added in v1.56.0
func (c *CensorClient) VideoResultsV2(request *censor.VideoResultsV2Request) (*censor.VideoResultsV2Response, error)
根据taskid查询视频检测结果,小于10s/20次,请求频率过快服务器会拒绝处理
Click to show internal directories.
Click to hide internal directories.