signal

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signal

type Signal struct {
	Content      any                `json:"content" yaml:"content"`
	StartedAt    datetime.DateTime  `json:"started_at" yaml:"started_at"`
	CompletedAt  *datetime.DateTime `json:"completed_at,omitempty" yaml:"completed_at,omitempty"`
	Status       int                `json:"status" yaml:"status"`
	ErrorMessage *string            `json:"error_message,omitempty" yaml:"error_message,omitempty"`
}

func NewSignal

func NewSignal(content any, startedAt datetime.DateTime, completedAt *datetime.DateTime, status int, errorMessage *string) Signal

func (*Signal) AddError added in v0.0.3

func (s *Signal) AddError(err error)

func (*Signal) EncodeContent

func (s *Signal) EncodeContent() error

func (*Signal) PanicHandler added in v0.0.3

func (s *Signal) PanicHandler(ctx context.Context)

Jump to

Keyboard shortcuts

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