package main

Import Path
	github.com/pancsta/asyncmachine-go/examples/mach_template (on go.dev)

Dependency Relation
	imports 13 packages, and imported by 0 packages

Involved Source Files m mach_template.go
Package-Level Type Names (total 5)
/* sort by: | */
A is a struct for node arguments. It's a typesafe alternative to [am.A]. Addr string Id string ReturnCh chan<- []string func ParseArgs(args am.A) *A func Pass(args *A) am.A func PassRpc(args *A) am.A
ARpc is a subset of A, that can be passed over RPC. Addr string Id string
type S = am.S ([])
ExceptionHandler *am.ExceptionHandler Mach *am.Machine (*TemplateHandlers) BarExit(e *am.Event) bool (*TemplateHandlers) BazDoneState(e *am.Event) (*TemplateHandlers) BazState(e *am.Event) (*TemplateHandlers) ChannelEnter(e *am.Event) bool (*TemplateHandlers) ChannelState(e *am.Event) ExceptionState is a final entry handler for the StateException state. Args: - err error: The error that caused the StateException state. - panic *ExceptionArgsPanic: Optional details about the panic. (*TemplateHandlers) FooState(e *am.Event)
NoOpTracer *am.NoOpTracer ( Tracer) HandlerEnd(transition *machine.Transition, emitter string, handler string) ( Tracer) HandlerStart(transition *machine.Transition, emitter string, handler string) ( Tracer) Inheritable() bool ( Tracer) MachineDispose(machID string) ( Tracer) MachineInit(machine machine.Api) context.Context ( Tracer) MutationQueued(machine machine.Api, mutation *machine.Mutation) ( Tracer) NewSubmachine(parent, machine machine.Api) ( Tracer) QueueEnd(machine machine.Api) ( Tracer) SchemaChange(machine machine.Api, old machine.Schema) TransitionEnd sends a message when a transition ends ( Tracer) TransitionInit(transition *machine.Transition) ( Tracer) TransitionStart(transition *machine.Transition) ( Tracer) VerifyStates(machine machine.Api) *Tracer : github.com/pancsta/asyncmachine-go/pkg/machine.Tracer
Package-Level Functions (total 6)
AddErrExample wraps an error in the ErrJoining sentinel and adds to a machine.
LogArgs is an args logger for A.
ParseArgs extracts A from [am.Event.Args][APrefix].
Pass prepares [am.A] from A to pass to further mutations.
PassRpc prepares [am.A] from A to pass over RPC.
Package-Level Variables (only one)
Package-Level Constants (only one)
const APrefix = "am_node"