ExCop v0.1.2 ExCop.Policy.Protocol protocol View Source

Link to this section Summary

Link to this section Types

Specs

args() :: map()

Specs

context() :: map()

Specs

error_response() :: {:error, atom()} | {:error, atom(), String.t()}

Specs

everything() :: {any(), user(), parent(), field(), context(), args()}

Specs

field() :: atom()

Specs

parent() :: any()

Specs

response() :: :ok | error_response()

Specs

t() :: term()

Specs

user() :: struct() | nil

Link to this section Functions

Link to this function

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

View Source

Specs

before(any(), user(), parent(), field(), context(), args()) :: everything()
Link to this function

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

View Source

Specs

can?(any(), user(), parent(), field(), context(), args()) :: response()