common

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

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

Go to latest
Published: Apr 19, 2016 License: Apache-2.0 Imports: 12 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExistsHTML

func FileExistsHTML(path string) (bool, string)

func FormTime

func FormTime(field string, r *http.Request) (time.Time, error)

func ResolveSecure

func ResolveSecure(baseDir string, path string) (string, error)

Types

type CmdFlags

type CmdFlags struct {
	Pack    bool
	Unpack  string
	Serve   bool
	Init    bool
	InitDir string
}

func NewCmdFlags

func NewCmdFlags() CmdFlags

func (*CmdFlags) Collect

func (a *CmdFlags) Collect()

func (*CmdFlags) ConfigNeeded

func (a *CmdFlags) ConfigNeeded() bool

func (*CmdFlags) None

func (a *CmdFlags) None() bool

type ConfigAd

type ConfigAd struct {
	Id string
}

func LoadConfigAd

func LoadConfigAd(cl *ConfigLinny) (ConfigAd, error)

func (*ConfigAd) Init

func (c *ConfigAd) Init(cl *ConfigLinny) error

type ConfigLinny

type ConfigLinny struct {
	ContentRoot string
	Measure     ConfigLinnyMeasure
}

func LoadConfigLinny

func LoadConfigLinny() (ConfigLinny, error)

func (*ConfigLinny) Init

func (c *ConfigLinny) Init() error

func (*ConfigLinny) Save

func (c *ConfigLinny) Save()

type ConfigLinnyMeasure

type ConfigLinnyMeasure struct {
	Enabled      bool
	AuthRequired bool
}

Jump to

Keyboard shortcuts

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