Documentation ¶
Index ¶
- Constants
- Variables
- func NewServer(tracer opentracing.Tracer)
- type ActivityInterface
- type ActivityRunInterface
- type Arg
- type ArgData
- type CustomFunc
- type CustomFuncData
- type Definition
- type Definitions
- type OrchestratorClient
- type RequestConfig
- type Server
- type StartWorkflowOptions
- type WorkerInterface
- type WorkflowInterface
- type WorkflowRunInterface
Constants ¶
const TimeType = "time.time"
Variables ¶
var GrpcServer *grpc.Server
GrpcServer need to be call from the main file of the service, to launch the grpc server.
Functions ¶
func NewServer ¶
func NewServer(tracer opentracing.Tracer)
Types ¶
type ActivityInterface ¶
type ActivityRunInterface ¶
type ActivityRunInterface interface { }
type ArgData ¶
ArgData represent the argument of a custom function, in a format usable by templates.
type CustomFunc ¶
CustomFunc represent a custom function.
func (*CustomFunc) GetCustomFuncData ¶
func (c *CustomFunc) GetCustomFuncData() *CustomFuncData
GetCustomFuncData return the custom function information, in a format usable by templates.
type CustomFuncData ¶
CustomFuncData represent a custom function, in a format usable by templates.
type Definition ¶
type Definition struct { Application libapplication.AggregateInterface GenDomain string Create *RequestConfig Update *RequestConfig Delete *RequestConfig CustomFuncs []*libdomain.CustomCommand Event bool // contains filtered or unexported fields }
Definition is used to declare the information of a model, so it can generate its code.
func (*Definition) GetCustomFuncByName ¶
func (d *Definition) GetCustomFuncByName(name string) *libdomain.CustomCommand
GetCustomFuncByName return the custom function by it's name
type Definitions ¶
type Definitions struct { Prefix string Repository string Tenant bool Auth bool // contains filtered or unexported fields }
Definitions contains all the grpc definitions in the service.
func (*Definitions) GenClient ¶
func (defs *Definitions) GenClient(path string)
GenClient will generate the grpc client files. nolint: dupl
func (*Definitions) GetByID ¶
func (ds *Definitions) GetByID(id string) *Definition
GetByID return the specified definition by its ID.
func (*Definitions) Register ¶
func (ds *Definitions) Register(d *Definition)
Register is used to register a new definition into the service.
func (*Definitions) Slice ¶
func (ds *Definitions) Slice() []*Definition
Slice return the definitions as a slice.
type OrchestratorClient ¶
type OrchestratorClient interface { ExecuteWorkflow( context.Context, *libdomain.AggregateDefinition, string, string, WorkflowInterface, StartWorkflowOptions) (WorkflowRunInterface, error) ExecuteActivity(*libdomain.Workflow, ActivityInterface) (ActivityRunInterface, error) InitOrchestratorRepository() error }
type RequestConfig ¶
type RequestConfig struct{}
type Server ¶
type Server struct { }
Server need to be call from the main file of the service, to launch the grpc server.