markets

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx context.Context, oauth2 *clientcredentials.Config, overrideSvr ...string) (*clients.Client[Market], error)

Types

type Location

type Location struct {
	City    string `json:"city,omitempty"`
	Country string `json:"country,omitempty"`
	State   string `json:"state,omitempty"`
}

type Market

type Market struct {
	ID                        string                           `json:"marketID"`
	CoreBasedStatisticalAreas []MarketCoreBasedStatisticalArea `json:"coreBasedStatisticalAreas,omitempty" bson:"coreBasedStatisticalAreas,omitempty"`
	Code                      string                           `json:"code"`
	CreatedAt                 time.Time                        `json:"createdAt"`
	DesignatedMarketAreas     []MarketDesignatedMarketArea     `json:"designatedMarketAreas,omitempty" bson:"designatedMarketAreas,omitempty"`
	ExternalIDs               []string                         `json:"externalIDs,omitempty"`
	Location                  Location                         `json:"location,omitempty"`
	Name                      string                           `json:"name"`
	Timezone                  string                           `json:"timezone,omitempty"`
	UpdatedAt                 time.Time                        `json:"updatedAt"`
}

type MarketCoreBasedStatisticalArea added in v0.2.1

type MarketCoreBasedStatisticalArea struct {
	Code string `json:"code,omitempty" bson:"code,omitempty"`
	Name string `json:"name,omitempty" bson:"name,omitempty"`
}

type MarketDesignatedMarketArea added in v0.2.1

type MarketDesignatedMarketArea struct {
	Code string `json:"code,omitempty" bson:"code,omitempty"`
	Name string `json:"name,omitempty" bson:"name,omitempty"`
}

Jump to

Keyboard shortcuts

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