app

package
v0.0.0-...-ddc7402 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidOptions = errors.New("Invalid options arguments")
)

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App represents the application struct.

func NewApp

func NewApp(opts *Options) (*App, error)

NewApp creates a new application.

func (*App) Config

func (a *App) Config() config.Config

Config returns application config.

func (*App) Host

func (a *App) Host() string

Host returns the application host.

func (*App) Repository

func (a *App) Repository() repository.Repository

Repository returns application repository.

func (*App) URL

func (a *App) URL() string

URL returns the url to the application.

type Options

type Options struct {
	Config     config.Config
	Repository repository.Repository
}

Options represents the application options.

Jump to

Keyboard shortcuts

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