Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AtomAuthor ¶
type AtomAuthor struct { XMLName xml.Name `xml:"author"` AtomPerson }
type AtomContent ¶
type AtomEntry ¶
type AtomEntry struct { XMLName xml.Name `xml:"entry"` Xmlns string `xml:"xmlns,attr,omitempty"` Title string `xml:"title"` // required Links []AtomLink Updated string `xml:"updated"` // required Id string `xml:"id"` // required Content *AtomContent Summary *AtomSummary // required if content has src or content is base64 }
type AtomFeed ¶
type AtomFeed struct { XMLName xml.Name `xml:"feed"` Xmlns string `xml:"xmlns,attr"` Title string `xml:"title"` // required Link []AtomLink Updated string `xml:"updated"` // required Id string `xml:"id"` // required Author *AtomAuthor `xml:"author,omitempty"` Generator *AtomGenerator `xml:"generator,omitempty"` Entries []*AtomEntry `xml:"entry"` }
type AtomGenerator ¶
type AtomLink ¶
type AtomLink struct { //Atom 1.0 <link rel="enclosure" title="MP3" href="http://www.example.org/myaudiofile.mp3" /> XMLName xml.Name `xml:"link"` Href string `xml:"href,attr"` Rel string `xml:"rel,attr,omitempty"` }
type AtomPerson ¶
type AtomSummary ¶
type AtomXmlGenerator ¶
type AtomXmlGenerator struct{}
func (*AtomXmlGenerator) Generate ¶
func (a *AtomXmlGenerator) Generate(f Feed) interface{}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewDocumentAPIServer ¶
func NewDocumentAPIServer(ctrl controller.Controller) *Server
type XmlGenerator ¶
type XmlGenerator interface {
Generate(f Feed) interface{}
}
func NewAtomGenerator ¶
func NewAtomGenerator() XmlGenerator
Click to show internal directories.
Click to hide internal directories.