Noizu.Context (Noizu Core v0.1.8)

Copy Markdown

Context module for Noizu.

Summary

Functions

admin()

@spec admin() :: any()

admin(context)

@spec admin(any()) :: any()

dummy()

@spec dummy() :: any()

placeholder for when real credentials need to be plumbed in, making it easy to find and cleanup over time.

dummy(context)

@spec dummy(any()) :: any()

dummy_for_user(user, context \\ nil)

@spec dummy_for_user(any(), any()) :: any()

internal()

@spec internal() :: any()

internal(context)

@spec internal(any()) :: any()

option(context, option)

@spec option(any(), any()) :: {:ok, any()} | {:error, any()}

option(context, option, default)

@spec option(any(), any(), any()) :: {:ok, any()} | {:error, any()}

restricted()

@spec restricted() :: any()

restricted(context)

@spec restricted(any()) :: any()

system()

@spec system() :: any()

system(context)

@spec system(any()) :: any()

with_option(context, option, value)

@spec with_option(any(), any(), any()) :: any()

with_options(context, options)

@spec with_options(any(), any()) :: any()