Documentation ¶
Index ¶
- type DebugMachineLogger
- func (p *DebugMachineLogger) Abort()
- func (p *DebugMachineLogger) Continue()
- func (p *DebugMachineLogger) CreateStepLogger(ctx context.Context, sm smachine.StateMachine, traceID smachine.TracerID) smachine.StepLogger
- func (p *DebugMachineLogger) EventChan() <-chan UpdateEvent
- func (p *DebugMachineLogger) FlushEvents(flushDone synckit.SignalChannel, closeEvents bool)
- func (p *DebugMachineLogger) GetEvent() (ev UpdateEvent)
- func (p *DebugMachineLogger) LogMachineCritical(slotMachineData smachine.SlotMachineData, msg string)
- func (p *DebugMachineLogger) LogMachineInternal(slotMachineData smachine.SlotMachineData, msg string)
- func (p *DebugMachineLogger) LogStopping(m *smachine.SlotMachine)
- type DebugStepLogger
- func (c DebugStepLogger) CanLogEvent(smachine.StepLoggerEvent, smachine.StepLogLevel) bool
- func (c DebugStepLogger) CanLogTestEvent() bool
- func (c DebugStepLogger) CreateAsyncLogger(context.Context, *smachine.StepLoggerData) (context.Context, smachine.StepLogger)
- func (c DebugStepLogger) LogAdapter(data smachine.StepLoggerData, adapterID smachine.AdapterID, callID uint64, ...)
- func (c DebugStepLogger) LogEvent(data smachine.StepLoggerData, customEvent interface{}, ...)
- func (c DebugStepLogger) LogInternal(data smachine.StepLoggerData, updateType string)
- func (c DebugStepLogger) LogTestEvent(data smachine.StepLoggerData, customEvent interface{})
- func (c DebugStepLogger) LogUpdate(data smachine.StepLoggerData, update smachine.StepLoggerUpdateData)
- type LoggerSlotPredicateFn
- type UpdateEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DebugMachineLogger ¶
type DebugMachineLogger struct {
// contains filtered or unexported fields
}
func NewDebugMachineLogger ¶
func NewDebugMachineLogger(underlying smachine.SlotMachineLogger) *DebugMachineLogger
func NewDebugMachineLoggerNoBlock ¶
func NewDebugMachineLoggerNoBlock(underlying smachine.SlotMachineLogger, eventBufLimit int) *DebugMachineLogger
func (*DebugMachineLogger) Abort ¶
func (p *DebugMachineLogger) Abort()
func (*DebugMachineLogger) Continue ¶
func (p *DebugMachineLogger) Continue()
func (*DebugMachineLogger) CreateStepLogger ¶
func (p *DebugMachineLogger) CreateStepLogger(ctx context.Context, sm smachine.StateMachine, traceID smachine.TracerID) smachine.StepLogger
func (*DebugMachineLogger) EventChan ¶
func (p *DebugMachineLogger) EventChan() <-chan UpdateEvent
func (*DebugMachineLogger) FlushEvents ¶
func (p *DebugMachineLogger) FlushEvents(flushDone synckit.SignalChannel, closeEvents bool)
func (*DebugMachineLogger) GetEvent ¶
func (p *DebugMachineLogger) GetEvent() (ev UpdateEvent)
func (*DebugMachineLogger) LogMachineCritical ¶
func (p *DebugMachineLogger) LogMachineCritical(slotMachineData smachine.SlotMachineData, msg string)
func (*DebugMachineLogger) LogMachineInternal ¶
func (p *DebugMachineLogger) LogMachineInternal(slotMachineData smachine.SlotMachineData, msg string)
func (*DebugMachineLogger) LogStopping ¶
func (p *DebugMachineLogger) LogStopping(m *smachine.SlotMachine)
type DebugStepLogger ¶
type DebugStepLogger struct { smachine.StepLogger // contains filtered or unexported fields }
func (DebugStepLogger) CanLogEvent ¶
func (c DebugStepLogger) CanLogEvent(smachine.StepLoggerEvent, smachine.StepLogLevel) bool
func (DebugStepLogger) CanLogTestEvent ¶
func (c DebugStepLogger) CanLogTestEvent() bool
func (DebugStepLogger) CreateAsyncLogger ¶
func (c DebugStepLogger) CreateAsyncLogger(context.Context, *smachine.StepLoggerData) (context.Context, smachine.StepLogger)
func (DebugStepLogger) LogAdapter ¶
func (c DebugStepLogger) LogAdapter(data smachine.StepLoggerData, adapterID smachine.AdapterID, callID uint64, fields []logfmt.LogFieldMarshaller)
func (DebugStepLogger) LogEvent ¶
func (c DebugStepLogger) LogEvent(data smachine.StepLoggerData, customEvent interface{}, fields []logfmt.LogFieldMarshaller)
func (DebugStepLogger) LogInternal ¶
func (c DebugStepLogger) LogInternal(data smachine.StepLoggerData, updateType string)
func (DebugStepLogger) LogTestEvent ¶
func (c DebugStepLogger) LogTestEvent(data smachine.StepLoggerData, customEvent interface{})
func (DebugStepLogger) LogUpdate ¶
func (c DebugStepLogger) LogUpdate(data smachine.StepLoggerData, update smachine.StepLoggerUpdateData)
type LoggerSlotPredicateFn ¶
type LoggerSlotPredicateFn func(smachine.StateMachine, smachine.TracerID) bool
type UpdateEvent ¶
type UpdateEvent struct { SM smachine.StateMachine Data smachine.StepLoggerData Update smachine.StepLoggerUpdateData CustomEvent interface{} AdapterID smachine.AdapterID CallID uint64 // contains filtered or unexported fields }
func (UpdateEvent) IsEmpty ¶
func (e UpdateEvent) IsEmpty() bool
Click to show internal directories.
Click to hide internal directories.