24 lines
757 B
Elixir
24 lines
757 B
Elixir
|
defmodule Chronoscope.DateTime.Behaviour do
|
||
|
@callback utc_now :: DateTime.t()
|
||
|
end
|
||
|
|
||
|
defmodule Chronoscope.SSL.Behaviour do
|
||
|
@callback connect(any(), any(), any(), any()) :: {:ok, any()} | {:error, any()}
|
||
|
@callback send(any(), any()) :: :ok | {:error, any()}
|
||
|
@callback peercert(any()) :: {:ok, any()} | {:error, any()}
|
||
|
@callback close(any()) :: :ok | {:error, any()}
|
||
|
end
|
||
|
|
||
|
defmodule Chronoscope.Registry.Behaviour do
|
||
|
@callback lookup(atom(), any()) :: [{pid(), any()}]
|
||
|
end
|
||
|
|
||
|
defmodule Chronoscope.DynamicSupervisor.Behaviour do
|
||
|
@callback start_child(Supervisor.supervisor(), any()) :: any()
|
||
|
@callback which_children(Supervisor.supervisor()) :: [any()]
|
||
|
end
|
||
|
|
||
|
defmodule Chronoscope.GenServer.Behaviour do
|
||
|
@callback call(pid(), any()) :: any()
|
||
|
end
|