zefix

package
v0.0.0-...-116e6c7 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(dsn string) (*Client, error)

func (*Client) FindCompany

func (c *Client) FindCompany(name string) (*Company, error)

func (*Client) Import

func (c *Client) Import(file string) error

Import takes a .json file returned from a SPARQL query to the Zefix API and imports it into the database

func (*Client) Ping

func (c *Client) Ping() error

type Company

type Company struct {
	LegalName string `gorm:"primaryKey,index:idx_legaln_name" json:"legalName"`
	Name      string `gorm:"index:idx_legaln_name" json:"name"`
	Uri       string `json:"uri"`
	Locality  string `json:"locality"`
	Type      string `gorm:"index" json:"type"`
	Address   string `json:"address"`
}

Jump to

Keyboard shortcuts

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