durable

package
v0.0.0-...-3b62d95 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 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 Logger

type Logger func(msg string)

type Module

type Module interface {
	Instantiate(
		ctx context.Context,
		id string,
	) (Object, error)
	Close(ctx context.Context) error
}

type Object

type Object interface {
	Invoke(ctx context.Context, operation string, payload []byte) ([]byte, error)
	Close(ctx context.Context) error
	MemoryUsageBytes() int
	Snapshot(ctx context.Context, w io.Writer) error
	SnapshotIncremental(
		ctx context.Context,
		prev []byte,
		w io.Writer,
	) error
	Hydrate(ctx context.Context, r io.Reader, readerSize int) error
}

type OperationLogger

type OperationLogger func(operation string, payload []byte)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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