config

package
v0.0.0-...-1de5769 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: MIT Imports: 4 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 {
	// Where the server listens
	ListenURL string

	// Where the server stores data
	PhotosDirectory string
	WebDirectory    string

	// Where the pusher should expect to find the server
	ServerURL string

	// How often the Pusher should check for new photos on the camera
	RefreshInterval time.Duration

	// How long the Pusher can take to transfer a photo
	UploadTimeout time.Duration

	// Server/Pusher authentication
	AuthUsername string
	AuthPassword string
}

Config contains Hotshots configuration.

func New

func New() (*Config, error)

New reads from the environment to determine the configuration.

func (*Config) ConfFolder

func (c *Config) ConfFolder() string

func (*Config) ImgFolder

func (c *Config) ImgFolder() string

func (*Config) StormFile

func (c *Config) StormFile() string

Jump to

Keyboard shortcuts

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