View Source Hologram.Assets.PageDigestRegistry behaviour (hologram v0.2.0)

Summary

Callbacks

Returns the path of the dump file used by the page digest registry registered process.

Returns the name of the ETS table used by the page digest registry registered process.

Functions

Returns a specification to start this module under a supervisor.

Returns the implementation of the page digest registry's dump path.

Returns the implementation of the page digest registry's ETS table name.

Returns the digest of the given page module.

Reloads the page digest registry data.

Starts page digest registry process.

Callbacks

dump_path()

@callback dump_path() :: String.t()

Returns the path of the dump file used by the page digest registry registered process.

ets_table_name()

@callback ets_table_name() :: atom()

Returns the name of the ETS table used by the page digest registry registered process.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

dump_path()

@spec dump_path() :: String.t()

Returns the implementation of the page digest registry's dump path.

ets_table_name()

@spec ets_table_name() :: atom()

Returns the implementation of the page digest registry's ETS table name.

lookup(page_module)

@spec lookup(module()) :: String.t()

Returns the digest of the given page module.

reload()

@spec reload() :: Hologram.Commons.PLT.t()

Reloads the page digest registry data.

start_link(list)

@spec start_link([]) :: GenServer.on_start()

Starts page digest registry process.