Documentation
¶
Index ¶
Constants ¶
View Source
const (
ConfigDirEnv = "LANGQUAIL_CONFIG_DIR"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type EventFilter ¶
type EventHub ¶
type EventHub struct {
// contains filtered or unexported fields
}
func NewEventHub ¶
func NewEventHub() *EventHub
func (*EventHub) Subscribe ¶
func (h *EventHub) Subscribe(filter EventFilter) *EventSubscription
type EventSubscription ¶
type EventSubscription struct {
// contains filtered or unexported fields
}
func (*EventSubscription) Close ¶
func (s *EventSubscription) Close()
func (*EventSubscription) Events ¶
func (s *EventSubscription) Events() <-chan trace.Event
type ExecutableWorkflow ¶
type ExecutableWorkflow interface {
graph.Workflow
InvokeJSON(context.Context, json.RawMessage, ...runtime.InvokeOption) (json.RawMessage, error)
ResumeJSON(context.Context, ResumeJSONRequest) (json.RawMessage, error)
}
func Executable ¶
func Executable[S any](stateGraph *graph.StateGraph[S], opts ...runtime.Option[S]) ExecutableWorkflow
type ResumeJSONRequest ¶
type ServeOption ¶
type ServeOption func(*serveConfig)
func WithConfigDir ¶
func WithConfigDir(path string) ServeOption
func WithOutput ¶
func WithOutput(output io.Writer) ServeOption
func WithToken ¶
func WithToken(token string) ServeOption
func WithTokenFile ¶
func WithTokenFile(path string) ServeOption
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(app Application, opts ...ServeOption) (*Server, error)
Click to show internal directories.
Click to hide internal directories.