aliyun

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SceneNormal = "normal"
	SceneSexy   = "sexy"
	ScenePorn   = "porn"
)

Variables

View Source
var ErrNotInit = errors.New("not init")

Functions

func InitAliyun

func InitAliyun(accessKeyID string, accessKeySecret string)

Types

type AuditResponse

type AuditResponse struct {
	Data struct {
		Results []struct {
			Code       int    `json:"Code"`
			Message    string `json:"Message"`
			DataId     string `json:"DataId"`
			ImageURL   string `json:"ImageURL"`
			TaskId     string `json:"TaskId"`
			SubResults []struct {
				Label      string  `json:"Label"`
				Scene      string  `json:"Scene"`
				Rate       float64 `json:"Rate"`
				Suggestion string  `json:"Suggestion"`
			}
		} `json:"Results"`
	} `json:"Data"`
}

func Audit

func Audit(url string) (*AuditResponse, error)

Jump to

Keyboard shortcuts

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