Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultMsgBufSize = 1024 * 1024 // 1 MB
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FactoryModule ¶
type FactoryModule struct {
// contains filtered or unexported fields
}
func New ¶
func New(id t.ModuleID, params ModuleParams, logger logging.Logger) *FactoryModule
func (*FactoryModule) ApplyEvents ¶
func (*FactoryModule) ImplementsModule ¶
func (fm *FactoryModule) ImplementsModule()
type ModuleGenerator ¶
type ModuleGenerator func(id t.ModuleID, params *factorymodulepb.GeneratorParams) (modules.PassiveModule, error)
type ModuleParams ¶
type ModuleParams struct { Generator ModuleGenerator MsgBufSize int }
func DefaultParams ¶
func DefaultParams(generator ModuleGenerator) ModuleParams
Click to show internal directories.
Click to hide internal directories.