Documentation ¶
Index ¶
- Constants
- func NewController(addr, extAddr string, cert *tls.Certificate, gndurl *url.URL, ...) (*controller, error)
- func NewGNDService(httpClient *http.Client, baseURL *url.URL) *gnd
- func NewResultMessage(ctx *gin.Context, status int, err error)
- type Conference
- type ConferenceResult
- type Corporate
- type CorporateResult
- type Family
- type FamilyResult
- type Geo
- type GeoResult
- type HTTPResultMessage
- type Person
- type PersonResult
- type ShutdownService
- type Title
- type TitleResult
- type Topic
- type TopicResult
Constants ¶
View Source
const BASEPATH = "/api/v1"
Variables ¶
This section is empty.
Functions ¶
func NewController ¶
func NewGNDService ¶
NewGNDService returns a new GND service
Types ¶
type Conference ¶
type Conference struct { Name string `json:"namePart"` Date string `json:"date,omitempty"` Description []string `json:"description,omitempty"` Role []string `json:"role,omitempty"` Identifier string `json:"identifier,omitempty"` Level string `json:"level,omitempty"` Type []string `json:"entityType,omitempty"` UseFor []string `json:"useFor,omitempty"` Variant []string `json:"variant,omitempty"` OtherId []string `json:"otherIdentifier,omitempty"` }
type ConferenceResult ¶
type ConferenceResult map[string]Conference
type Corporate ¶
type Corporate struct { Name string `json:"namePart"` Description []string `json:"description,omitempty"` Role []string `json:"role,omitempty"` Identifier string `json:"identifier,omitempty"` Level string `json:"level,omitempty"` UseFor []string `json:"useFor,omitempty"` Type []string `json:"entityType,omitempty"` Variant []string `json:"variant,omitempty"` Related []string `json:"related,omitempty"` OtherId []string `json:"otherIdentifier,omitempty"` Place []string `json:"placeOfBusiness,omitempty"` }
type CorporateResult ¶
type Family ¶
type Family struct { Name string `json:"namePart"` Date string `json:"date,omitempty"` Role []string `json:"role,omitempty"` Identifier string `json:"identifier,omitempty"` Level string `json:"level,omitempty"` Type []string `json:"entityType,omitempty"` UseFor []string `json:"useFor,omitempty"` Variant []string `json:"variant,omitempty"` OtherId []string `json:"otherIdentifier,omitempty"` }
type FamilyResult ¶
type Geo ¶
type Geo struct { Name string `json:"namePart"` Description []string `json:"description,omitempty"` Role []string `json:"role,omitempty"` Identifier string `json:"identifier,omitempty"` Level string `json:"level,omitempty"` Type []string `json:"entityType,omitempty"` UseFor []string `json:"useFor,omitempty"` Variant []string `json:"variant,omitempty"` Related []string `json:"related,omitempty"` Coordinates []gndGeoCoordinates `json:"coordinates,omitempty"` GeoNamesId []string `json:"geoNamesId,omitempty"` OtherId []string `json:"otherIdentifier,omitempty"` }
type HTTPResultMessage ¶
type Person ¶
type Person struct { Name string `json:"namePart"` Date string `json:"date,omitempty"` Role []string `json:"role,omitempty"` Identifier string `json:"identifier,omitempty"` Level string `json:"level,omitempty"` Type []string `json:"entityType,omitempty"` UseFor []string `json:"useFor,omitempty"` Variant []string `json:"variant,omitempty"` Gender string `json:"gender,omitempty"` Related []string `json:"related,omitempty"` OtherId []string `json:"otherIdentifier,omitempty"` PlaceBirth []string `json:"placeOfBirth,omitempty"` PlaceActivity []string `json:"placeOfActivity,omitempty"` Profession []string `json:"profession,omitempty"` }
type PersonResult ¶
type ShutdownService ¶
type ShutdownService interface { Stop() GracefulStop() }
type Title ¶
type Title struct { Name string `json:"name,omitempty"` Identifier string `json:"identifier,omitempty"` Title string `json:"title"` Level string `json:"level,omitempty"` Type []string `json:"entityType,omitempty"` UseFor []string `json:"useFor,omitempty"` Variant []string `json:"variant,omitempty"` OtherId []string `json:"otherIdentifier,omitempty"` }
type TitleResult ¶
type Topic ¶
type Topic struct { Label string `json:"label"` Identifier string `json:"identifier,omitempty"` Level string `json:"level,omitempty"` Type []string `json:"entityType,omitempty"` UseFor []string `json:"useFor,omitempty"` Variant []string `json:"variant,omitempty"` Mapped []string `json:"mapped,omitempty"` OtherId []string `json:"otherIdentifier,omitempty"` }
type TopicResult ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.