examples

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 10 Imported by: 0

README

Examples

This is the examples directory. If you would like intellisense for the examples, install the dependencies like so:

cd examples
bun install

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectData

func ExpectData[K comparable, V comparable](ctx context.Context, streamClient skip.StreamClient, uuid string, expected []StreamEvent[K, V]) error

func StartSkipContainer

func StartSkipContainer(ctx context.Context, path string) (func(), error)

StartSkipContainer creates a Skip container and returns a cleanup function to terminate it. The given path is the path to the skip.ts file to be used in the container. This is not suitable for production use but is useful for testing and development.

func UpdateInputCollection

func UpdateInputCollection(ctx context.Context, t *testing.T, controlClient skip.ControlClient, collection string, update []skip.CollectionData)

func WaitForIO

func WaitForIO()

Types

type StreamEvent

type StreamEvent[K comparable, V comparable] struct {
	Type skip.StreamType
	Data []skip.CollectionValue[K, V]
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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