Documentation ¶
Index ¶
- func GenReqDefForRunCheckResult() *def.HttpRequestDef
- func GenReqDefForRunCheckTaskJobs() *def.HttpRequestDef
- func GenReqDefForRunImageBatchModeration() *def.HttpRequestDef
- func GenReqDefForRunImageModeration() *def.HttpRequestDef
- func GenReqDefForRunModerationAudio() *def.HttpRequestDef
- func GenReqDefForRunTaskSumbit() *def.HttpRequestDef
- func GenReqDefForRunTextModeration() *def.HttpRequestDef
- func ModerationClientBuilder() *http_client.HcHttpClientBuilder
- type ModerationClient
- func (c *ModerationClient) RunCheckResult(request *model.RunCheckResultRequest) (*model.RunCheckResultResponse, error)
- func (c *ModerationClient) RunCheckResultInvoker(request *model.RunCheckResultRequest) *RunCheckResultInvoker
- func (c *ModerationClient) RunCheckTaskJobs(request *model.RunCheckTaskJobsRequest) (*model.RunCheckTaskJobsResponse, error)
- func (c *ModerationClient) RunCheckTaskJobsInvoker(request *model.RunCheckTaskJobsRequest) *RunCheckTaskJobsInvoker
- func (c *ModerationClient) RunImageBatchModeration(request *model.RunImageBatchModerationRequest) (*model.RunImageBatchModerationResponse, error)
- func (c *ModerationClient) RunImageBatchModerationInvoker(request *model.RunImageBatchModerationRequest) *RunImageBatchModerationInvoker
- func (c *ModerationClient) RunImageModeration(request *model.RunImageModerationRequest) (*model.RunImageModerationResponse, error)
- func (c *ModerationClient) RunImageModerationInvoker(request *model.RunImageModerationRequest) *RunImageModerationInvoker
- func (c *ModerationClient) RunModerationAudio(request *model.RunModerationAudioRequest) (*model.RunModerationAudioResponse, error)
- func (c *ModerationClient) RunModerationAudioInvoker(request *model.RunModerationAudioRequest) *RunModerationAudioInvoker
- func (c *ModerationClient) RunTaskSumbit(request *model.RunTaskSumbitRequest) (*model.RunTaskSumbitResponse, error)
- func (c *ModerationClient) RunTaskSumbitInvoker(request *model.RunTaskSumbitRequest) *RunTaskSumbitInvoker
- func (c *ModerationClient) RunTextModeration(request *model.RunTextModerationRequest) (*model.RunTextModerationResponse, error)
- func (c *ModerationClient) RunTextModerationInvoker(request *model.RunTextModerationRequest) *RunTextModerationInvoker
- type RunCheckResultInvoker
- type RunCheckTaskJobsInvoker
- type RunImageBatchModerationInvoker
- type RunImageModerationInvoker
- type RunModerationAudioInvoker
- type RunTaskSumbitInvoker
- type RunTextModerationInvoker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenReqDefForRunCheckResult ¶
func GenReqDefForRunCheckResult() *def.HttpRequestDef
func GenReqDefForRunCheckTaskJobs ¶
func GenReqDefForRunCheckTaskJobs() *def.HttpRequestDef
func GenReqDefForRunImageBatchModeration ¶
func GenReqDefForRunImageBatchModeration() *def.HttpRequestDef
func GenReqDefForRunImageModeration ¶
func GenReqDefForRunImageModeration() *def.HttpRequestDef
func GenReqDefForRunModerationAudio ¶ added in v0.0.84
func GenReqDefForRunModerationAudio() *def.HttpRequestDef
func GenReqDefForRunTaskSumbit ¶
func GenReqDefForRunTaskSumbit() *def.HttpRequestDef
func GenReqDefForRunTextModeration ¶
func GenReqDefForRunTextModeration() *def.HttpRequestDef
func ModerationClientBuilder ¶
func ModerationClientBuilder() *http_client.HcHttpClientBuilder
Types ¶
type ModerationClient ¶
type ModerationClient struct {
HcClient *http_client.HcHttpClient
}
func NewModerationClient ¶
func NewModerationClient(hcClient *http_client.HcHttpClient) *ModerationClient
func (*ModerationClient) RunCheckResult ¶
func (c *ModerationClient) RunCheckResult(request *model.RunCheckResultRequest) (*model.RunCheckResultResponse, error)
RunCheckResult 处理结果查询
分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。 > 任务最长保留时间为30分钟,过期后会被清理掉。建议在任务提交后,每30s进行一次周期查询。
Please refer to HUAWEI cloud API Explorer for details.
func (*ModerationClient) RunCheckResultInvoker ¶ added in v0.0.90
func (c *ModerationClient) RunCheckResultInvoker(request *model.RunCheckResultRequest) *RunCheckResultInvoker
RunCheckResultInvoker 处理结果查询
func (*ModerationClient) RunCheckTaskJobs ¶
func (c *ModerationClient) RunCheckTaskJobs(request *model.RunCheckTaskJobsRequest) (*model.RunCheckTaskJobsResponse, error)
RunCheckTaskJobs 任务列表查询
查询批量图像内容审核任务列表,可通过指定任务状态查询来对任务列表进行过滤。
Please refer to HUAWEI cloud API Explorer for details.
func (*ModerationClient) RunCheckTaskJobsInvoker ¶ added in v0.0.90
func (c *ModerationClient) RunCheckTaskJobsInvoker(request *model.RunCheckTaskJobsRequest) *RunCheckTaskJobsInvoker
RunCheckTaskJobsInvoker 任务列表查询
func (*ModerationClient) RunImageBatchModeration ¶
func (c *ModerationClient) RunImageBatchModeration(request *model.RunImageBatchModerationRequest) (*model.RunImageBatchModerationResponse, error)
RunImageBatchModeration 图像内容审核(批量)
分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。
Please refer to HUAWEI cloud API Explorer for details.
func (*ModerationClient) RunImageBatchModerationInvoker ¶ added in v0.0.90
func (c *ModerationClient) RunImageBatchModerationInvoker(request *model.RunImageBatchModerationRequest) *RunImageBatchModerationInvoker
RunImageBatchModerationInvoker 图像内容审核(批量)
func (*ModerationClient) RunImageModeration ¶
func (c *ModerationClient) RunImageModeration(request *model.RunImageModerationRequest) (*model.RunImageModerationResponse, error)
RunImageModeration 图像内容审核
分析并识别用户上传的图像内容是否有敏感内容(如涉及政治人物、暴恐元素、涉黄内容等),并将识别结果返回给用户。
Please refer to HUAWEI cloud API Explorer for details.
func (*ModerationClient) RunImageModerationInvoker ¶ added in v0.0.90
func (c *ModerationClient) RunImageModerationInvoker(request *model.RunImageModerationRequest) *RunImageModerationInvoker
RunImageModerationInvoker 图像内容审核
func (*ModerationClient) RunModerationAudio ¶ added in v0.0.84
func (c *ModerationClient) RunModerationAudio(request *model.RunModerationAudioRequest) (*model.RunModerationAudioResponse, error)
RunModerationAudio 语音内容审核
分析并识别用户上传的语音内容是否有敏感内容(如色情、政治等),并将识别结果 返回给用户。
Please refer to HUAWEI cloud API Explorer for details.
func (*ModerationClient) RunModerationAudioInvoker ¶ added in v0.0.90
func (c *ModerationClient) RunModerationAudioInvoker(request *model.RunModerationAudioRequest) *RunModerationAudioInvoker
RunModerationAudioInvoker 语音内容审核
func (*ModerationClient) RunTaskSumbit ¶
func (c *ModerationClient) RunTaskSumbit(request *model.RunTaskSumbitRequest) (*model.RunTaskSumbitResponse, error)
RunTaskSumbit 任务提交
提交批量图像内容审核任务,返回任务标识,任务标识可用于查询任务结果。此接口为异步接口,相对于批量接口,支持更大图片列表批次。
Please refer to HUAWEI cloud API Explorer for details.
func (*ModerationClient) RunTaskSumbitInvoker ¶ added in v0.0.90
func (c *ModerationClient) RunTaskSumbitInvoker(request *model.RunTaskSumbitRequest) *RunTaskSumbitInvoker
RunTaskSumbitInvoker 任务提交
func (*ModerationClient) RunTextModeration ¶
func (c *ModerationClient) RunTextModeration(request *model.RunTextModerationRequest) (*model.RunTextModerationResponse, error)
RunTextModeration 文本内容审核
分析并识别用户上传的文本内容是否有敏感内容(如色情、政治等),并将识别结果返回给用户。
Please refer to HUAWEI cloud API Explorer for details.
func (*ModerationClient) RunTextModerationInvoker ¶ added in v0.0.90
func (c *ModerationClient) RunTextModerationInvoker(request *model.RunTextModerationRequest) *RunTextModerationInvoker
RunTextModerationInvoker 文本内容审核
type RunCheckResultInvoker ¶ added in v0.0.90
type RunCheckResultInvoker struct {
*invoker.BaseInvoker
}
func (*RunCheckResultInvoker) Invoke ¶ added in v0.0.90
func (i *RunCheckResultInvoker) Invoke() (*model.RunCheckResultResponse, error)
type RunCheckTaskJobsInvoker ¶ added in v0.0.90
type RunCheckTaskJobsInvoker struct {
*invoker.BaseInvoker
}
func (*RunCheckTaskJobsInvoker) Invoke ¶ added in v0.0.90
func (i *RunCheckTaskJobsInvoker) Invoke() (*model.RunCheckTaskJobsResponse, error)
type RunImageBatchModerationInvoker ¶ added in v0.0.90
type RunImageBatchModerationInvoker struct {
*invoker.BaseInvoker
}
func (*RunImageBatchModerationInvoker) Invoke ¶ added in v0.0.90
func (i *RunImageBatchModerationInvoker) Invoke() (*model.RunImageBatchModerationResponse, error)
type RunImageModerationInvoker ¶ added in v0.0.90
type RunImageModerationInvoker struct {
*invoker.BaseInvoker
}
func (*RunImageModerationInvoker) Invoke ¶ added in v0.0.90
func (i *RunImageModerationInvoker) Invoke() (*model.RunImageModerationResponse, error)
type RunModerationAudioInvoker ¶ added in v0.0.90
type RunModerationAudioInvoker struct {
*invoker.BaseInvoker
}
func (*RunModerationAudioInvoker) Invoke ¶ added in v0.0.90
func (i *RunModerationAudioInvoker) Invoke() (*model.RunModerationAudioResponse, error)
type RunTaskSumbitInvoker ¶ added in v0.0.90
type RunTaskSumbitInvoker struct {
*invoker.BaseInvoker
}
func (*RunTaskSumbitInvoker) Invoke ¶ added in v0.0.90
func (i *RunTaskSumbitInvoker) Invoke() (*model.RunTaskSumbitResponse, error)
type RunTextModerationInvoker ¶ added in v0.0.90
type RunTextModerationInvoker struct {
*invoker.BaseInvoker
}
func (*RunTextModerationInvoker) Invoke ¶ added in v0.0.90
func (i *RunTextModerationInvoker) Invoke() (*model.RunTextModerationResponse, error)