structs

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	StreetAddress   string `json:"streetAddress,omitempty"`
	ExtendedAddress string `json:"extendedAddress,omitempty"`
	Locality        string `json:"Locality,omitempty"`
	Region          string `json:"Region,omitempty"`
	PostalCode      string `json:"Postal_code,omitempty"`
}

type Brewery

type Brewery struct {
	ID             string `json:"id,omitempty"`
	Name           string `json:"name,omitempty"`
	Description    string `json:"description,omitempty"`
	Website        string `json:"website,omitempty"`
	Established    string `json:"established,omitempty"`
	MailingListURL string `json:"mailingListUrl,omitempty"`
	IsOrganic      bool   `json:"isOrganic,omitempty"`
	Images         Images `json:"images,omitempty"`
}

type Images

type Images struct {
	Medium string
	Large  string
	Icon   string
}

type LatLng

type LatLng struct {
	Lat float64 `json:"latitude,omitempty"`
	Lng float64 `json:"longitude,omitempty"`
}

type Location

type Location struct {
	Address `json:"address,omitempty"`
	LatLng  `json:"lat_lng,omitempty"`

	ID                       string       `json:"id,omitempty"`
	Name                     string       `json:"name,omitempty"`
	Phone                    string       `json:"phone,omitempty"`
	IsPrimary                bool         `json:"isPrimary,omitempty"`
	InPlanning               bool         `json:"inPlanning,omitempty"`
	IsClosed                 bool         `json:"isClosed,omitempty"`
	OpenToPublic             bool         `json:"openToPublic,omitempty"`
	HoursOfOperation         interface{}  `json:"hoursOfOperation,omitempty"`
	HoursOfOperationExplicit interface{}  `json:"hoursOfOperation_explicit,omitempty"`
	HoursOfOperationNotes    string       `json:"hoursOfOperation_notes,omitempty"`
	TourInfo                 string       `json:"tourInfo,omitempty"`
	LocationType             LocationType `json:"locationType,omitempty"`
	LocationTypeDisplay      string       `json:"locationType_display,omitempty"`
	CountryIsoCode           string       `json:"countryIsoCode,omitempty"`
	YearOpened               string       `json:"yearOpened,omitempty"`
	BreweryID                string       `json:"breweryId,omitempty"`
	Brewery                  Brewery      `json:"brewery,omitempty"`
}

type LocationType

type LocationType string
const (
	Micro      LocationType = "micro"
	Macro      LocationType = "macro"
	Nano       LocationType = "nano"
	PrewPub    LocationType = "prewpub"
	Office     LocationType = "office"
	Production LocationType = "production"
	Tasting    LocationType = "office"
	Restaraunt LocationType = "restaurant"
	Cidery     LocationType = "cidery"
	Meadery    LocationType = "meadery"
)

Jump to

Keyboard shortcuts

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