cfg

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2015 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package cfg is a general configuration methods for ws.go

@author R. S. Doiel, <rsdoiel@gmail.com> copyright (c) 2015 all rights reserved. Released under the Simplified BSD License. See: http://opensource.org/licenses/BSD-2-Clause

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitProject

func InitProject() error

InitProject initializes a basic project structure (e.g. creates static, dynamic, README.md, etc/config.sh)

Types

type Cfg

type Cfg struct {
	Username string
	Hostname string
	Port     int
	UseTLS   bool
	Docroot  string
	Cert     string
	Key      string
	Otto     bool
	OttoPath string
}

Cfg is an application's configuration - who started the process, port assignment configuration settings, etc.

func Configure

func Configure(docroot string, hostname string, port int, useTLS bool, cert string, key string, otto bool, ottoPath string) (*Cfg, error)

Configure an application.

Jump to

Keyboard shortcuts

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