fake

package
v1.17.21 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 4 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) ActorExists

func (f *Fake) ActorExists(actorType, actorKey string) bool

func (*Fake) Close

func (f *Fake) Close() error

func (*Fake) GetOrCreate

func (f *Fake) GetOrCreate(actorType, actorID string) (targets.Interface, error)

func (*Fake) HaltAll

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

func (*Fake) HaltNonHosted

func (f *Fake) HaltNonHosted(ctx context.Context, fn func(*api.LookupActorRequest) bool) error

func (*Fake) IsActorTypeHosted

func (f *Fake) IsActorTypeHosted(actorType string) bool

func (*Fake) Len

func (f *Fake) Len() map[string]int

func (*Fake) RegisterActorTypes

func (f *Fake) RegisterActorTypes(opts table.RegisterActorTypeOptions)

func (*Fake) SubscribeToTypeUpdates

func (f *Fake) SubscribeToTypeUpdates(ctx context.Context) (<-chan []string, []string)

func (*Fake) Types

func (f *Fake) Types() []string

func (*Fake) UnRegisterActorTypes

func (f *Fake) UnRegisterActorTypes(actorTypes ...string) error

func (*Fake) WithActorExists

func (f *Fake) WithActorExists(fn func(string, string) bool) *Fake

func (*Fake) WithClose

func (f *Fake) WithClose(fn func() error) *Fake

func (*Fake) WithGetOrCreate

func (f *Fake) WithGetOrCreate(fn func(string, string) (targets.Interface, error)) *Fake

func (*Fake) WithHaltAll

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

func (*Fake) WithHaltNonHosted

func (f *Fake) WithHaltNonHosted(fn func(context.Context, func(*api.LookupActorRequest) bool) error) *Fake

func (*Fake) WithIsActorTypeHosted

func (f *Fake) WithIsActorTypeHosted(fn func(string) bool) *Fake

func (*Fake) WithLen

func (f *Fake) WithLen(fn func() map[string]int) *Fake

func (*Fake) WithRegisterActorTypes

func (f *Fake) WithRegisterActorTypes(fn func(table.RegisterActorTypeOptions)) *Fake

func (*Fake) WithSubscribeToTypeUpdates

func (f *Fake) WithSubscribeToTypeUpdates(fn func(context.Context) (<-chan []string, []string)) *Fake

func (*Fake) WithTypes

func (f *Fake) WithTypes(fn func() []string) *Fake

func (*Fake) WithUnRegisterActorTypes

func (f *Fake) WithUnRegisterActorTypes(fn func(...string) error) *Fake

Jump to

Keyboard shortcuts

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