View Source WebPushEx.Subscription (web_push_ex v0.1.0)

Subscription data structure.

Summary

Types

t()

Matching structure returned from User Agents with JSON import/export functions.

Functions

Build and return a new struct from a JSON string.

Types

@type t() :: %WebPushEx.Subscription{
  endpoint: URI.t(),
  keys: %{p256dh: String.t(), auth: String.t()}
}

Matching structure returned from User Agents with JSON import/export functions.

Functions

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

Build and return a new struct from a JSON string.