Documentation
¶
Overview ¶
libguides.go implements the data structures for working with with LibGuides exported XML.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Id int `xml:"id" json:"id"` Email string `xml:"email" json:"email"` FirstName string `xml:"first_name" json:"first_name"` LastName string `xml:"last_name" json:"last_name"` Title string `xml:"title" json:"title"` Nickname string `xml:"nickname" json:"nickname"` Signature string `xml:"signature" json:"signature"` Image string `xml:"image" json:"image"` Address string `xml:"address" json:"address"` Phone string `xml:"phone" json:"phone"` Skype string `xml:"skype" json:"skype"` Website string `xml:"website" json:"website"` Created string `xml:"created" json:"created"` Updated string `xml:"updated" json:"updated"` }
type Asset ¶
type Asset struct { Id int `xml:"id" json:"id"` Name string `xml:"name" json:"name"` Type string `xml:"type" json:"type"` // Description contains HTML encoded text, double encoding existing encoded text Description string `xml:"description" json:"descriptoin"` Url string `xml:"url" json:"url"` Owner Owner `xml:"owner" json:"owner"` MapId string `xml:"map_id" json:"map_id"` Position int `xml:"position" json:"position"` Created string `xml:"created" json:"created"` Updated string `xml:"updated" json:"updated"` }
type Box ¶
type Box struct { XMLName xml.Name `xml:"box" json:"box"` Id int `xml:"id" json:"id"` Name string `xml:"name" json:"name"` Type string `xml:"type" json:"type"` MapId string `xml:"map_id" json:"map_id"` Column int `xml:"column" json:"column"` Position int `xml:"position" json:"position"` Hidden int `xml:"hidden" json:"hidden"` Created string `xml:"created" json:"created"` Updated string `xml:"updated" json:"updated"` Assets []*Asset `xml:"assets>asset" json:"assets"` Panes []*Pane `xml:"panes>pane,omitempty" json:"panes,omitempty"` }
type Customer ¶
type Customer struct { XMLName xml.Name `xml:"customer" json:"-"` Id int `xml:"id" json:"id"` Type string `xml:"type" json:"type"` Name string `xml:"name" json:"name"` Url string `xml:"url" json:"url"` City string `xml:"city" json:"city"` State string `xml:"state" json:"state"` Country string `xml:"country" json:"country"` TimeZone string `xml:"time_zone" json:"time_zone"` Created string `xml:"created" json:"created"` Updated string `xml:"updated" json:"updated"` }
type Group ¶
type Group struct { Id int `xml:"id" json:"id"` Type string `xml:"type" json:"type"` Name string `xml:"name" json:"name"` Url string `xml:"url" json:"url"` Description string `xml:"description" json:"description"` Password string `xml:"password" json:"password"` Created string `xml:"created" json:"created"` Updated string `xml:"updated" json:"updated"` }
type Guide ¶
type Guide struct { Id int `xml:"id" json:"id"` Type string `xml:"type" json:"type"` Name string `xml:"name" json:"name"` Description string `xml:"description" json:"descriptoin"` Url string `xml:"url" json:"url"` Owner Owner `xml:"owner" json:"owner"` Group Group `xml:"group" json:"group"` Redirect string `xml:"redirect" json:"redirect"` Status string `xml:"status" json:"status"` Created string `xml:"created" json:"created"` Updated string `xml:"updated" json:"updated"` Modified string `xml:"modified" json:"modified"` Published string `xml:"published" json:"published"` Subjects []*Subject `xml:"subjects>subject" json:"subjects"` Tags []*Tag `xml:"tags>tag" json:"tags"` Pages []*Page `xml:"pages>page" json:"pages"` }
type LibGuides ¶
type LibGuides struct { XMLName xml.Name `json:"-"` Customer *Customer `xml:"customer" json:"customer"` Site *Site `xml:"site" json:"site"` Accounts []*Account `xml:"accounts>account" json:"accounts"` Groups []*Group `xml:"groups>group" json:"groups"` Subjects []*Subject `xml:"subjects>subject" json:"subjects"` Tags []*Tag `xml:"tags>tag" json:"tags"` Vendors []*Vendor `xml:"vendors>vendor" json:"vendors"` Guides []*Guide `xml:"guides>guide" json:"guides"` }
type Page ¶
type Page struct { Id int `xml:"id" json:"id"` Name string `xml:"name" json:"name"` Description string `xml:"description" json:"descriptoin"` Url string `xml:"url" json:"url"` Redirect string `xml:"redirect" json:"redirect"` SourcePageId int `xml:"source_page_id" json:"source_page_id"` ParentPageId int `xml:"parent_page_id" json:"parent_page_id"` Position int `xml:"position" json:"position"` Hidden int `xml:"hidden" json:"hidden"` Created string `xml:"created" json:"created"` Updated string `xml:"updated" json:"updated"` Modified string `xml:"modified" json:"modified"` Boxes []*Box `xml:"boxes>box" json:"boxes"` }
type Site ¶
type Site struct { XMLName xml.Name `xml:"site" json:"-"` Id int `xml:"id" json:"jd"` Type string `xml:"type" json:"type"` Name string `xml:"name" json:"name"` Domain string `xml:"domain" json:"domain"` Admin string `xml:"admin" json:"admin"` Created string `xml:"created" json:"created"` Updated string `xml:"updated" json:"updated"` }
Click to show internal directories.
Click to hide internal directories.