VintageNet.Connectivity.CheckLogic (vintage_net v0.11.1) View Source
Core logic for determining internet connectivity based on check results
This module is meant to be used by InternetChecker
and others for
determining when to run checks and how many failures should change
the network interface's state.
Link to this section Summary
Functions
Initialize check state machine
Link to this section Types
Specs
state() :: %{ connectivity: VintageNet.connection_status(), strikes: non_neg_integer(), interval: non_neg_integer() | :infinity }
Link to this section Functions
Specs
Specs
Specs
Specs
Specs
init(VintageNet.connection_status()) :: state()
Initialize check state machine
Pass in the assumed connection status. This is a best guess to start things out.