-
Notifications
You must be signed in to change notification settings - Fork 155
Expand file tree
/
Copy pathbeacon_desc.nim
More file actions
34 lines (27 loc) · 1.11 KB
/
beacon_desc.nim
File metadata and controls
34 lines (27 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Nimbus
# Copyright (c) 2023-2025 Status Research & Development GmbH
# Licensed under either of
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
# http://www.apache.org/licenses/LICENSE-2.0)
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or
# http://opensource.org/licenses/MIT)
# at your option. This file may not be copied, modified, or distributed
# except according to those terms.
{.push raises: [].}
import
./worker/worker_desc,
../[sync_desc, sync_sched]
export
sync_desc, worker_desc
type
BeaconSyncConfigHook* = proc(desc: BeaconSyncRef) {.gcsafe, raises: [].}
## Conditional configuration request hook
BeaconSyncRef* = ref object of RunnerSyncRef[BeaconCtxData,BeaconBuddyData]
## Instance descriptor, extends scheduler object
lazyConfigHook*: BeaconSyncConfigHook
BeaconHandlersSyncRef* = ref object of BeaconHandlersRef
## Add start/stop helpers to function list. By default, this functiona
## are no-ops.
startSync*: proc(self: BeaconHandlersSyncRef) {.gcsafe, raises: [].}
stopSync*: proc(self: BeaconHandlersSyncRef) {.gcsafe, raises: [].}
# End