conf

package
v0.0.0-...-c8f6fff Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2014 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseOpts

func ParseOpts()

parses command line options into a UploadthisConfig structure

Types

type ConfigLoader

type ConfigLoader interface {
	LoadConfig(path string, settings interface{})
}

type LoggerConfig

type LoggerConfig interface {
	ConfigLogger(string)
}

type MonitorDir

type MonitorDir struct {
	Path          string
	TimeThreshold int `yaml:"time_threshold"`
	Bucket        string
	PreHooks      []string
	PostHooks     []string
}

type SeeLogConfig

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

func (*SeeLogConfig) ConfigLogger

func (self *SeeLogConfig) ConfigLogger(settingsLogDir string)

type UploadthisConfig

type UploadthisConfig struct {
	Auth struct {
		AccessKey, SecretKey string
	}
	MonitorDirs []MonitorDir
	Logdir      string
}
var Settings UploadthisConfig

type YamlConfigLoader

type YamlConfigLoader struct{}

func (*YamlConfigLoader) LoadConfig

func (self *YamlConfigLoader) LoadConfig(path string, settings interface{})

Jump to

Keyboard shortcuts

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