Help us shape the future of Go! Take the 2026 Go Developer Survey

fakes

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeReflector

type FakeReflector struct {
	Running utils.AtomicBool
	Closed  utils.AtomicBool
	Events  chan string
}

func NewFakeReflector

func NewFakeReflector() *FakeReflector

func (*FakeReflector) Close

func (r *FakeReflector) Close() error

func (*FakeReflector) NextEvent

func (r *FakeReflector) NextEvent(ctx context.Context) string

func (*FakeReflector) SendEvent

func (r *FakeReflector) SendEvent(name string)

func (*FakeReflector) Start

func (r *FakeReflector) Start(ctx context.Context) error

func (*FakeReflector) Stop

func (r *FakeReflector) Stop()

Jump to

Keyboard shortcuts

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