bridge

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bridge

type Bridge struct {
	Cfg Config
	// contains filtered or unexported fields
}

func New

func New(log *logrus.Logger, conf *Config) *Bridge

func (*Bridge) ServeMetrics

func (b *Bridge) ServeMetrics(ctx context.Context) error

func (*Bridge) Start

func (b *Bridge) Start(ctx context.Context) error

type Config

type Config struct {
	LoggingLevel string        `yaml:"logging" default:"info"`
	MetricsAddr  string        `yaml:"metricsAddr" default:":9090"`
	Source       source.Config `yaml:"source"`
	Target       target.Config `yaml:"target"`
}

func (*Config) Validate

func (c *Config) Validate() error

type Metrics

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

func NewMetrics

func NewMetrics(namespace string) *Metrics

func (*Metrics) AddTransactions

func (m *Metrics) AddTransactions(count int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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