View Source ExRoboCop (ExRoboCop v0.1.2)

Documentation for ExRoboCop.

Link to this section Summary

Functions

Create a captcha text and a captcha image

Store captcha text under a unique ID for later retrieval

Compare user answer with correct answer under uuid

Put in application children to start in supervision tree

Link to this section Types

@type captcha_image() :: binary()
@type captcha_text() :: String.t()
@type uuid() :: String.t()

Link to this section Functions

@spec create_captcha() :: {captcha_text(), captcha_image()}

Create a captcha text and a captcha image

Link to this function

create_form_id(captcha_text)

View Source
@spec create_form_id(captcha_text()) :: uuid()

Store captcha text under a unique ID for later retrieval

@spec not_a_robot?({captcha_text(), uuid()}) ::
  :error | {:error, :wrong_captcha} | :ok

Compare user answer with correct answer under uuid

@spec start() :: {ExRoboCop.SecretAnswer, %{}}

Put in application children to start in supervision tree