FedecksClient.TokenStore (fedecks_client v0.1.0)

Persistant store for the connection token. Implemented as a simple GenServer

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Link to this section Types

@type t() :: %FedecksClient.TokenStore{
  directory: String.t(),
  filename: String.t(),
  token: nil | String.t()
}

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

@spec init(
  {binary()
   | maybe_improper_list(
       binary() | maybe_improper_list(any(), binary() | []) | char(),
       binary() | []
     ), any()}
) :: {:ok, t()}

Callback implementation for GenServer.init/1.

Link to this function

server_name(base_name)

Link to this function

set_token(server, token)

Link to this function

start_link(opts)