base64.go 446 B

1234567891011121314151617181920212223242526272829303132
  1. package captcha
  2. var _ Store = (*store)(nil)
  3. type Store interface {
  4. Set(id string, value string)
  5. Get(id string, clear bool) string
  6. Verify(id, answer string, clear bool) bool
  7. }
  8. type store struct {
  9. }
  10. func (s store) Set(id string, value string) {
  11. }
  12. func (s store) Get(id string, clear bool) string {
  13. return ""
  14. }
  15. func (s store) Verify(id, answer string, clear bool) bool {
  16. return false
  17. }
  18. func NewStore() {
  19. }
  20. func GenerateCaptcha() {
  21. }