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: 0

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