Versions in this module Expand all Collapse all v0 v0.2.0-alpha Aug 9, 2017 v0.1.0 Jul 25, 2017 Changes in this version + const ConfFileName + const DataFileName + const TimeStampLayout + func ImageToBaseString(img image.Image) (string, error) + type App struct + Institutions Institutions + func NewApp(fpath string) (*App, error) + func (a *App) AdminInstitutions(userName string) Institutions + func (a *App) GetArtwork(instID, collID, artwID string) (*Artwork, bool) + func (a *App) GetCollection(instID, collID string) (*Collection, bool) + func (a *App) GetInstitution(instID string) (*Institution, bool) + func (a *App) GetPublishedTimeline(filter string) ([]*Artwork, error) + func (a *App) GetTimeline(filter string) ([]*Artwork, error) + type Artwork struct + Description string + HashTag string + ID string + Name string + Parts []*Part + ShortLink string + Timestamp string + TweetID int64 + URIPath string + func NewArtwork(fpath string, coll *Collection) (*Artwork, error) + func (artw *Artwork) AddPart(p *Part) + func (artw *Artwork) Artpart(p *Part) (image.Image, error) + func (artw *Artwork) Image() (image.Image, error) + func (artw *Artwork) ImgFile() (string, error) + func (artw *Artwork) InstitutionTwitter() string + func (artw *Artwork) IsAdminUser(userName string) bool + func (artw *Artwork) Marshal() ([]byte, error) + func (artw *Artwork) Path() string + func (artw *Artwork) WriteData() error + type Collection struct + Artworks []*Artwork + Description string + ID string + License string + Name string + Order int + func NewCollection(fpath string, inst *Institution) (*Collection, error) + func (coll *Collection) GetArtwork(artwID string) (*Artwork, bool) + type Institution struct + Admins []string + Collections map[string]*Collection + Description string + ID string + License string + Name string + Order int + TwitterName string + func NewInstitution(fpath string) (*Institution, error) + type Institutions []*Institution + type Part struct + Height float64 + MediaID int64 + Text string + TweetID int64 + User string + Width float64 + X float64 + Y float64 + type Timeline []*Artwork + func (tl Timeline) Len() int + func (tl Timeline) Less(i, j int) bool + func (tl Timeline) Swap(i, j int) + type TimelineItem struct + ArtworkName string + ArtworkTimestamp int + CollectionName string + InsitutionName string + type User struct + Email string + TwitterID int64 + TwitterName string