v2

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 2

Documentation

Index

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

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

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

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

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

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

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

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

type RunCheckTaskJobsInvoker added in v0.0.90

type RunCheckTaskJobsInvoker struct {
	*invoker.BaseInvoker
}

func (*RunCheckTaskJobsInvoker) Invoke added in v0.0.90

type RunImageBatchModerationInvoker added in v0.0.90

type RunImageBatchModerationInvoker struct {
	*invoker.BaseInvoker
}

func (*RunImageBatchModerationInvoker) Invoke added in v0.0.90

type RunImageModerationInvoker added in v0.0.90

type RunImageModerationInvoker struct {
	*invoker.BaseInvoker
}

func (*RunImageModerationInvoker) Invoke added in v0.0.90

type RunModerationAudioInvoker added in v0.0.90

type RunModerationAudioInvoker struct {
	*invoker.BaseInvoker
}

func (*RunModerationAudioInvoker) Invoke added in v0.0.90

type RunTaskSumbitInvoker added in v0.0.90

type RunTaskSumbitInvoker struct {
	*invoker.BaseInvoker
}

func (*RunTaskSumbitInvoker) Invoke added in v0.0.90

type RunTextModerationInvoker added in v0.0.90

type RunTextModerationInvoker struct {
	*invoker.BaseInvoker
}

func (*RunTextModerationInvoker) Invoke added in v0.0.90

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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