config

package
v0.0.0-...-2c8718e Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTable

func ParseTable(tables string) (s Source, t Target, err error)

Types

type Config

type Config struct {
	LogLevel string

	NatsURI       string
	NatsNamespace string
	DbURI         string
	DbNamespace   string
	SnapMode      string
}

func Get

func Get(c *cli.Context) Config

type SnapMode

type SnapMode string
const Clean SnapMode = "clean"
const Upsert SnapMode = "upsert"

func DefaultSnapOption

func DefaultSnapOption() SnapMode

func ValidSnapOptions

func ValidSnapOptions() []SnapMode

type Source

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

func ParseSource

func ParseSource(tables string) (s Source, err error)

func (Source) DB

func (s Source) DB() string

func (Source) Name

func (s Source) Name() string

func (Source) String

func (s Source) String() string

type Target

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

func ParseTarget

func ParseTarget(tables string) (t Target, err error)

func (Target) NS

func (t Target) NS() string

func (Target) Name

func (t Target) Name() string

func (Target) String

func (t Target) String() string

func (Target) Table

func (t Target) Table() string

Jump to

Keyboard shortcuts

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