gndstructservice

package
v2.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const BASEPATH = "/api/v1"

Variables

This section is empty.

Functions

func NewController

func NewController(addr, extAddr string, cert *tls.Certificate, gndurl *url.URL, client *http.Client) (*controller, error)

func NewGNDService

func NewGNDService(httpClient *http.Client, baseURL *url.URL) *gnd

NewGNDService returns a new GND service

func NewResultMessage

func NewResultMessage(ctx *gin.Context, status int, err error)

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 CorporateResult map[string]Corporate

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 FamilyResult map[string]Family

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 GeoResult

type GeoResult map[string]Geo

type HTTPResultMessage

type HTTPResultMessage struct {
	Code    int    `json:"code" example:"400"`
	Message string `json:"message" example:"status bad request"`
}

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 PersonResult map[string]Person

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 TitleResult map[string]Title

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

type TopicResult map[string]Topic

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL