Documentation ¶
Index ¶
Constants ¶
View Source
const ( SceneNormal = "normal" SceneSexy = "sexy" ScenePorn = "porn" )
Variables ¶
View Source
var ErrNotInit = errors.New("not init")
Functions ¶
func InitAliyun ¶
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)
Click to show internal directories.
Click to hide internal directories.