config

package
v0.0.0-...-3ba5003 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(args []string)

Types

type Options

type Options struct {
	S3Bucket              string `env:"UPLOADER_S3_BUCKET" required:"true" short:"a"`
	S3Prefix              string `env:"UPLOADER_S3_PREFIX" required:"true" short:"b"`
	S3Region              string `env:"UPLOADER_S3_REGION" default:"eu-west-1" short:"c"`
	RemotePostgresPass    string `env:"UPLOADER_REMOTE_POSTGRES_PASS" required:"true" short:"d"`
	LocalPostgresPass     string `env:"UPLOADER_LOCAL_POSTGRES_PASS" required:"true" short:"e"`
	Camera                string `env:"UPLOADER_CAMERA" default:"lpr-camera" short:"f"`
	Site                  string `env:"UPLOADER_SITE" default:"lpr-site" short:"g"`
	PlateImageHeight      int    `env:"UPLOADER_PLATE_IMAGE_HEIGHT" default:"60" short:"h"`
	PlateImageQuality     uint   `env:"UPLOADER_PLATE_IMAGE_QUALITY" default:"80" short:"i"`
	FrameImageHeight      int    `env:"UPLOADER_FRAME_IMAGE_HEIGHT" default:"200" short:"j"`
	FrameImageQuality     int    `env:"UPLOADER_FRAME_IMAGE_QUALITY" default:"70" short:"k"`
	EventIntervalTimeSecs int    `env:"UPLOADER_EVENT_INTERVAL_TIME" default:"15" short:"l"`
	FrameDir              string `env:"UPLOADER_FRAME_DIR" default:"./" short:"m"`
	PlateDir              string `env:"UPLOADER_PLATE_DIR" default:"./" short:"n"`
	AccessKey             string `env:"AWS_ACCESS_KEY_ID" required:"true" short:"o"`
	SecretKey             string `env:"AWS_SECRET_ACCESS_KEY" required:"true" short:"p"`
	EventIntervalTime     time.Duration
}

Options describes all the CLI flags that can be passed

var Opts Options

Opts is the application config struct that we allow external access too

Jump to

Keyboard shortcuts

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