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
}
Click to show internal directories.
Click to hide internal directories.