sprintly

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2015 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Id = "sprintly"

	DefaultNoReviewTag = "no review"
	DefaultReviewedTag = "reviewed"

	DefaultStagingEnvironment    = "staging"
	DefaultProductionEnvironment = "production"
)

Variables

This section is empty.

Functions

func Factory

func Factory() (common.IssueTracker, error)

Types

type Config

type Config interface {
	ProductId() int
	NoReviewTag() string
	ReviewedTag() string
	StagingEnvironment() string
	ProductionEnvironment() string
	Username() string
	Token() string
}

func LoadConfig

func LoadConfig() (Config, error)

type GlobalConfig

type GlobalConfig struct {
	Sprintly struct {
		Username string `yaml:"username"`
		Token    string `yaml:"token"`
	} `yaml:"sprintly"`
}

type LocalConfig

type LocalConfig struct {
	Sprintly struct {
		ProductId int `yaml:"product_id"`
		Tags      struct {
			NoReviewTag string `yaml:"no_review"`
			ReviewedTag string `yaml:"reviewed"`
		} `yaml:"tags"`
		Environments struct {
			Staging    string `yaml:"staging"`
			Production string `yaml:"production"`
		} `yaml:"environments"`
	} `yaml:"sprintly"`
}

Jump to

Keyboard shortcuts

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