dmawatcher

package module
v0.0.0-...-8e727c5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 License: MIT Imports: 10 Imported by: 0

README

dma-watcher

Build

make build

Configure

Before running this project on your local development environment, you need to configure the credentials that dma-watcher uses to connect to the database.

dma-watcher reads the connection string from the environment variable DATABASE_URL, so you need to export it in the following way

export DATABASE_URL="postgresql://postgres:password@localhost:5432/data"

To run a PostgreSQL database locally, you can leverage the docker-compose file, which defines a service called DB. To spin up a new instance, make sure that your Docker daemon is running and run the following command:

make start-db

Run (in your local environment)

make run-local

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartWatcher

func StartWatcher()

Types

type AppConfig

type AppConfig struct {
	Watcher WatcherConfig `yaml:"watcher"`
}

type WatcherConfig

type WatcherConfig struct {
	Path            string `yaml:"path"`
	RegexFilterHook string `yaml:"regexFilterHook"`
}

type WeatherDataStore

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

func NewWeatherDataStore

func NewWeatherDataStore() (*WeatherDataStore, error)

Directories

Path Synopsis
cmd
dma-watcher command

Jump to

Keyboard shortcuts

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