config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Direct = "direct"
View Source
const Indirect = "indirect"

Variables

This section is empty.

Functions

func TimeBasedSuffix

func TimeBasedSuffix() string

TimeBasedSuffix returns a string representation for a duration in microseconds since 2020-01-01 00:00:00 (1577836800 s since JAN 01 1970 UTC)

Types

type Config

type Config struct {
	Dest         string             `yaml:"Dest"`
	TransientDb  string             `yaml:"TransientDb"`
	JournalTable string             `yaml:"JournalTable"`
	Connection   *config.Connection `yaml:"Connection"`
	CreateDDLURL string             `yaml:"CreateDDLURL"`
	CreateDDL    string
	UseInsertAPI bool

	Mode              string
	ConnectionJn      *config.Connection
	OnDuplicateKeySql string
	BatchSize         int
	// contains filtered or unexported fields
}

func NewConfigFromURL

func NewConfigFromURL(ctx context.Context, URL string) (*Config, error)

func (*Config) Clone

func (c *Config) Clone() *Config

func (*Config) SetSuffix

func (c *Config) SetSuffix(suffix Suffix)

func (*Config) Suffix

func (c *Config) Suffix() Suffix

func (*Config) TransientTable

func (c *Config) TransientTable() string

func (*Config) Validate

func (c *Config) Validate() error

type Suffix

type Suffix func() string

Jump to

Keyboard shortcuts

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