snapshot

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

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

Go to latest
Published: Oct 2, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoStream = errors.New("no stream type")

Functions

This section is empty.

Types

type Codec

type Codec struct {
	// contains filtered or unexported fields
}

func New

func New() *Codec

func (*Codec) Decode

func (s *Codec) Decode(ctx context.Context, streamType string, b []byte) (es.Stream, error)

func (*Codec) Encode

func (s *Codec) Encode(ctx context.Context, stream es.Stream) ([]byte, error)

func (*Codec) EncodeDecodeFunc

func (s *Codec) EncodeDecodeFunc(streamType string, enc EncodeSnapshotFunc, dec DecodeSnapshotFunc) *Codec

type DecodeSnapshotFunc

type DecodeSnapshotFunc func(ctx context.Context, b []byte) (s es.Stream, err error)

type EncodeSnapshotFunc

type EncodeSnapshotFunc func(ctx context.Context, s es.Stream) (b []byte, err error)

type Snapshot

type Snapshot struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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