Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = &CommonOptions{}
View Source
var Version = "1.0"
Functions ¶
func LoadConfig ¶
func LoadConfig() error
Types ¶
type CommonOptions ¶
type CommonOptions struct { Port int `short:"p" long:"port" description:"Port the service listens on" default:"8080"` Backend string `short:"b" long:"backend" choice:"s3" choice:"filesystem"` S3 S3Options `group:"S3 configuration" namespace:"s3"` FileSystem FileSystemOptions `group:"Filesystem configuration" namespace:"filesystem"` SSLConfig SSLOptions `group:"SSL Configuration" namespace:"ssl"` }
type FileSystemOptions ¶
type FileSystemOptions struct {
BasePath string `long:"basepath" description:"Basepath to store modules"`
}
type Logger ¶
type Logger interface { SetField(name, value string) Debugf(format string, args ...interface{}) Infof(format string, args ...interface{}) Warnf(format string, args ...interface{}) Errorf(format string, args ...interface{}) Debug(args ...interface{}) Info(args ...interface{}) Warn(args ...interface{}) Error(args ...interface{}) }
type RequestScope ¶
func GetRequestScope ¶
func GetRequestScope(c *routing.Context) RequestScope
GetRequestScope returns the RequestScope of the current request.
type SSLOptions ¶
type SSLOptions struct { Certificate string `long:"certificate" description:"Path to the SSL certificate"` Key string `long:"key" description:"Path to the SSL certificate key"` }
func (SSLOptions) IsValid ¶
func (o SSLOptions) IsValid() bool
Click to show internal directories.
Click to hide internal directories.