Module travianmap

Data Types

binary_map()

binary_map() = binary()

travian_record()

travian_record() = travianmap_mapline:travian_record()

url()

url() = binary()

Function Index

get_info/1Fetch the aditional info of a current url.
get_map/1Fetch the map of a current url.
get_urls/0Get all the current urls of the travian servers.
get_urls/1
parse_map/2Parse a binary map and transform the results in to a list of tuples.

Function Details

get_info/1

get_info(Url::url()) -> {ok, map()} | {error, any()}

Fetch the aditional info of a current url.

get_map/1

get_map(Url::url()) -> {ok, binary_map()} | {error, any()}

Fetch the map of a current url.

get_urls/0

get_urls() -> {ok, [url()]} | {error, any()}

Get all the current urls of the travian servers.

get_urls/1

get_urls(X1::all | travian_status | travibot) -> {ok, [url()]} | {error, any()}

parse_map/2

parse_map(Binary_Map::binary(), X2::filter | no_filter) -> [{ok, travian_record()} | {error, any()}] | [travian_record()]

Parse a binary map and transform the results in to a list of tuples.


Generated by EDoc