Documentation ¶
Index ¶
- type CensorClient
- func (c *CensorClient) AsyncImageScan(request *censor.AsyncImageScanRequest) (*censor.AsyncImageScanResponse, 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) SetConfig(config *core.Config)
- func (c *CensorClient) SetLogger(logger core.Logger)
- func (c *CensorClient) TextScan(request *censor.TextScanRequest) (*censor.TextScanResponse, 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) AsyncImageScan ¶
func (c *CensorClient) AsyncImageScan(request *censor.AsyncImageScanRequest) (*censor.AsyncImageScanResponse, 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) SetConfig ¶
func (c *CensorClient) SetConfig(config *core.Config)
func (*CensorClient) SetLogger ¶
func (c *CensorClient) SetLogger(logger core.Logger)
func (*CensorClient) TextScan ¶
func (c *CensorClient) TextScan(request *censor.TextScanRequest) (*censor.TextScanResponse, error)
文本同步检测-检测文本中是否包含违规信息
Click to show internal directories.
Click to hide internal directories.