source

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeSet

type ChangeSet struct {
	Data     []byte
	CheckSum string
	Format   string
	//Source    string
	Timestamp time.Time
}

存放数据

func (*ChangeSet) Sum

func (cs *ChangeSet) Sum() string

type Option

type Option func(*Options)

func WithEncoder

func WithEncoder(e encoder.Encoder) Option

type Options

type Options struct {
	Encoder encoder.Encoder
	Context context.Context
}

func NewOptions

func NewOptions(opts ...Option) Options

type Source

type Source interface {
	Read() (*ChangeSet, error)
	Write(*ChangeSet) (*ChangeSet, error)
	Watcher() (Watcher, error)
	Path() string
}

type Watcher

type Watcher interface {
	Next() (*ChangeSet, error)
	Stop() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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