app

package
v0.0.0-...-bdb1de1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Contains log related stuff.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Name is the name of the application
	Name = "kraul"

	// CfgFilename is the name of the configuration file for the application.
	CfgFilename = "cfg.toml"
)
View Source
var (
	CfgLog         = "log"
	DefaultLogFile = "/var/log/kraul.log"
)

Variables for configuration entries, or just hard code them.

View Source
var Cfg = contour.AppCfg()

Cfg is the Application cfg, or just call contour's functions.

Functions

func DisableLog

func DisableLog()

DisableLog disables all package output

func Index

func Index(startUrl string) (string, error)

Index indexes the site at the starturl. URLs not in the startUrl domain are not crawled

func SetCfg

func SetCfg() error

SetCfg initialized the application's configuration. When the config is has been initialized, the preset-enivronment variables, application defaults, and your application's configuration file, should it have one, will all be merged according to the setting properties.

After this, only overrides can occur via command flags.

func SetLogging

func SetLogging() error

SetLog sets up logging, if it is enabled to stdout. At this point, the only overrides to logging will occur with CLI args. If the CLI args have any logging related flags, those will be processed and logging will be updated.

Types

This section is empty.

Jump to

Keyboard shortcuts

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