people

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: 6 Imported by: 0

Documentation

Overview

Package people implements some I/O utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListPeople

func ListPeople(token string, root *url.URL) map[int]Person

ListPeople lists all of the users in FogBugz and return a map of Person. Using a map allows us to searches to find the person by the ixPersonID For example, interval.go has a reference only to ixPersonID.

Types

type People

type People struct {
	XMLName xml.Name `xml:"people"`
	Person  []Person `xml:"person"`
}

People holds the list of persons.

type Person

type Person struct {
	PersonID           int       `xml:"ixPerson"`
	FullName           string    `xml:"sFullName"`
	Email              string    `xml:"sEmail"`
	Phone              string    `xml:"sPhone"`
	Administrator      bool      `xml:"fAdministrator"`
	Community          bool      `xml:"fCommunity"`
	Virtual            bool      `xml:"fVirtual"`
	Deleted            bool      `xml:"fDeleted"`
	Notify             bool      `xml:"fNotify"`
	Homepage           string    `xml:"sHomepage"`
	Locale             string    `xml:"sLocale"`
	Language           string    `xml:"sLanguage"`
	TimeZoneKey        string    `xml:"sTimeZoneKey"`
	LDAPUid            string    `xml:"sLDAPUid"`
	LastActivity       time.Time `xml:"dtLastActivity"` // UTC Date
	RecurseBugChildren bool      `xml:"fRecurseBugChildren"`
	PaletteExpanded    bool      `xml:"fPaletteExpanded"`
	BugWorkingOnID     int       `xml:"ixBugWorkingOn"`
	From               string    `xml:"sFrom"`
}

Person holds the users metadata in the FogBugz Application.

type Response

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

Response holds the People list.

Jump to

Keyboard shortcuts

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