fake

package
v1.15.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

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) Client

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

func (*Fake) Init

func (f *Fake) Init() error

func (*Fake) RegisterGrpcServer

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

func (*Fake) Run

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

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) WithWaitForReady

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

type FakeClient

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

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

Jump to

Keyboard shortcuts

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