SYMBOL INDEX (134 symbols across 23 files) FILE: captcha.go type Captcha (line 15) | type Captcha struct method GetKey (line 73) | func (captcha *Captcha) GetKey(length int) (string, error) { method Verify (line 90) | func (captcha *Captcha) Verify(key, textToVerify string) (bool, string) { method GetImage (line 116) | func (captcha *Captcha) GetImage(key string) (image.Image, error) { method genImage (line 167) | func (captcha *Captcha) genImage(text string) *CImage { function CreateCaptcha (line 27) | func CreateCaptcha(wordManager *WordManager, captchaConfig *CaptchaConfi... function CreateCaptchaFromConfigFile (line 53) | func CreateCaptchaFromConfigFile(configFile string) (*Captcha, error) { function createStore (line 146) | func createStore(config *StoreConfig) (StoreInterface, error) { FILE: captcha_test.go function TestCaptcha (line 13) | func TestCaptcha(t *testing.T) { function BenchmarkCaptcha (line 28) | func BenchmarkCaptcha(t *testing.B) { function BenchmarkCaptchaInternalAPI (line 42) | func BenchmarkCaptchaInternalAPI(t *testing.B) { function BenchmarkCaptchaDrawImage (line 54) | func BenchmarkCaptchaDrawImage(t *testing.B) { function getCaptcha (line 66) | func getCaptcha() (*Captcha, error) { function loadConfig (line 74) | func loadConfig() (string, *CaptchaConfig, *ImageConfig, *FilterConfig, ... FILE: captchainfo.go type CaptchaInfo (line 14) | type CaptchaInfo struct FILE: cimage.go constant colorCount (line 16) | colorCount = 20 type CImage (line 20) | type CImage struct method drawHorizLine (line 25) | func (m *CImage) drawHorizLine(fromX, toX, y int, colorIdx uint8) *CIm... method drawCircle (line 36) | func (m *CImage) drawCircle(x, y, radius int, colorIdx uint8) { method drawString (line 63) | func (m *CImage) drawString(text string) *CImage { function CreateCImage (line 86) | func CreateCImage(config *ImageConfig) *CImage { function randomPalette (line 101) | func randomPalette() color.Palette { function randomBrightness (line 122) | func randomBrightness(c color.RGBA, max uint8) color.RGBA { function min3 (line 137) | func min3(x, y, z uint8) (m uint8) { function max3 (line 148) | func max3(x, y, z uint8) (m uint8) { FILE: confighelper.go constant DEFAULT_LIFE_TIME (line 16) | DEFAULT_LIFE_TIME = time.Minute * 5 constant DEFAULT_FONT_SIZE (line 17) | DEFAULT_FONT_SIZE = 26 constant DEFAULT_WIDTH (line 18) | DEFAULT_WIDTH = 120 constant DEFAULT_HEIGHT (line 19) | DEFAULT_HEIGHT = 40 constant DEFAULT_GC_PROBABILITY (line 20) | DEFAULT_GC_PROBABILITY = 1 constant DEFAULT_GC_DIVISOR (line 21) | DEFAULT_GC_DIVISOR = 100 function loadConfigFromFile (line 24) | func loadConfigFromFile(configFile string) (error, string, *CaptchaConfi... FILE: configtypes.go type CaptchaConfig (line 12) | type CaptchaConfig struct type FilterConfigGroup (line 19) | type FilterConfigGroup struct method Init (line 23) | func (this *FilterConfigGroup) Init() { method GetItem (line 26) | func (this *FilterConfigGroup) GetItem(key string) (string, bool) { method SetItem (line 30) | func (this *FilterConfigGroup) SetItem(key string, val string) { type FilterConfig (line 34) | type FilterConfig struct method Init (line 39) | func (this *FilterConfig) Init() { method GetGroup (line 43) | func (this *FilterConfig) GetGroup(key string) (FilterConfigGroup, boo... method SetGroup (line 51) | func (this *FilterConfig) SetGroup(key string, group *FilterConfigGrou... type ImageConfig (line 56) | type ImageConfig struct constant STORE_ENGINE_BUILDIN (line 64) | STORE_ENGINE_BUILDIN = "buildin" constant STORE_ENGINE_MEMCACHE (line 65) | STORE_ENGINE_MEMCACHE = "memcache" type StoreConfig (line 68) | type StoreConfig struct FILE: cstore.go type CStore (line 18) | type CStore struct method Get (line 40) | func (store *CStore) Get(key string) *CaptchaInfo { method Add (line 50) | func (store *CStore) Add(captcha *CaptchaInfo) string { method Update (line 61) | func (store *CStore) Update(key string, captcha *CaptchaInfo) bool { method Del (line 69) | func (store *CStore) Del(key string) { method Destroy (line 76) | func (store *CStore) Destroy() { method OnConstruct (line 84) | func (store *CStore) OnConstruct() { method OnDestruct (line 89) | func (store *CStore) OnDestruct() { method Dump (line 94) | func (store *CStore) Dump(file string) error { method LoadDumped (line 123) | func (store *CStore) LoadDumped(file string) error { method gcWrapper (line 151) | func (store *CStore) gcWrapper() { method gc (line 158) | func (store *CStore) gc() { function CreateCStore (line 28) | func CreateCStore(expiresTime time.Duration, gcProbability int, gcDiviso... FILE: cstore_test.go function TestStore (line 13) | func TestStore(t *testing.T) { FILE: fontmanager.go type FontManager (line 15) | type FontManager struct method AddFont (line 32) | func (fm *FontManager) AddFont(pathToFontFile string) error { method GetFont (line 50) | func (fm *FontManager) GetFont(pathToFontFile string) *truetype.Font { method GetRandomFont (line 55) | func (fm *FontManager) GetRandomFont() *truetype.Font { function CreateFontManager (line 22) | func CreateFontManager() *FontManager { FILE: imagefilter.go function RegisterImageFilter (line 11) | func RegisterImageFilter(id string, f func(FilterConfigGroup) ImageFilte... type ImageFilter (line 20) | type ImageFilter interface type ImageFilterBase (line 28) | type ImageFilterBase struct method Proc (line 32) | func (filter *ImageFilterBase) Proc(cimage *CImage) { method GetId (line 36) | func (filter *ImageFilterBase) GetId() string { method SetConfig (line 40) | func (filter *ImageFilterBase) SetConfig(config FilterConfigGroup) { method GetConfig (line 44) | func (filter *ImageFilterBase) GetConfig() FilterConfigGroup { FILE: imagefiltermanager.go type ImageFilterManager (line 10) | type ImageFilterManager struct method AddFilter (line 26) | func (manager *ImageFilterManager) AddFilter(filter ImageFilter) { method GetFilters (line 30) | func (manager *ImageFilterManager) GetFilters() []ImageFilter { function init (line 14) | func init() { function CreateImageFilterManager (line 20) | func CreateImageFilterManager() *ImageFilterManager { function CreateImageFilterManagerByConfig (line 34) | func CreateImageFilterManagerByConfig(config *FilterConfig) *ImageFilter... FILE: imagefiltermanager_test.go function TestImageFilterManager (line 11) | func TestImageFilterManager(t *testing.T) { function TestImageFilterManagerConfig (line 20) | func TestImageFilterManagerConfig(t *testing.T) { FILE: imagefilternoiseline.go constant IMAGE_FILTER_NOISE_LINE (line 12) | IMAGE_FILTER_NOISE_LINE = "ImageFilterNoiseLine" type ImageFilterNoiseLine (line 14) | type ImageFilterNoiseLine struct method Proc (line 25) | func (filter *ImageFilterNoiseLine) Proc(cimage *CImage) { method GetId (line 45) | func (filter *ImageFilterNoiseLine) GetId() string { function imageFilterNoiseLineCreator (line 18) | func imageFilterNoiseLineCreator(config FilterConfigGroup) ImageFilter { FILE: imagefilternoisepoint.go constant IMAGE_FILTER_NOISE_POINT (line 11) | IMAGE_FILTER_NOISE_POINT = "ImageFilterNoisePoint" type ImageFilterNoisePoint (line 14) | type ImageFilterNoisePoint struct method Proc (line 25) | func (filter *ImageFilterNoisePoint) Proc(cimage *CImage) { method GetId (line 43) | func (filter *ImageFilterNoisePoint) GetId() string { function imageFilterNoisePointCreator (line 18) | func imageFilterNoisePointCreator(config FilterConfigGroup) ImageFilter { FILE: imagefilterstrike.go constant IMAGE_FILTER_STRIKE (line 12) | IMAGE_FILTER_STRIKE = "ImageFilterStrike" type ImageFilterStrike (line 15) | type ImageFilterStrike struct method Proc (line 26) | func (filter *ImageFilterStrike) Proc(cimage *CImage) { method GetId (line 56) | func (filter *ImageFilterStrike) GetId() string { function imageFilterStrikeCreator (line 19) | func imageFilterStrikeCreator(config FilterConfigGroup) ImageFilter { FILE: mcstore.go constant MC_KEY_PREFIX (line 21) | MC_KEY_PREFIX = "gocaptcha-" type MCStore (line 25) | type MCStore struct method Get (line 41) | func (store *MCStore) Get(key string) *CaptchaInfo { method Add (line 51) | func (store *MCStore) Add(captcha *CaptchaInfo) string { method Update (line 71) | func (store *MCStore) Update(key string, captcha *CaptchaInfo) bool { method Del (line 87) | func (store *MCStore) Del(key string) { method Destroy (line 92) | func (store *MCStore) Destroy() { method OnConstruct (line 97) | func (store *MCStore) OnConstruct() { method OnDestruct (line 102) | func (store *MCStore) OnDestruct() { method encodeValue (line 106) | func (store *MCStore) encodeValue(val *CaptchaInfo) []byte { method decodeValue (line 117) | func (store *MCStore) decodeValue(value []byte) *CaptchaInfo { function CreateMCStore (line 31) | func CreateMCStore(expiresTime time.Duration, servers []string) *MCStore { FILE: mcstore_test.go function TestMCStore (line 12) | func TestMCStore(t *testing.T) { FILE: randhelper.go function init (line 12) | func init() { function rnd (line 17) | func rnd(from, to int) int { function rndf (line 22) | func rndf(from, to float64) float64 { function randStr (line 26) | func randStr(length int) string { FILE: redisstore.go function init (line 17) | func init() { constant captchaKeyFormat (line 22) | captchaKeyFormat = "captcha:text:%s;rand:%s;time:%x;" constant storeName (line 23) | storeName = "redis" type CaptchaRedisStore (line 26) | type CaptchaRedisStore struct method Get (line 55) | func (this *CaptchaRedisStore) Get(key string) *CaptchaInfo { method Add (line 67) | func (this *CaptchaRedisStore) Add(captcha *CaptchaInfo) string { method Update (line 81) | func (this *CaptchaRedisStore) Update(key string, captcha *CaptchaInfo... method Del (line 96) | func (this *CaptchaRedisStore) Del(key string) { method Destroy (line 100) | func (this *CaptchaRedisStore) Destroy() { method OnConstruct (line 104) | func (this *CaptchaRedisStore) OnConstruct() { method OnDestruct (line 108) | func (this *CaptchaRedisStore) OnDestruct() { method encodeCaptchaInfo (line 112) | func (this *CaptchaRedisStore) encodeCaptchaInfo(captcha *CaptchaInfo)... method decodeCaptachInfo (line 123) | func (this *CaptchaRedisStore) decodeCaptachInfo(b []byte, ret *Captch... function CreateCaptchaRedisStore (line 31) | func CreateCaptchaRedisStore(config *StoreConfig) (StoreInterface, error) { FILE: redisstore_test.go function TestRedisStore (line 12) | func TestRedisStore(t *testing.T) { FILE: storeinterface.go type StoreInterface (line 12) | type StoreInterface interface function RegisterStore (line 22) | func RegisterStore(name string, f func(*StoreConfig) (StoreInterface, er... FILE: wordmanager.go type WordManager (line 17) | type WordManager struct method Get (line 56) | func (mgr *WordManager) Get(length int) (string, error) { method SetWords (line 87) | func (mgr *WordManager) SetWords(words []string) { method getLine (line 98) | func (mgr *WordManager) getLine() string { function CreateWordManagerFromDataFile (line 24) | func CreateWordManagerFromDataFile(filename string) (*WordManager, error) { FILE: wordmanager_test.go function TestWordManager (line 12) | func TestWordManager(t *testing.T) {