package base64Captcha // Store An object implementing Store interface can be registered with SetCustomStore // function to handle storage and retrieval of captcha ids and solutions for // them, replacing the default memory store. // // It is the responsibility of an object to delete expired and used captchas // when necessary (for example, the default memory store collects them in Set // method after the certain amount of captchas has been stored.) type Store interface { // Set sets the digits for the captcha id. Set(id string, value string) error // Get returns stored digits for the captcha id. Clear indicates // whether the captcha must be deleted from the store. Get(id string, clear bool) string //Verify captcha's answer directly Verify(id, answer string, clear bool) bool }