View Source ExCop.Policy.Protocol protocol (ExCop v1.0.0)

Summary

Types

@type args() :: map()
@type context() :: map()
@type error_response() :: {:error, atom()} | {:error, atom(), String.t()}
@type everything() :: {any(), persona(), parent(), field(), context(), args()}
@type field() :: atom()
@type parent() :: any()
@type persona() :: struct() | nil
@type response() :: :ok | {:ok, any()} | error_response()
@type t() :: term()

All the types that implement this protocol.

Functions

Link to this function

before(source, persona, parent, field, ctx, args)

View Source
@spec before(any(), persona(), parent(), field(), context(), args()) :: everything()
Link to this function

can?(source, persona, parent, field, ctx, args)

View Source
@spec can?(any(), persona(), parent(), field(), context(), args()) :: response()