api

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

nolint

nolint

nolint

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExtraRoutes added in v0.8.1

func GetExtraRoutes() []func(*chi.Mux)

func RegisterExtraRoute added in v0.8.1

func RegisterExtraRoute(fn func(*chi.Mux))

func Start added in v0.8.1

func Start(ctx context.Context, app core.App, db *database.DB, bus *pubsub2.Bus, instanceManager *instancestore.InstanceManager, addr string, done <-chan struct{}, wg *sync.WaitGroup)

Types

type ActivityEntryContext added in v0.8.4

type ActivityEntryContext struct {
	ID interface{} `json:"id,omitempty"`
}

type Error added in v0.8.1

type Error struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

type Event added in v0.8.4

type Event struct {
	ID   string
	Data string
	Type string
}

type InstanceData added in v0.8.4

type InstanceData struct {
	ID           uuid.UUID  `json:"id"`
	CreatedAt    time.Time  `json:"created_at"`
	EndedAt      *time.Time `json:"ended_at"`
	Status       string     `json:"status"`
	WorkflowPath string     `json:"path"`
	ErrorCode    string     `json:"error_code"`
	Invoker      string     `json:"invoker"`

	Definition   []byte `json:"definition,omitempty"`
	Input        []byte `json:"input,omitempty"`
	Output       []byte `json:"output,omitempty"`
	ErrorMessage []byte `json:"error_message,omitempty"`
	Metadata     []byte `json:"metadata,omitempty"`
}

type RouteEntryContext added in v0.8.4

type RouteEntryContext struct {
	Path interface{} `json:"path,omitempty"`
}

type WorkflowEntryContext added in v0.8.4

type WorkflowEntryContext struct {
	Status interface{} `json:"status"`

	State    interface{} `json:"state"`
	Branch   interface{} `json:"branch"`
	Path     interface{} `json:"workflow"`
	CalledAs interface{} `json:"calledAs"`
	Instance interface{} `json:"instance"`
}

Jump to

Keyboard shortcuts

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