UAInspector v0.15.1 UAInspector.ShortCodeMap behaviour View Source

Basic short code map module providing minimal functions.

Link to this section Summary

Callbacks

Returns the local filename for this map

Returns the remote path for this map

Converts a raw entry to its ets representation

Returns the long representation for a short name

Returns the short representation for a long name

Returns a name representation for this map

Returns a type representation for this map

Link to this section Callbacks

Link to this callback file_local() View Source
file_local() :: String.t()

Returns the local filename for this map.

Link to this callback file_remote() View Source
file_remote() :: String.t()

Returns the remote path for this map.

Link to this callback to_ets(entry) View Source
to_ets(entry :: any()) :: term()

Converts a raw entry to its ets representation.

If necessary a data conversion is made from the raw data passed directly out of the database file and the actual data needed when querying the database.

Returns the long representation for a short name.

Unknown names are returned unmodified.

Returns the short representation for a long name.

Unknown names are returned unmodified.

Returns a name representation for this map.

Link to this callback var_type() View Source
var_type() :: :hash | :list

Returns a type representation for this map.