Incant.Session.Local (Incant v0.1.1)

Copy Markdown View Source

Local BEAM-backed Incant admin session.

This is the local implementation of the same session interface that remote SafeRPC service sessions implement. UI code should call the Incant.Session protocol functions and not branch on this struct directly.

Summary

Functions

Builds a local session from an Incant admin module.

Types

t()

@type t() :: %Incant.Session.Local{
  admin: module(),
  context: map(),
  contract: Incant.Admin.Contract.t()
}

Functions

new(admin, opts \\ [])

@spec new(
  module(),
  keyword()
) :: t()

Builds a local session from an Incant admin module.