forked from consensus-shipyard/mir
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodules.go
More file actions
24 lines (18 loc) · 693 Bytes
/
Copy pathmodules.go
File metadata and controls
24 lines (18 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
// Package modules provides interfaces of modules that serve as building blocks of a Node.
// Implementations of those interfaces are not contained by this package
// and are expected to be provided by other packages.
package modules
import (
t "github.com/filecoin-project/mir/pkg/types"
)
// Module generalizes the ActiveModule and PassiveModule types.
type Module interface {
// ImplementsModule only serves the purpose of indicating that this is a Module and must not be called.
ImplementsModule()
}
// The Modules structs groups the modules a Node consists of.
type Modules map[t.ModuleID]Module