github.com/geniusesgroup/libgo@v0.0.0-20220713101832-828057a9d3d4/captcha/init.go (about)

     1  /* For license and copyright information please see LEGAL file in repository */
     2  
     3  package captcha
     4  
     5  // State use to indicate captcha state
     6  type state uint8
     7  
     8  // Captcha State
     9  const (
    10  	StateCreated  state = iota
    11  	StateLastAnswerNotValid
    12  	StateSolved
    13  )
    14  
    15  // Language indicate 
    16  type Language uint8
    17  
    18  // supported languages
    19  const (
    20  	LanguageEnglish Language = iota
    21  )
    22  
    23  // ImageFormat indicate 
    24  type ImageFormat uint8
    25  
    26  // Supported image format
    27  const (
    28  	ImageFormatPNG ImageFormat = iota
    29  	ImageFormatJPEG
    30  )
    31  
    32  // AudioFormat indicate 
    33  type AudioFormat uint8
    34  
    35  // Supported audio format
    36  const ()