Versions in this module Expand all Collapse all v1 v1.1.3 Apr 3, 2021 Changes in this version + func NewLenWithId(ctx context.Context, id string, length int) v1.1.2 Mar 31, 2021 Changes in this version + const DefaultLen + const Expiration + const StdHeight + const StdWidth + var ErrNotFound = errors.New("captcha: id not found") + func New(ctx context.Context) string + func NewLen(ctx context.Context, length int) (id string) + func RandomDigits(length int) []byte + func Reload(ctx context.Context, id string) bool + func Server(imgWidth, imgHeight int) http.Handler + func SetCustomStore(s store.Store) + func Verify(ctx context.Context, id string, digits []byte) bool + func VerifyString(ctx context.Context, id string, digits string) bool + func WriteAudio(ctx context.Context, w io.Writer, id string, lang string) error + func WriteImage(ctx context.Context, w io.Writer, id string, width, height int) error + type Audio struct + func NewAudio(id string, digits []byte, lang string) *Audio + func (a *Audio) EncodedLen() int + func (a *Audio) WriteTo(w io.Writer) (n int64, err error) + type Image struct + func NewImage(id string, digits []byte, width, height int) *Image + func (m *Image) WriteTo(w io.Writer) (int64, error)