henriquecbuss/elm-eos/1.1.0

Formerly NeoVier/elm-eos. Search finds this package by either name.

Eos.Authorization

An authorization is what is used to declare who is performing an action. It uses the user's name and a Permission.

type alias Authorization =
{ actor : Name
, permission : Permission
}

An authorization is just a name and a permission.

Dealing with JSON

encode : Authorization -> Value

Turn an authorization into a JSON value.