|
| 1 | + |
| 2 | +%% ============================================================================= |
| 3 | +%% ERLANG VERSION MIGRATION SUPPORT |
| 4 | +%% ============================================================================= |
| 5 | + |
| 6 | + |
| 7 | +-if(?OTP_RELEASE >= 27). |
| 8 | + -define(MODULEDOC(Str), -moduledoc(Str)). |
| 9 | + -define(DOC(Str), -doc(Str)). |
| 10 | +-else. |
| 11 | + -define(MODULEDOC(Str), -compile([])). |
| 12 | + -define(DOC(Str), -compile([])). |
| 13 | +-endif. |
| 14 | + |
| 15 | + |
| 16 | +%% ============================================================================= |
| 17 | +%% COMMON TYPES |
| 18 | +%% ============================================================================= |
| 19 | + |
| 20 | +-type optional(T) :: T | undefined. |
| 21 | +-type options() :: [{atom(), term()}] | #{atom() => term()}. |
| 22 | +-type ttl() :: non_neg_integer(). |
| 23 | + |
| 24 | + |
| 25 | +%% ============================================================================= |
| 26 | +%% APP |
| 27 | +%% ============================================================================= |
| 28 | +%% |
| 29 | + |
1 | 30 | -define(APP, partisan).
|
2 | 31 | -define(LOCALHOST, {127, 0, 0, 1}).
|
3 | 32 | -define(PEER_PORT, 9090).
|
|
154 | 183 | -define(PERIODIC_ENABLED, true).
|
155 | 184 |
|
156 | 185 |
|
157 |
| -%% COMMON TYPES |
158 |
| --type options() :: [{atom(), term()}] | #{atom() => term()}. |
159 |
| - |
160 |
| - |
161 |
| --type ttl() :: non_neg_integer(). |
162 |
| --type optional(T) :: T | undefined. |
163 |
| - |
164 |
| - |
165 | 186 | %% =============================================================================
|
166 | 187 | %% ORCHESTRATION
|
167 | 188 | %% =============================================================================
|
|
0 commit comments