config

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

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Postgres struct {
		LogReplConnString string `mapstructure:"logrepl_conn_string"`
		Tables            string `mapstructure:"tables"`
	} `mapstructure:"postgres"`
	Peers []PeerConfig `mapstructure:"peers"`
}

func LoadConfig

func LoadConfig(cfgFile string) (*Config, error)

func (*Config) GetPeerConfig

func (c *Config) GetPeerConfig(peerName string) map[string]interface{}

type PeerConfig

type PeerConfig struct {
	Name      string                 `mapstructure:"name"`
	Connector string                 `mapstructure:"connector"`
	Config    map[string]interface{} `mapstructure:"config"`
	Args      map[string]interface{} `mapstructure:"args"`
}

Jump to

Keyboard shortcuts

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