app

package
v0.0.0-...-7888f86 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package app is the entry point for the py-reminders application

Copyright 2015-2019 VMware, Inc. All Rights Reserved. Author: Tom Hite (thite@vmware.com)

SPDX-License-Identifier: https://spdx.org/licenses/MIT.html

Copyright 2015-2019 VMware, Inc. All Rights Reserved. Author: Tom Hite (thite@vmware.com)

SPDX-License-Identifier: https://spdx.org/licenses/MIT.html

Copyright 2015-2019 VMware, Inc. All Rights Reserved. Author: Tom Hite (thite@vmware.com)

SPDX-License-Identifier: https://spdx.org/licenses/MIT.html

Index

Constants

View Source
const (
	APIBaseUrlDefault = "http://127.0.0.1:8080"
	APIBaseUrlUsage   = "set the base url for internal REST api calls"
)

Variables

View Source
var (
	ListenPort  int
	Port        int
	Host        string
	Admin       string
	Passwd      string
	DBName      string
	DBType      string
	ContentRoot string
	CfgType     string
	CfgSrc      string
	CfgSrcExtra string
	Insecure    bool
	APIBaseUrl  string
	VHost       string
	Stats       stats.Stats = stats.New()
)

Global application context variables.

Functions

func Init

func Init()

Process application (command line) flags.

func RealMain

func RealMain() int

Called by main, which is just a wrapper for this function. The reason is main can't directly pass back a return code to the OS.

Types

This section is empty.

Jump to

Keyboard shortcuts

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