GameApp.External.TextExtractService (game_app v0.1.0)

This module serves as a service layer, delegating text extraction tasks to an implementation specified in the application's configuration and ensuring compliance with the GameApp.External.TextExtractBehaviour behaviour.

Usage

The module uses the application configuration to resolve which implementation to use for text extraction tasks.

Summary

Functions

Delegates the task of extracting text from a given URL to the configured text extraction implementation.

Functions

Link to this function

extract_text(url)

Delegates the task of extracting text from a given URL to the configured text extraction implementation.

Parameters

  • url: The URL from which to extract text.

Returns

  • A tuple response from the text extraction implementation, typically {:ok, text} for successful extractions or {:error, reason} for failures.