s3

package
v1.91.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: MIT Imports: 12 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 interface {
	GetConceptAndTransactionID(ctx context.Context, UUID string) (bool, Concept, string, error)
	Healthcheck() fthealth.Check
}

func NewClient

func NewClient(bucketName string, awsRegion string) (Client, error)

type Concept

type Concept struct {
	// Required fields
	UUID      string `json:"uuid,omitempty"`
	Type      string `json:"type,omitempty"`
	PrefLabel string `json:"prefLabel,omitempty"`
	Authority string `json:"authority,omitempty"`
	AuthValue string `json:"authorityValue,omitempty"`
	// Additional fields
	Aliases           []string `json:"aliases,omitempty"`
	ParentUUIDs       []string `json:"parentUUIDs,omitempty"`
	BroaderUUIDs      []string `json:"broaderUUIDs,omitempty"`
	RelatedUUIDs      []string `json:"relatedUUIDs,omitempty"`
	SupersededByUUIDs []string `json:"supersededByUUIDs,omitempty"`
	ImpliedByUUIDs    []string `json:"impliedByUUIDs,omitempty"`
	DescriptionXML    string   `json:"descriptionXML,omitempty"`
	ImageURL          string   `json:"_imageUrl,omitempty"`
	EmailAddress      string   `json:"emailAddress,omitempty"`
	FacebookPage      string   `json:"facebookPage,omitempty"`
	TwitterHandle     string   `json:"twitterHandle,omitempty"`
	ScopeNote         string   `json:"scopeNote,omitempty"`
	ShortLabel        string   `json:"shortLabel,omitempty"`
	// Brand
	Strapline string `json:"strapline,omitempty"`
	// Person
	Salutation string `json:"salutation,omitempty"`
	BirthYear  int    `json:"birthYear,omitempty"`
	// Financial Instrument
	FigiCode string `json:"figiCode,omitempty"`
	IssuedBy string `json:"issuedBy,omitempty"`
	// Membership
	InceptionDate    string           `json:"inceptionDate,omitempty"`
	MembershipRoles  []MembershipRole `json:"membershipRoles,omitempty"`
	OrganisationUUID string           `json:"organisationUUID,omitempty"`
	PersonUUID       string           `json:"personUUID,omitempty"`
	TerminationDate  string           `json:"terminationDate,omitempty"`
	// Organisation
	CountryCode                string   `json:"countryCode,omitempty"`
	CountryOfRisk              string   `json:"countryOfRisk,omitempty"`
	CountryOfIncorporation     string   `json:"countryOfIncorporation,omitempty"`
	CountryOfOperations        string   `json:"countryOfOperations,omitempty"`
	CountryOfRiskUUID          string   `json:"countryOfRiskUUID,omitempty"`
	CountryOfIncorporationUUID string   `json:"countryOfIncorporationUUID,omitempty"`
	CountryOfOperationsUUID    string   `json:"countryOfOperationsUUID,omitempty"`
	FormerNames                []string `json:"formerNames,omitempty"`
	TradeNames                 []string `json:"tradeNames,omitempty"`
	LeiCode                    string   `json:"leiCode,omitempty"`
	ParentOrganisation         string   `json:"parentOrganisation,omitempty"`
	PostalCode                 string   `json:"postalCode,omitempty"`
	ProperName                 string   `json:"properName,omitempty"`
	ShortName                  string   `json:"shortName,omitempty"`
	YearFounded                int      `json:"yearFounded,omitempty"`
	IsDeprecated               bool     `json:"isDeprecated,omitempty"`
	// Location
	ISO31661 string `json:"iso31661,omitempty"`
}

type ConceptClient

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

func (*ConceptClient) GetConceptAndTransactionID

func (c *ConceptClient) GetConceptAndTransactionID(ctx context.Context, UUID string) (bool, Concept, string, error)

func (*ConceptClient) Healthcheck

func (c *ConceptClient) Healthcheck() fthealth.Check

type MembershipRole

type MembershipRole struct {
	RoleUUID        string `json:"membershipRoleUUID,omitempty"`
	InceptionDate   string `json:"inceptionDate,omitempty"`
	TerminationDate string `json:"terminationDate,omitempty"`
}

Jump to

Keyboard shortcuts

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