fake

package
v1.18.11 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

type Fake struct {
	// contains filtered or unexported fields
}

func New

func New() *Fake

func (*Fake) ActivateMCPServers added in v1.18.0

func (f *Fake) ActivateMCPServers(ctx context.Context) error

func (*Fake) ActivityActorType

func (f *Fake) ActivityActorType() string

func (*Fake) Client

func (f *Fake) Client() workflows.Workflow

func (*Fake) EnsureActorsRegistered added in v1.18.0

func (f *Fake) EnsureActorsRegistered(_ context.Context) error

func (*Fake) InProcessExecutor added in v1.18.0

func (f *Fake) InProcessExecutor() *inprocess.Executor

func (*Fake) Init

func (f *Fake) Init() error

func (*Fake) RegisterGrpcServer

func (f *Fake) RegisterGrpcServer(grpcServer *grpc.Server)

func (*Fake) RegisterMCPServer added in v1.18.0

func (*Fake) Run

func (f *Fake) Run(ctx context.Context) error

func (*Fake) RuntimeMetadata added in v1.16.0

func (f *Fake) RuntimeMetadata() *runtimev1pb.MetadataWorkflows

func (*Fake) UnregisterMCPServer added in v1.18.0

func (f *Fake) UnregisterMCPServer(_ string)

func (*Fake) WaitForReady

func (f *Fake) WaitForReady(ctx context.Context) error

func (*Fake) WithClient

func (f *Fake) WithClient(clientFn func() workflows.Workflow) *Fake

func (*Fake) WithInit

func (f *Fake) WithInit(initFn func() error) *Fake

func (*Fake) WithRegisterGrpcServer

func (f *Fake) WithRegisterGrpcServer(registerGrpcServerFn func(grpcServer *grpc.Server)) *Fake

func (*Fake) WithRun

func (f *Fake) WithRun(runFn func(ctx context.Context) error) *Fake

func (*Fake) WithRuntimeMetadata added in v1.16.0

func (f *Fake) WithRuntimeMetadata(runtimeMetadataFn func() *runtimev1pb.MetadataWorkflows) *Fake

func (*Fake) WithWaitForReady

func (f *Fake) WithWaitForReady(waitForReadyFn func(ctx context.Context) error) *Fake

func (*Fake) WorkflowActorType added in v1.18.0

func (f *Fake) WorkflowActorType() string

type FakeClient

type FakeClient struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *FakeClient

func (*FakeClient) Close

func (f *FakeClient) Close() error

func (*FakeClient) Get

func (*FakeClient) Init

func (f *FakeClient) Init(metadata workflows.Metadata) error

func (*FakeClient) Pause

func (f *FakeClient) Pause(ctx context.Context, req *workflows.PauseRequest) error

func (*FakeClient) Purge

func (f *FakeClient) Purge(ctx context.Context, req *workflows.PurgeRequest) error

func (*FakeClient) RaiseEvent

func (f *FakeClient) RaiseEvent(ctx context.Context, req *workflows.RaiseEventRequest) error

func (*FakeClient) Resume

func (f *FakeClient) Resume(ctx context.Context, req *workflows.ResumeRequest) error

func (*FakeClient) Start

func (*FakeClient) Terminate

func (f *FakeClient) Terminate(ctx context.Context, req *workflows.TerminateRequest) error

func (*FakeClient) WithClose

func (f *FakeClient) WithClose(closeFn func() error) *FakeClient

func (*FakeClient) WithGet

func (f *FakeClient) WithGet(getFn func(ctx context.Context, req *workflows.GetRequest) (*workflows.StateResponse, error)) *FakeClient

func (*FakeClient) WithInit

func (f *FakeClient) WithInit(initFn func(metadata workflows.Metadata) error) *FakeClient

func (*FakeClient) WithPause

func (f *FakeClient) WithPause(pauseFn func(ctx context.Context, req *workflows.PauseRequest) error) *FakeClient

func (*FakeClient) WithPurge

func (f *FakeClient) WithPurge(purgeFn func(ctx context.Context, req *workflows.PurgeRequest) error) *FakeClient

func (*FakeClient) WithRaiseEvent

func (f *FakeClient) WithRaiseEvent(raiseEventFn func(ctx context.Context, req *workflows.RaiseEventRequest) error) *FakeClient

func (*FakeClient) WithResume

func (f *FakeClient) WithResume(resumeFn func(ctx context.Context, req *workflows.ResumeRequest) error) *FakeClient

func (*FakeClient) WithStart

func (f *FakeClient) WithStart(startFn func(ctx context.Context, req *workflows.StartRequest) (*workflows.StartResponse, error)) *FakeClient

func (*FakeClient) WithTerminate

func (f *FakeClient) WithTerminate(terminateFn func(ctx context.Context, req *workflows.TerminateRequest) error) *FakeClient

Jump to

Keyboard shortcuts

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