service

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *types.Config, logger *slog.Logger) (*Service, error)

func (*Service) GetResult

func (svc *Service) GetResult(flowName string, sessID string) (map[string]*flow.ExecResult, error)

func (*Service) NewFlow

func (svc *Service) NewFlow(flowName string) (*flow.Flow, error)

func (*Service) RegisterFlows

func (svc *Service) RegisterFlows(mux *asynq.ServeMux, flows ...*flow.Flow) error

func (*Service) RegisterFlowsWithDefinitor

func (svc *Service) RegisterFlowsWithDefinitor(mux *asynq.ServeMux, flows map[string]flow.Definitor) error

func (*Service) Submit

func (svc *Service) Submit(flowName string, body []byte) (string, error)

submit a flow task

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL