fake

package
v1.15.0-rc.16 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 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) ActivityActorType

func (f *Fake) ActivityActorType() string

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