Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultMsgBufSize = 1024 * 1024 // 1 MB
)
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(id stdtypes.ModuleID, params ModuleParams, logger logging.Logger) modules.PassiveModule
New creates a new factory module.
Types ¶
type ModuleGenerator ¶
ModuleGenerator is a function that generates a passive module from a module ID and the parameters. TODO: Change the params type from any to stdtypes.Serializable when legacy proto events are not used with factory.
type ModuleParams ¶
type ModuleParams struct {
Generator ModuleGenerator
MsgBufSize int
}
ModuleParams contains the parameters for creating a factory module.
func DefaultParams ¶
func DefaultParams(generator ModuleGenerator) ModuleParams
DefaultParams creates a valid ModuleParams with default values.
Click to show internal directories.
Click to hide internal directories.