factorymodule

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

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 (fm *FactoryModule) ApplyEvents(evts *events.EventList) (*events.EventList, error)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL