Documentation ¶
Index ¶
- func GenReqDefForCheckImageModeration() *def.HttpRequestDef
- func GenReqDefForRunCloseAudioStreamModerationJob() *def.HttpRequestDef
- func GenReqDefForRunCloseVideoStreamModerationJob() *def.HttpRequestDef
- func GenReqDefForRunCreateAudioModerationJob() *def.HttpRequestDef
- func GenReqDefForRunCreateAudioStreamModerationJob() *def.HttpRequestDef
- func GenReqDefForRunCreateDocumentModerationJob() *def.HttpRequestDef
- func GenReqDefForRunCreateVideoModerationJob() *def.HttpRequestDef
- func GenReqDefForRunCreateVideoStreamModerationJob() *def.HttpRequestDef
- func GenReqDefForRunQueryAudioModerationJob() *def.HttpRequestDef
- func GenReqDefForRunQueryDocumentModerationJob() *def.HttpRequestDef
- func GenReqDefForRunQueryVideoModerationJob() *def.HttpRequestDef
- func GenReqDefForRunTextModeration() *def.HttpRequestDef
- func ModerationClientBuilder() *httpclient.HcHttpClientBuilder
- type CheckImageModerationInvoker
- type ModerationClient
- func (c *ModerationClient) CheckImageModeration(request *model.CheckImageModerationRequest) (*model.CheckImageModerationResponse, error)
- func (c *ModerationClient) CheckImageModerationInvoker(request *model.CheckImageModerationRequest) *CheckImageModerationInvoker
- func (c *ModerationClient) RunCloseAudioStreamModerationJob(request *model.RunCloseAudioStreamModerationJobRequest) (*model.RunCloseAudioStreamModerationJobResponse, error)
- func (c *ModerationClient) RunCloseAudioStreamModerationJobInvoker(request *model.RunCloseAudioStreamModerationJobRequest) *RunCloseAudioStreamModerationJobInvoker
- func (c *ModerationClient) RunCloseVideoStreamModerationJob(request *model.RunCloseVideoStreamModerationJobRequest) (*model.RunCloseVideoStreamModerationJobResponse, error)
- func (c *ModerationClient) RunCloseVideoStreamModerationJobInvoker(request *model.RunCloseVideoStreamModerationJobRequest) *RunCloseVideoStreamModerationJobInvoker
- func (c *ModerationClient) RunCreateAudioModerationJob(request *model.RunCreateAudioModerationJobRequest) (*model.RunCreateAudioModerationJobResponse, error)
- func (c *ModerationClient) RunCreateAudioModerationJobInvoker(request *model.RunCreateAudioModerationJobRequest) *RunCreateAudioModerationJobInvoker
- func (c *ModerationClient) RunCreateAudioStreamModerationJob(request *model.RunCreateAudioStreamModerationJobRequest) (*model.RunCreateAudioStreamModerationJobResponse, error)
- func (c *ModerationClient) RunCreateAudioStreamModerationJobInvoker(request *model.RunCreateAudioStreamModerationJobRequest) *RunCreateAudioStreamModerationJobInvoker
- func (c *ModerationClient) RunCreateDocumentModerationJob(request *model.RunCreateDocumentModerationJobRequest) (*model.RunCreateDocumentModerationJobResponse, error)
- func (c *ModerationClient) RunCreateDocumentModerationJobInvoker(request *model.RunCreateDocumentModerationJobRequest) *RunCreateDocumentModerationJobInvoker
- func (c *ModerationClient) RunCreateVideoModerationJob(request *model.RunCreateVideoModerationJobRequest) (*model.RunCreateVideoModerationJobResponse, error)
- func (c *ModerationClient) RunCreateVideoModerationJobInvoker(request *model.RunCreateVideoModerationJobRequest) *RunCreateVideoModerationJobInvoker
- func (c *ModerationClient) RunCreateVideoStreamModerationJob(request *model.RunCreateVideoStreamModerationJobRequest) (*model.RunCreateVideoStreamModerationJobResponse, error)
- func (c *ModerationClient) RunCreateVideoStreamModerationJobInvoker(request *model.RunCreateVideoStreamModerationJobRequest) *RunCreateVideoStreamModerationJobInvoker
- func (c *ModerationClient) RunQueryAudioModerationJob(request *model.RunQueryAudioModerationJobRequest) (*model.RunQueryAudioModerationJobResponse, error)
- func (c *ModerationClient) RunQueryAudioModerationJobInvoker(request *model.RunQueryAudioModerationJobRequest) *RunQueryAudioModerationJobInvoker
- func (c *ModerationClient) RunQueryDocumentModerationJob(request *model.RunQueryDocumentModerationJobRequest) (*model.RunQueryDocumentModerationJobResponse, error)
- func (c *ModerationClient) RunQueryDocumentModerationJobInvoker(request *model.RunQueryDocumentModerationJobRequest) *RunQueryDocumentModerationJobInvoker
- func (c *ModerationClient) RunQueryVideoModerationJob(request *model.RunQueryVideoModerationJobRequest) (*model.RunQueryVideoModerationJobResponse, error)
- func (c *ModerationClient) RunQueryVideoModerationJobInvoker(request *model.RunQueryVideoModerationJobRequest) *RunQueryVideoModerationJobInvoker
- func (c *ModerationClient) RunTextModeration(request *model.RunTextModerationRequest) (*model.RunTextModerationResponse, error)
- func (c *ModerationClient) RunTextModerationInvoker(request *model.RunTextModerationRequest) *RunTextModerationInvoker
- type RunCloseAudioStreamModerationJobInvoker
- type RunCloseVideoStreamModerationJobInvoker
- type RunCreateAudioModerationJobInvoker
- type RunCreateAudioStreamModerationJobInvoker
- type RunCreateDocumentModerationJobInvoker
- type RunCreateVideoModerationJobInvoker
- type RunCreateVideoStreamModerationJobInvoker
- type RunQueryAudioModerationJobInvoker
- type RunQueryDocumentModerationJobInvoker
- type RunQueryVideoModerationJobInvoker
- type RunTextModerationInvoker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenReqDefForCheckImageModeration ¶ added in v0.1.3
func GenReqDefForCheckImageModeration() *def.HttpRequestDef
func GenReqDefForRunCloseAudioStreamModerationJob ¶ added in v0.1.63
func GenReqDefForRunCloseAudioStreamModerationJob() *def.HttpRequestDef
func GenReqDefForRunCloseVideoStreamModerationJob ¶ added in v0.1.63
func GenReqDefForRunCloseVideoStreamModerationJob() *def.HttpRequestDef
func GenReqDefForRunCreateAudioModerationJob ¶ added in v0.0.103
func GenReqDefForRunCreateAudioModerationJob() *def.HttpRequestDef
func GenReqDefForRunCreateAudioStreamModerationJob ¶ added in v0.1.63
func GenReqDefForRunCreateAudioStreamModerationJob() *def.HttpRequestDef
func GenReqDefForRunCreateDocumentModerationJob ¶ added in v0.1.65
func GenReqDefForRunCreateDocumentModerationJob() *def.HttpRequestDef
func GenReqDefForRunCreateVideoModerationJob ¶ added in v0.1.1
func GenReqDefForRunCreateVideoModerationJob() *def.HttpRequestDef
func GenReqDefForRunCreateVideoStreamModerationJob ¶ added in v0.1.63
func GenReqDefForRunCreateVideoStreamModerationJob() *def.HttpRequestDef
func GenReqDefForRunQueryAudioModerationJob ¶ added in v0.0.103
func GenReqDefForRunQueryAudioModerationJob() *def.HttpRequestDef
func GenReqDefForRunQueryDocumentModerationJob ¶ added in v0.1.65
func GenReqDefForRunQueryDocumentModerationJob() *def.HttpRequestDef
func GenReqDefForRunQueryVideoModerationJob ¶ added in v0.1.1
func GenReqDefForRunQueryVideoModerationJob() *def.HttpRequestDef
func GenReqDefForRunTextModeration ¶
func GenReqDefForRunTextModeration() *def.HttpRequestDef
func ModerationClientBuilder ¶
func ModerationClientBuilder() *httpclient.HcHttpClientBuilder
Types ¶
type CheckImageModerationInvoker ¶ added in v0.1.3
type CheckImageModerationInvoker struct {
*invoker.BaseInvoker
}
func (*CheckImageModerationInvoker) Invoke ¶ added in v0.1.3
func (i *CheckImageModerationInvoker) Invoke() (*model.CheckImageModerationResponse, error)
type ModerationClient ¶
type ModerationClient struct {
HcClient *httpclient.HcHttpClient
}
func NewModerationClient ¶
func NewModerationClient(hcClient *httpclient.HcHttpClient) *ModerationClient
func (*ModerationClient) CheckImageModeration ¶ added in v0.1.3
func (c *ModerationClient) CheckImageModeration(request *model.CheckImageModerationRequest) (*model.CheckImageModerationResponse, error)
CheckImageModeration 图像内容审核
分析并识别用户上传的图像内容是否有敏感内容(如涉及暴恐元素、涉黄内容等),并将识别结果返回给用户。
Please refer to HUAWEI cloud API Explorer for details.
func (*ModerationClient) CheckImageModerationInvoker ¶ added in v0.1.3
func (c *ModerationClient) CheckImageModerationInvoker(request *model.CheckImageModerationRequest) *CheckImageModerationInvoker
CheckImageModerationInvoker 图像内容审核
func (*ModerationClient) RunCloseAudioStreamModerationJob ¶ added in v0.1.63
func (c *ModerationClient) RunCloseAudioStreamModerationJob(request *model.RunCloseAudioStreamModerationJobRequest) (*model.RunCloseAudioStreamModerationJobResponse, error)
RunCloseAudioStreamModerationJob 关闭音频流内容审核作业
关闭音频流内容审核作业
Please refer to HUAWEI cloud API Explorer for details.
func (*ModerationClient) RunCloseAudioStreamModerationJobInvoker ¶ added in v0.1.63
func (c *ModerationClient) RunCloseAudioStreamModerationJobInvoker(request *model.RunCloseAudioStreamModerationJobRequest) *RunCloseAudioStreamModerationJobInvoker
RunCloseAudioStreamModerationJobInvoker 关闭音频流内容审核作业
func (*ModerationClient) RunCloseVideoStreamModerationJob ¶ added in v0.1.63
func (c *ModerationClient) RunCloseVideoStreamModerationJob(request *model.RunCloseVideoStreamModerationJobRequest) (*model.RunCloseVideoStreamModerationJobResponse, error)
RunCloseVideoStreamModerationJob 关闭视频流内容审核作业
关闭视频流审核接口
Please refer to HUAWEI cloud API Explorer for details.
func (*ModerationClient) RunCloseVideoStreamModerationJobInvoker ¶ added in v0.1.63
func (c *ModerationClient) RunCloseVideoStreamModerationJobInvoker(request *model.RunCloseVideoStreamModerationJobRequest) *RunCloseVideoStreamModerationJobInvoker
RunCloseVideoStreamModerationJobInvoker 关闭视频流内容审核作业
func (*ModerationClient) RunCreateAudioModerationJob ¶ added in v0.0.103
func (c *ModerationClient) RunCreateAudioModerationJob(request *model.RunCreateAudioModerationJobRequest) (*model.RunCreateAudioModerationJobResponse, error)
RunCreateAudioModerationJob 创建音频内容审核作业
分析并识别用户上传的音频内容是否有敏感内容(如色情、政治等),并将识别结果返回给用户
Please refer to HUAWEI cloud API Explorer for details.
func (*ModerationClient) RunCreateAudioModerationJobInvoker ¶ added in v0.0.103
func (c *ModerationClient) RunCreateAudioModerationJobInvoker(request *model.RunCreateAudioModerationJobRequest) *RunCreateAudioModerationJobInvoker
RunCreateAudioModerationJobInvoker 创建音频内容审核作业
func (*ModerationClient) RunCreateAudioStreamModerationJob ¶ added in v0.1.63
func (c *ModerationClient) RunCreateAudioStreamModerationJob(request *model.RunCreateAudioStreamModerationJobRequest) (*model.RunCreateAudioStreamModerationJobResponse, error)
RunCreateAudioStreamModerationJob 创建音频流内容审核作业
创建音频流内容审核作业,创建成功会将作业ID返回给用户
Please refer to HUAWEI cloud API Explorer for details.
func (*ModerationClient) RunCreateAudioStreamModerationJobInvoker ¶ added in v0.1.63
func (c *ModerationClient) RunCreateAudioStreamModerationJobInvoker(request *model.RunCreateAudioStreamModerationJobRequest) *RunCreateAudioStreamModerationJobInvoker
RunCreateAudioStreamModerationJobInvoker 创建音频流内容审核作业
func (*ModerationClient) RunCreateDocumentModerationJob ¶ added in v0.1.65
func (c *ModerationClient) RunCreateDocumentModerationJob(request *model.RunCreateDocumentModerationJobRequest) (*model.RunCreateDocumentModerationJobResponse, error)
RunCreateDocumentModerationJob 创建文档内容审核作业
创建文档内容审核作业,创建成功会将作业ID返回给用户
Please refer to HUAWEI cloud API Explorer for details.
func (*ModerationClient) RunCreateDocumentModerationJobInvoker ¶ added in v0.1.65
func (c *ModerationClient) RunCreateDocumentModerationJobInvoker(request *model.RunCreateDocumentModerationJobRequest) *RunCreateDocumentModerationJobInvoker
RunCreateDocumentModerationJobInvoker 创建文档内容审核作业
func (*ModerationClient) RunCreateVideoModerationJob ¶ added in v0.1.1
func (c *ModerationClient) RunCreateVideoModerationJob(request *model.RunCreateVideoModerationJobRequest) (*model.RunCreateVideoModerationJobResponse, error)
RunCreateVideoModerationJob 创建视频内容审核作业
创建视频内容审核作业,创建成功会将作业ID返回给用户
Please refer to HUAWEI cloud API Explorer for details.
func (*ModerationClient) RunCreateVideoModerationJobInvoker ¶ added in v0.1.1
func (c *ModerationClient) RunCreateVideoModerationJobInvoker(request *model.RunCreateVideoModerationJobRequest) *RunCreateVideoModerationJobInvoker
RunCreateVideoModerationJobInvoker 创建视频内容审核作业
func (*ModerationClient) RunCreateVideoStreamModerationJob ¶ added in v0.1.63
func (c *ModerationClient) RunCreateVideoStreamModerationJob(request *model.RunCreateVideoStreamModerationJobRequest) (*model.RunCreateVideoStreamModerationJobResponse, error)
RunCreateVideoStreamModerationJob 创建视频流内容审核作业
创建视频流内容审核作业,创建成功会将作业ID返回给用户
Please refer to HUAWEI cloud API Explorer for details.
func (*ModerationClient) RunCreateVideoStreamModerationJobInvoker ¶ added in v0.1.63
func (c *ModerationClient) RunCreateVideoStreamModerationJobInvoker(request *model.RunCreateVideoStreamModerationJobRequest) *RunCreateVideoStreamModerationJobInvoker
RunCreateVideoStreamModerationJobInvoker 创建视频流内容审核作业
func (*ModerationClient) RunQueryAudioModerationJob ¶ added in v0.0.103
func (c *ModerationClient) RunQueryAudioModerationJob(request *model.RunQueryAudioModerationJobRequest) (*model.RunQueryAudioModerationJobResponse, error)
RunQueryAudioModerationJob 查询音频内容审核作业
Please refer to HUAWEI cloud API Explorer for details.
func (*ModerationClient) RunQueryAudioModerationJobInvoker ¶ added in v0.0.103
func (c *ModerationClient) RunQueryAudioModerationJobInvoker(request *model.RunQueryAudioModerationJobRequest) *RunQueryAudioModerationJobInvoker
RunQueryAudioModerationJobInvoker 查询音频内容审核作业
func (*ModerationClient) RunQueryDocumentModerationJob ¶ added in v0.1.65
func (c *ModerationClient) RunQueryDocumentModerationJob(request *model.RunQueryDocumentModerationJobRequest) (*model.RunQueryDocumentModerationJobResponse, error)
RunQueryDocumentModerationJob 查询文档审核作业结果
查询文档审核结果接口
Please refer to HUAWEI cloud API Explorer for details.
func (*ModerationClient) RunQueryDocumentModerationJobInvoker ¶ added in v0.1.65
func (c *ModerationClient) RunQueryDocumentModerationJobInvoker(request *model.RunQueryDocumentModerationJobRequest) *RunQueryDocumentModerationJobInvoker
RunQueryDocumentModerationJobInvoker 查询文档审核作业结果
func (*ModerationClient) RunQueryVideoModerationJob ¶ added in v0.1.1
func (c *ModerationClient) RunQueryVideoModerationJob(request *model.RunQueryVideoModerationJobRequest) (*model.RunQueryVideoModerationJobResponse, error)
RunQueryVideoModerationJob 查询视频内容审核作业
查询视频审核作业处理状态与结果,并将识别结果返回给用户
Please refer to HUAWEI cloud API Explorer for details.
func (*ModerationClient) RunQueryVideoModerationJobInvoker ¶ added in v0.1.1
func (c *ModerationClient) RunQueryVideoModerationJobInvoker(request *model.RunQueryVideoModerationJobRequest) *RunQueryVideoModerationJobInvoker
RunQueryVideoModerationJobInvoker 查询视频内容审核作业
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 ¶
func (c *ModerationClient) RunTextModerationInvoker(request *model.RunTextModerationRequest) *RunTextModerationInvoker
RunTextModerationInvoker 文本内容审核
type RunCloseAudioStreamModerationJobInvoker ¶ added in v0.1.63
type RunCloseAudioStreamModerationJobInvoker struct {
*invoker.BaseInvoker
}
func (*RunCloseAudioStreamModerationJobInvoker) Invoke ¶ added in v0.1.63
func (i *RunCloseAudioStreamModerationJobInvoker) Invoke() (*model.RunCloseAudioStreamModerationJobResponse, error)
type RunCloseVideoStreamModerationJobInvoker ¶ added in v0.1.63
type RunCloseVideoStreamModerationJobInvoker struct {
*invoker.BaseInvoker
}
func (*RunCloseVideoStreamModerationJobInvoker) Invoke ¶ added in v0.1.63
func (i *RunCloseVideoStreamModerationJobInvoker) Invoke() (*model.RunCloseVideoStreamModerationJobResponse, error)
type RunCreateAudioModerationJobInvoker ¶ added in v0.0.103
type RunCreateAudioModerationJobInvoker struct {
*invoker.BaseInvoker
}
func (*RunCreateAudioModerationJobInvoker) Invoke ¶ added in v0.0.103
func (i *RunCreateAudioModerationJobInvoker) Invoke() (*model.RunCreateAudioModerationJobResponse, error)
type RunCreateAudioStreamModerationJobInvoker ¶ added in v0.1.63
type RunCreateAudioStreamModerationJobInvoker struct {
*invoker.BaseInvoker
}
func (*RunCreateAudioStreamModerationJobInvoker) Invoke ¶ added in v0.1.63
func (i *RunCreateAudioStreamModerationJobInvoker) Invoke() (*model.RunCreateAudioStreamModerationJobResponse, error)
type RunCreateDocumentModerationJobInvoker ¶ added in v0.1.65
type RunCreateDocumentModerationJobInvoker struct {
*invoker.BaseInvoker
}
func (*RunCreateDocumentModerationJobInvoker) Invoke ¶ added in v0.1.65
func (i *RunCreateDocumentModerationJobInvoker) Invoke() (*model.RunCreateDocumentModerationJobResponse, error)
type RunCreateVideoModerationJobInvoker ¶ added in v0.1.1
type RunCreateVideoModerationJobInvoker struct {
*invoker.BaseInvoker
}
func (*RunCreateVideoModerationJobInvoker) Invoke ¶ added in v0.1.1
func (i *RunCreateVideoModerationJobInvoker) Invoke() (*model.RunCreateVideoModerationJobResponse, error)
type RunCreateVideoStreamModerationJobInvoker ¶ added in v0.1.63
type RunCreateVideoStreamModerationJobInvoker struct {
*invoker.BaseInvoker
}
func (*RunCreateVideoStreamModerationJobInvoker) Invoke ¶ added in v0.1.63
func (i *RunCreateVideoStreamModerationJobInvoker) Invoke() (*model.RunCreateVideoStreamModerationJobResponse, error)
type RunQueryAudioModerationJobInvoker ¶ added in v0.0.103
type RunQueryAudioModerationJobInvoker struct {
*invoker.BaseInvoker
}
func (*RunQueryAudioModerationJobInvoker) Invoke ¶ added in v0.0.103
func (i *RunQueryAudioModerationJobInvoker) Invoke() (*model.RunQueryAudioModerationJobResponse, error)
type RunQueryDocumentModerationJobInvoker ¶ added in v0.1.65
type RunQueryDocumentModerationJobInvoker struct {
*invoker.BaseInvoker
}
func (*RunQueryDocumentModerationJobInvoker) Invoke ¶ added in v0.1.65
func (i *RunQueryDocumentModerationJobInvoker) Invoke() (*model.RunQueryDocumentModerationJobResponse, error)
type RunQueryVideoModerationJobInvoker ¶ added in v0.1.1
type RunQueryVideoModerationJobInvoker struct {
*invoker.BaseInvoker
}
func (*RunQueryVideoModerationJobInvoker) Invoke ¶ added in v0.1.1
func (i *RunQueryVideoModerationJobInvoker) Invoke() (*model.RunQueryVideoModerationJobResponse, error)
type RunTextModerationInvoker ¶
type RunTextModerationInvoker struct {
*invoker.BaseInvoker
}
func (*RunTextModerationInvoker) Invoke ¶
func (i *RunTextModerationInvoker) Invoke() (*model.RunTextModerationResponse, error)