syncer

package
v0.0.0-...-1340416 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Project   = "Project"
	Milestone = "Milestone"
	Issue     = "Issue"
	Member    = "Member"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSyncer

type DataSyncer interface {
	Sync(ctx context.Context) error
	SyncProjectToBitable(ctx context.Context, projects []*define.Project) error
	SyncIssueToBitable(ctx context.Context, issues []*define.Issue) error
	// contains filtered or unexported methods
}

type FileWriterFunc

type FileWriterFunc func(filename string, data []byte) error

type MarshalFunc

type MarshalFunc func(*define.Define) ([]byte, error)

type Meta

type Meta interface {
	GetProjectTableID() string
}

type SchemaSyncer

type SchemaSyncer interface {
	SyncSchemaToRemoteBitable(ctx context.Context, def *define.Define) error
	FetchSchemaByRemoteBitable(context context.Context) (*define.Define, error)
	Dump(filename string) error
	WithMarshalFunc(marshal MarshalFunc)
	WithFileWriterFunc(write FileWriterFunc)
}

type Syncer

type Syncer interface {
	DataSyncer
	SchemaSyncer
}

func NewSyncer

func NewSyncer(b bitable.Bitable, g gitlab.Gitlab) Syncer

Jump to

Keyboard shortcuts

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