View Source Gitly.Utils.Net.Behavior behaviour (gitly v0.1.0)

Defines a behavior for checking network connectivity.

This behavior specifies functions to determine if the system is online or offline. Modules implementing this behavior should provide concrete implementations for these functions.

Summary

Callbacks

Checks if the system is offline.

Checks if the system is online.

Callbacks

@callback is_offline?() :: boolean()

Checks if the system is offline.

Implementations should return true if the system is offline, false otherwise.

@callback is_online?() :: boolean()

Checks if the system is online.

Implementations should return true if the system is online, false otherwise.