Documentation ¶
Index ¶
- type TapeRecord
- type TestMessageBus
- func (mb *TestMessageBus) Lock(context.Context)
- func (mb *TestMessageBus) MustRegister(p insolar.MessageType, handler insolar.MessageHandler)
- func (mb *TestMessageBus) NewPlayer(ctx context.Context, reader io.Reader) (insolar.MessageBus, error)
- func (mb *TestMessageBus) NewRecorder(ctx context.Context, currentPulse insolar.Pulse) (insolar.MessageBus, error)
- func (mb *TestMessageBus) OnPulse(context.Context, insolar.Pulse) error
- func (mb *TestMessageBus) ReRegister(p insolar.MessageType, handler insolar.MessageHandler)
- func (mb *TestMessageBus) Register(p insolar.MessageType, handler insolar.MessageHandler) error
- func (mb *TestMessageBus) Send(ctx context.Context, m insolar.Message, _ *insolar.MessageSendOptions) (insolar.Reply, error)
- func (mb *TestMessageBus) Unlock(context.Context)
- func (mb *TestMessageBus) WriteTape(ctx context.Context, writer io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TapeRecord ¶ added in v0.7.5
type TestMessageBus ¶
type TestMessageBus struct { PulseAccessor pulse.Accessor ReadingTape []TapeRecord WritingTape []TapeRecord // contains filtered or unexported fields }
func NewTestMessageBus ¶
func NewTestMessageBus(t *testing.T) *TestMessageBus
func (*TestMessageBus) Lock ¶
func (mb *TestMessageBus) Lock(context.Context)
func (*TestMessageBus) MustRegister ¶
func (mb *TestMessageBus) MustRegister(p insolar.MessageType, handler insolar.MessageHandler)
func (*TestMessageBus) NewPlayer ¶ added in v0.6.3
func (mb *TestMessageBus) NewPlayer(ctx context.Context, reader io.Reader) (insolar.MessageBus, error)
func (*TestMessageBus) NewRecorder ¶ added in v0.6.3
func (mb *TestMessageBus) NewRecorder(ctx context.Context, currentPulse insolar.Pulse) (insolar.MessageBus, error)
func (*TestMessageBus) ReRegister ¶
func (mb *TestMessageBus) ReRegister(p insolar.MessageType, handler insolar.MessageHandler)
func (*TestMessageBus) Register ¶
func (mb *TestMessageBus) Register(p insolar.MessageType, handler insolar.MessageHandler) error
func (*TestMessageBus) Send ¶
func (mb *TestMessageBus) Send(ctx context.Context, m insolar.Message, _ *insolar.MessageSendOptions) (insolar.Reply, error)
func (*TestMessageBus) Unlock ¶
func (mb *TestMessageBus) Unlock(context.Context)
Click to show internal directories.
Click to hide internal directories.