Documentation
¶
Index ¶
- func NewExecutor(faasAddress string, blobStore blobs.Store) actor.Actor
- func NewExponentialBackoffStrategy(backoffWindow time.Duration, initialBackoff time.Duration, ...) actor.SupervisorStrategy
- func NewGraphActor(executor *actor.PID) actor.Actor
- func NewGraphManager(persistenceProvider persistence.ProviderState, blobStore blobs.Store, ...) (model.FlowServiceServer, error)
- func NewGraphSupervisor(name string, executor *actor.PID, persistenceProvider persistence.Provider) actor.Actor
- type EventStreamPlugin
- type ExecHandler
- type PIDAware
- type PIDAwarePlugin
- type PIDHolder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutor ¶
NewExecutor creates a new executor actor with the given funcions service endpoint
func NewExponentialBackoffStrategy ¶
func NewExponentialBackoffStrategy(backoffWindow time.Duration, initialBackoff time.Duration, decider actor.DeciderFunc) actor.SupervisorStrategy
NewExponentialBackoffStrategy creates a new Supervisor strategy that restarts a faulting child using an exponential back off algorithm when decider returns actor.RestartDirective
func NewGraphActor ¶
NewGraphActor returns a pointer to a new graph actor
func NewGraphManager ¶
func NewGraphManager(persistenceProvider persistence.ProviderState, blobStore blobs.Store, fnURL string, shardExtractor sharding.ShardExtractor, shards []int) (model.FlowServiceServer, error)
NewGraphManager creates a new implementation of the GraphManager interface
func NewGraphSupervisor ¶
func NewGraphSupervisor(name string, executor *actor.PID, persistenceProvider persistence.Provider) actor.Actor
NewGraphSupervisor creates new graphSupervisor actor
Types ¶
type EventStreamPlugin ¶
type EventStreamPlugin struct {
// contains filtered or unexported fields
}
EventStreamPlugin provides a mixin that will publish all intercepted user messages to the associated stream
func (*EventStreamPlugin) OnOtherMessage ¶
func (p *EventStreamPlugin) OnOtherMessage(ctx actor.Context, usrMsg interface{})
OnOtherMessage implements plugin.OnOtherMessage - sends message to stream
func (*EventStreamPlugin) OnStart ¶
func (p *EventStreamPlugin) OnStart(ctx actor.Context)
OnStart configures implements plugin.OnStart for the event stream plugin
type ExecHandler ¶
type ExecHandler interface { HandleInvokeStage(msg *model.InvokeStageRequest) *model.FaasInvocationResponse HandleInvokeFunction(msg *model.InvokeFunctionRequest) *model.FaasInvocationResponse }
ExecHandler abstracts the FaaS execution backend implementations must handle all errors and return an appropriate invocation responser
type PIDAwarePlugin ¶
type PIDAwarePlugin struct{}
PIDAwarePlugin is a plugin that causes proto actor to set the PID (via PIDAware) on actors that want to know their PID
func (*PIDAwarePlugin) OnOtherMessage ¶
func (p *PIDAwarePlugin) OnOtherMessage(ctx actor.Context, usrMsg interface{})
OnOtherMessage part of the Actor middleware interface
func (*PIDAwarePlugin) OnStart ¶
func (p *PIDAwarePlugin) OnStart(ctx actor.Context)
OnStart set up the PIDAwarePlugin