SiteEncrypt.Adapter behaviour (site_encrypt v0.7.0)

View Source

Summary

Functions

Returns a specification to start this module under a supervisor. See Supervisor.

Refresh the configuration for a given endpoint

Callbacks

config id, t

@callback config(SiteEncrypt.id(), Keyword.t()) :: %{
  certification: SiteEncrypt.certification(),
  site_spec: Parent.child_spec()
}

http_port(id, arg)

@callback http_port(SiteEncrypt.id(), arg :: any()) :: {:ok, pos_integer()} | :error

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor. See Supervisor.

refresh_config(id)

Refresh the configuration for a given endpoint

start_link(callback, id, opts)