reader

package
v2.0.0-...-c87de9c Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package reader parses change sets and provides config values

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(o *Options)

func WithSourceEncoder

func WithSourceEncoder(e codec.Coder) Option

func WithTargetEncoder

func WithTargetEncoder(e codec.Coder) Option

type Options

type Options struct {
	TargetEncoder  codec.Coder
	SourceEncoders map[string]codec.Coder
}

type Reader

type Reader interface {
	Merge(...*source.ChangeSet) (*source.ChangeSet, error) // merge multi to one
}

Reader is an interface for merging change sets

func NewReader

func NewReader(opts ...Option) Reader

NewReader creates a coder reader

Jump to

Keyboard shortcuts

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