Documentation ¶
Index ¶
- type Catalogue
- type CatalogueCollection
- type CataloguesResult
- type Collection
- func (c *Collection) GetDate() string
- func (c *Collection) GetId() int64
- func (c *Collection) GetInst() string
- func (c *Collection) GetInstitution() (*Institution, error)
- func (c *Collection) GetInstitutionID() int64
- func (c *Collection) GetTagIDs() []int64
- func (c *Collection) GetTags() ([]*Tag, error)
- func (c *Collection) GetTitle() string
- func (c *Collection) GetUrl() string
- type CollectionTag
- type CollectionsResult
- type Directus
- func (d *Directus) GetCatalogue(id int64) (*Catalogue, error)
- func (d *Directus) GetCatalogues() ([]*Catalogue, error)
- func (d *Directus) GetCollection(id int64) (*Collection, error)
- func (d *Directus) GetCollections() ([]*Collection, error)
- func (d *Directus) GetCollectionsByInstitution(institution int64) ([]*Collection, error)
- func (d *Directus) GetCollectionsByTags(tags []int64) ([]*Collection, error)
- func (d *Directus) GetInstitution(id int64) (*Institution, error)
- func (d *Directus) GetInstitutions() ([]*Institution, error)
- func (d *Directus) GetLocation(id int64) (*Location, error)
- func (d *Directus) GetLocations() ([]*Location, error)
- func (d *Directus) GetNews() ([]*News, error)
- func (d *Directus) GetNewsByInstitution(institution int64) ([]*News, error)
- func (d *Directus) GetPageByName(name string) (*Page, error)
- func (d *Directus) GetPages() ([]*Page, error)
- func (d *Directus) GetTag(id int64) (*Tag, error)
- func (d *Directus) GetTagList(ids []int64) ([]*Tag, error)
- func (d *Directus) GetTags() ([]*Tag, error)
- type Error
- type Institution
- type InstitutionsResult
- type Location
- type LocationsResult
- type News
- type NewsResult
- type NewsType
- type Page
- type PageResult
- type Tag
- type TagsResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CatalogueCollection ¶ added in v2.0.1
type CataloguesResult ¶ added in v2.0.1
type Collection ¶
type Collection struct { Id int64 `json:"id,omitempty"` Status string `json:"status,omitempty"` Sort int64 `json:"sort,omitempty"` DateCreated string `json:"date_created,omitempty"` DateUpdated string `json:"date_updated,omitempty"` Title string `json:"title,omitempty"` Image string `json:"image,omitempty"` Description string `json:"description,omitempty"` Institution int64 `json:"institution,omitempty"` Url string `json:"url,omitempty"` Hinweis string `json:"hinweis,omitempty"` Tags []CollectionTag `json:"tags,omitempty"` Identifier string `json:"identifier,omitempty"` // contains filtered or unexported fields }
func (*Collection) GetDate ¶ added in v2.0.1
func (c *Collection) GetDate() string
func (*Collection) GetId ¶ added in v2.0.1
func (c *Collection) GetId() int64
func (*Collection) GetInst ¶ added in v2.0.1
func (c *Collection) GetInst() string
func (*Collection) GetInstitution ¶ added in v2.0.1
func (c *Collection) GetInstitution() (*Institution, error)
func (*Collection) GetInstitutionID ¶ added in v2.0.1
func (c *Collection) GetInstitutionID() int64
func (*Collection) GetTagIDs ¶ added in v2.0.1
func (c *Collection) GetTagIDs() []int64
func (*Collection) GetTags ¶
func (c *Collection) GetTags() ([]*Tag, error)
func (*Collection) GetTitle ¶ added in v2.0.1
func (c *Collection) GetTitle() string
func (*Collection) GetUrl ¶ added in v2.0.1
func (c *Collection) GetUrl() string
type CollectionTag ¶ added in v2.0.1
type CollectionsResult ¶
type CollectionsResult struct { Data []*Collection `json:"data,omitempty"` Errors []*Error `json:"errors"` }
type Directus ¶
type Directus struct {
// contains filtered or unexported fields
}
func (*Directus) GetCatalogue ¶ added in v2.0.1
func (*Directus) GetCatalogues ¶ added in v2.0.1
func (*Directus) GetCollection ¶
func (d *Directus) GetCollection(id int64) (*Collection, error)
func (*Directus) GetCollections ¶
func (d *Directus) GetCollections() ([]*Collection, error)
func (*Directus) GetCollectionsByInstitution ¶ added in v2.0.1
func (d *Directus) GetCollectionsByInstitution(institution int64) ([]*Collection, error)
func (*Directus) GetCollectionsByTags ¶ added in v2.0.1
func (d *Directus) GetCollectionsByTags(tags []int64) ([]*Collection, error)
func (*Directus) GetInstitution ¶ added in v2.0.1
func (d *Directus) GetInstitution(id int64) (*Institution, error)
func (*Directus) GetInstitutions ¶ added in v2.0.1
func (d *Directus) GetInstitutions() ([]*Institution, error)
func (*Directus) GetLocation ¶ added in v2.0.1
func (*Directus) GetLocations ¶ added in v2.0.1
func (*Directus) GetNewsByInstitution ¶ added in v2.0.1
func (*Directus) GetPageByName ¶ added in v2.0.1
type Institution ¶ added in v2.0.1
type Institution struct { Id int64 `json:"id"` Key string `json:"key"` Name string `json:"name"` Url string `json:"url"` Location int64 `json:"location"` Contact string `json:"contact"` Email string `json:"email"` Phone string `json:"phone"` Description string `json:"description"` Logo string `json:"logo"` LogoSmall string `json:"logo_small"` Sort int64 `json:"sort"` // contains filtered or unexported fields }
func (*Institution) GetLocation ¶ added in v2.0.1
func (i *Institution) GetLocation() (*Location, error)
type InstitutionsResult ¶ added in v2.0.1
type InstitutionsResult struct { Data []*Institution `json:"data,omitempty"` Errors []*Error `json:"errors"` }
type LocationsResult ¶ added in v2.0.1
type News ¶ added in v2.0.1
type News struct { Id int64 `json:"id,omitempty"` Status string `json:"status,omitempty"` Sort int64 `json:"sort,omitempty"` DateCreated string `json:"date_created,omitempty"` DateUpdated string `json:"date_updated,omitempty"` Title string `json:"title,omitempty"` Image string `json:"image,omitempty"` Text string `json:"text,omitempty"` Start string `json:"start,omitempty"` End string `json:"end,omitempty"` PublishDate string `json:"publish_date,omitempty"` Url string `json:"url,omitempty"` Institution int64 `json:"institution,omitempty"` Type NewsType `json:"type,omitempty"` // contains filtered or unexported fields }
func (*News) GetInstitution ¶ added in v2.0.1
func (n *News) GetInstitution() (*Institution, error)
func (*News) GetInstitutionID ¶ added in v2.0.1
type NewsResult ¶ added in v2.0.1
type Page ¶ added in v2.0.1
type PageResult ¶ added in v2.0.1
type TagsResult ¶
Click to show internal directories.
Click to hide internal directories.