Documentation
¶
Index ¶
- Constants
- func ExperimentalParse(opts ExperimentalParseOpts) (pkgList map[PackagePath]*Package, err error)
- type Endpoint
- type ExperimentalParseOpts
- type FuncDecl
- type Method
- type Middleware
- type Package
- type PackagePath
- type Provider
- type ProviderType
- type Service
- type TypeMeta
- func (t TypeMeta) File() *token.File
- func (t TypeMeta) ID() string
- func (t TypeMeta) PackagePath() string
- func (t TypeMeta) Pos() token.Pos
- func (t TypeMeta) Position() token.Position
- func (t TypeMeta) QualifiedName() string
- func (t TypeMeta) Recv() *types.Var
- func (t TypeMeta) RecvNamed() *types.Named
- type Var
- type Worker
- type WorkerType
Constants ¶
View Source
const ( WorkflowType = WorkerType("workflow") ActivityType = WorkerType("activity") )
Variables ¶
This section is empty.
Functions ¶
func ExperimentalParse ¶
func ExperimentalParse(opts ExperimentalParseOpts) (pkgList map[PackagePath]*Package, err error)
Types ¶
type ExperimentalParseOpts ¶
type Middleware ¶
type Package ¶
type PackagePath ¶
type PackagePath string
func (PackagePath) String ¶
func (p PackagePath) String() string
type Provider ¶
type Provider struct {
*TypeMeta
Name string
Type ProviderType
Directives decorators.List
}
type ProviderType ¶
type ProviderType string
var ( StructProviderType ProviderType = "struct" FunctionProviderType ProviderType = "function" )
type Service ¶
type Service struct {
*TypeMeta
Name string
Directives decorators.List
Endpoints map[*ast.Ident]*Endpoint
}
func NewService ¶
type TypeMeta ¶
func (TypeMeta) PackagePath ¶
func (TypeMeta) QualifiedName ¶
QualifiedName returns the qualified name of the object. If the object is a method, the receiver type is prepended to the name. MyType.Name is the qualified name. where MyType is a receiver of the method Name.
type Var ¶
func (*Var) TypePkgPath ¶
type Worker ¶
type Worker struct {
*TypeMeta
Name string
Type WorkerType
TaskQueue string
Methods map[*ast.Ident]*Method
Directives decorators.List
}
type WorkerType ¶
type WorkerType string
Click to show internal directories.
Click to hide internal directories.