temporal

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package temporal initializes a Temporal worker.

Index

Constants

View Source
const (
	// SearchAttribute is a Temporal search attribute key used
	// by Timpani and the RevChat event dispatcher workflow.
	SearchAttribute = "WaitingForSignals"

	// EventDispatcher is the name and ID of the RevChat event dispatcher workflow.
	EventDispatcher = "event.dispatcher"
)

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, l zerolog.Logger, cmd *cli.Command) error

Run initializes the Temporal worker, and blocks to keep it running. This worker exposes (mostly asynchronous) Temporal workflows, and starts the event dispatcher workflow if it's not already running.

Types

type Config added in v0.3.0

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

func (Config) EventDispatcherWorkflow added in v0.3.0

func (c Config) EventDispatcherWorkflow(ctx workflow.Context) error

EventDispatcherWorkflow is an always-running singleton workflow that receives Temporal signals from Timpani and spawns event-specific child workflows to handle them.

type LogAdapter

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

LogAdapter implements Temporal's Logger interface.

func (LogAdapter) Debug

func (a LogAdapter) Debug(msg string, keyvals ...any)

func (LogAdapter) Error

func (a LogAdapter) Error(msg string, keyvals ...any)

func (LogAdapter) Info

func (a LogAdapter) Info(msg string, keyvals ...any)

func (LogAdapter) Warn

func (a LogAdapter) Warn(msg string, keyvals ...any)

Jump to

Keyboard shortcuts

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