application

package
v0.0.0-...-1e04dac Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2018 License: GPL-3.0 Imports: 17 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// AppAuthor is the app's author.
	AppAuthor = "Gilbert"

	// AppNameSpace is a prefix for the app's name.
	AppNameSpace = "rider/"

	// AppCopyright specifies the app's copyright.
	AppCopyright = "Gilbert and Co"

	// DefaultConfigurationPath specifies the default path of the configuration file.
	DefaultConfigurationPath = "configuration.yml"

	// ConfigurationFlag specifies the path of the configuration file.
	ConfigurationFlag = "RIDER_CONF"

	// DatabaseFlag specifies the postgres URL to an instance.
	DatabaseFlag = "DATABASE_URL"
)
View Source
const (
	Bike    = "bike"
	Trip    = "trip"
	Gateway = "gateway"
)

AppNames for binaries.

Variables

This section is empty.

Functions

func RunBike

func RunBike(args []string, m Metadata) error

RunBike is a wrapper in order to keep the the main function tidy.

func RunGateway

func RunGateway(args []string, m Metadata) error

RunGateway is a wrapper in order to keep the the main function tidy.

func RunTrip

func RunTrip(args []string, m Metadata) error

RunTrip is a wrapper in order to keep the the main function tidy.

Types

type Application

type Application struct {
	*cli.App
}

Application represents the cli application which will run when the binary is run.

type Metadata

type Metadata struct {
	Branch     string `json:"branch"`
	Compiler   string `json:"compiler"`
	CompiledAt string `json:"compiledAt"`
	Sha        string `json:"sha"`
}

Metadata holds build metadatas.

func (Metadata) ToMap

func (m Metadata) ToMap() map[string]interface{}

ToMap returns a map from given metadata.

Jump to

Keyboard shortcuts

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