config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2016 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ProgramName = "limo"

ProgramName is the program name

View Source
const Version = "0.4.0"

Version is the semver-compliant program version

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DatabasePath string                    `yaml:"databasePath"`
	IndexPath    string                    `yaml:"indexPath"`
	Services     map[string]*ServiceConfig `yaml:"services"`
}

Config contains configuration information

func ReadConfig

func ReadConfig() (*Config, error)

ReadConfig reads the configuration information

func (*Config) GetService

func (config *Config) GetService(name string) *ServiceConfig

GetService returns the configuration information for a service

func (*Config) WriteConfig

func (config *Config) WriteConfig() error

WriteConfig writes the configuration information

type ServiceConfig

type ServiceConfig struct {
	Token string
}

ServiceConfig contains configuration information for a service

Jump to

Keyboard shortcuts

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