milestone

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package milestone implements the transformation of FixFor data into a usable form. The data is very unpredicaable with empty strings and nulls for various elements and omitempty does not seem to help solve this issue when the values in the element needs to be parsed (int, bool, time.Time). Because of this unresolved issue all the FixFor are strings until I can see if the issue is my code or is a bug.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListMilestone

func ListMilestone(token string, root *url.URL) map[int]FixFor

ListMilestone collects the milestones (FixFors) which contain all the sStartNotes, in one request & response

Types

type FixFor

type FixFor struct {
	FixForID         int    `xml:"ixFixFor,omitempty"`
	FixFor           string `xml:"sFixFor"`
	Deleted          string `xml:"fDeleted"`
	Created          string `xml:"dt"`         // UTC Date using string these dates are empty
	StartDate        string `xml:"dtStart"`    // UTC Date using string
	StartNote        string `xml:"sStartNote"` // this is the one field we need
	ProjectID        string `xml:"ixProject,omitempty"`
	Project          string `xml:"sProject"`
	FixForDependency string `xml:"setixFixForDependency"`
	ReallyDeleted    string `xml:"fReallyDeleted,omitempty"`
}

FixFor holds the metadata about a Milestone.

type FixFors

type FixFors struct {
	XMLName xml.Name `xml:"fixfors"`
	FixFor  []FixFor `xml:"fixfor"`
}

FixFors holds the count of cases and the cases.

type Response

type Response struct {
	XMLName xml.Name `xml:"response"`
	FixFors FixFors
}

Response contains the array of intervals.

Jump to

Keyboard shortcuts

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