package
1.17.3
Repository: https://github.com/dtm-labs/client.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Execute is the same as ExecuteCtx, but with context.Background Deprecated: use ExecuteCtx instaead.
Execute2 is the same as Execute, but workflow func can return result Deprecated: use ExecuteCtx instaead.
ExecuteByQS is like Execute, but name and gid will be obtained from qs Deprecated: use ExecuteCtx instaead.
ExecuteCtx will execute a workflow with the gid and specified params if the workflow with the gid does not exist, then create a new workflow and execute it if the workflow with the gid exists, resume to execute it.
GrpcError2DtmError translate grpc error to dtm error.
HTTPResp2DtmError check for dtm error and return it.
InitGrpc will init Workflow engine to use grpc param dtm specify the dtm address param clientHost specify the client host for dtm to callback if a workflow timeout param grpcServer specify the grpc server.
InitHTTP will init Workflow engine to use http param httpDtm specify the dtm address param callback specify the url for dtm to callback if a workflow timeout.
Interceptor is the middleware for workflow to capture grpc call result.
NewRespBodyFromBytes creates an io.ReadCloser from a byte slice that is suitable for use as an http response body.
Register will register a workflow with the specified name.
Register2 is the same as Register, but workflow func can return result.
SetProtocolForTest change protocol directly.

# Structs

Options is for specifying workflow options.
Workflow is the type for a workflow.

# Type aliases

WfFunc is the type for workflow function.
WfFunc2 is the type for workflow function with return value.
WfPhase2Func is the type for phase 2 function param bb is a BranchBarrier, which is introduced by http://d.dtm.pub/practice/barrier.html.