Documentation
¶
Index ¶
- func Build(wfConf *WorkflowConfig, connMap *sync.Map) ([]serverless.GetFlowFunc, []serverless.GetSinkFunc)
- func DispatcherWithFunc(flows []serverless.GetFlowFunc, reader io.Reader) rx.RxStream
- func GetSinks(wfConf *WorkflowConfig, connMap *sync.Map) []serverless.GetSinkFunc
- func NewServerHandler(conf *WorkflowConfig, meshConfURL string) quic.ServerHandler
- type App
- type Runtime
- type ServerConn
- type Workflow
- type WorkflowConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build(wfConf *WorkflowConfig, connMap *sync.Map) ([]serverless.GetFlowFunc, []serverless.GetSinkFunc)
Build the workflow by config (.yaml). It will create one stream for each flows/sinks.
func DispatcherWithFunc ¶
func DispatcherWithFunc(flows []serverless.GetFlowFunc, reader io.Reader) rx.RxStream
DispatcherWithFunc dispatches the input stream to downstreams.
func GetSinks ¶
func GetSinks(wfConf *WorkflowConfig, connMap *sync.Map) []serverless.GetSinkFunc
GetSinks get sinks from workflow config and connMap
func NewServerHandler ¶
func NewServerHandler(conf *WorkflowConfig, meshConfURL string) quic.ServerHandler
NewServerHandler inits a new ServerHandler
Types ¶
type Runtime ¶
Runtime represents the YoMo runtime.
func NewRuntime ¶
func NewRuntime(conf *WorkflowConfig, meshConfURL string) Runtime
NewRuntime inits a new YoMo runtime.
type ServerConn ¶
ServerConn represents the YoMo Server connection.
func NewServerConn ¶
func NewServerConn(sess quic.Session, st quic.Stream, conf *WorkflowConfig) *ServerConn
NewServerConn inits a new YoMo Server connection.
func (*ServerConn) Beat ¶
func (c *ServerConn) Beat()
Beat sends the heartbeat to clients in every 200ms.
func (*ServerConn) SendSinkFlowSignal ¶
func (c *ServerConn) SendSinkFlowSignal() error
SendSinkFlowSignal sends the signal Flow/Sink to client.
type WorkflowConfig ¶
type WorkflowConfig struct { Name string `yaml:"name"` Host string `yaml:"host"` Port int `yaml:"port"` Workflow `yaml:",inline"` }
Workflow represents a YoMo Workflow config.
func ParseConfig ¶
func ParseConfig(config string) (*WorkflowConfig, error)
Click to show internal directories.
Click to hide internal directories.