parser

package
v0.19.1069 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityOptions

type ActivityOptions struct {
	Namespace              string
	TaskQueue              string
	ScheduleToCloseTimeout time.Duration
	ScheduleToStartTimeout time.Duration
	StartToCloseTimeout    time.Duration
	HeartbeatTimeout       time.Duration
	WaitForCancellation    bool
	ActivityID             string
	MaxRetries             int
	RetryPolicy            bool
	DisableEagerExecution  bool
	OptionsCallback        string
	ByField                string
	ByFieldOnly            bool
	GenerateWrapper        bool
	WrapperPrefix          string // Prefix to add to generated wrapper function name
	ReplicaRead            bool
}

type Annotation

type Annotation struct {
	Type         string
	ActivityOpts *ActivityOptions
	WorkflowOpts *WorkflowOptions
	QueryOpts    *QueryOptions
	SignalOpts   *SignalOptions
	UpdateOpts   *UpdateOptions
}

func Parse

func Parse(comments []string) (*Annotation, error)

Parse checks if a comment group contains the generator annotation

func (*Annotation) Validate

func (a *Annotation) Validate() error

Validate checks if the annotation configuration is valid

type QueryOptions

type QueryOptions struct{}

type SignalOptions

type SignalOptions struct{}

type UpdateOptions

type UpdateOptions struct {
	ID string
}

type WorkflowOptions

type WorkflowOptions struct {
	ExecutionTimeout    time.Duration
	TaskTimeout         time.Duration
	IDGenerator         string
	IDTemplate          string
	WaitForCancellation bool
	TaskQueue           string
	OptionsCallback     string
	Memo                map[string]string
}

Jump to

Keyboard shortcuts

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