View Source Membrane.ComponentPath (Membrane Core v0.11.3)

Traces element's path inside a pipeline. Path is a list consisted of following pipeline/bin/element names down the assembled pipeline. Information is being stored in a process dictionary and can be set/appended to.

Link to this section Summary

Functions

Returns formatted string of given path's names.

Returns currently stored path.

Works the same way as format/1 but uses currently stored path.

Sets current path.

Link to this section Types

@type path_t() :: [String.t()]

Link to this section Functions

@spec format(path_t()) :: String.t()

Returns formatted string of given path's names.

@spec get() :: [String.t()]

Returns currently stored path.

If path has not been set, empty list is returned.

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

Works the same way as format/1 but uses currently stored path.

@spec set(path_t()) :: :ok

Sets current path.

If path had already existed then replaces it.