fake

package
v1.16.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: Apache-2.0 Imports: 2 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) IsActorHosted

func (f *Fake) IsActorHosted(ctx context.Context, actorType, actorID string) bool

func (*Fake) Lock

func (*Fake) LookupActor

func (f *Fake) LookupActor(ctx context.Context, req *api.LookupActorRequest) (*api.LookupActorResponse, error)

func (*Fake) Ready

func (f *Fake) Ready() bool

func (*Fake) Run

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

func (*Fake) WithIsActorHosted

func (f *Fake) WithIsActorHosted(fn func(context.Context, string, string) bool) *Fake

func (*Fake) WithLock

func (f *Fake) WithLock(fn func(context.Context) (context.Context, context.CancelFunc, error)) *Fake

func (*Fake) WithLookupActor

func (f *Fake) WithLookupActor(fn func(context.Context, *api.LookupActorRequest) (*api.LookupActorResponse, error)) *Fake

func (*Fake) WithReady

func (f *Fake) WithReady(fn func() bool) *Fake

func (*Fake) WithRun

func (f *Fake) WithRun(fn func(context.Context) error) *Fake

Jump to

Keyboard shortcuts

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