Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DigikeyClient ¶
type DigikeyClient struct { RemoteHost string // contains filtered or unexported fields }
func NewDigikeyClient ¶
func NewDigikeyClient() *DigikeyClient
func (*DigikeyClient) Close ¶
func (hc *DigikeyClient) Close()
func (*DigikeyClient) QueryWDCall ¶
func (hc *DigikeyClient) QueryWDCall(mpn string) (types.EBOMWebPart, error)
func (*DigikeyClient) QueryWDCall2 ¶
func (hc *DigikeyClient) QueryWDCall2(mpn string) (types.EBOMWebPart, error)
type FindchipsClient ¶
type FindchipsClient struct { RemoteHost string // contains filtered or unexported fields }
func NewFindchipsClient ¶
func NewFindchipsClient() *FindchipsClient
type MouserClient ¶
type MouserClient struct { RemoteHost string // contains filtered or unexported fields }
func NewMouserClient ¶
func NewMouserClient() *MouserClient
type NgDgkData ¶
type NgDgkData struct { Props struct { Browser struct { Name string `json:"name"` Version string `json:"version"` Major string `json:"major"` } `json:"browser"` CorrelationID string `json:"correlationID"` Currency string `json:"currency"` Device struct { } `json:"device"` InterfaceView string `json:"interfaceView"` Lng string `json:"lng"` Session struct { CustomerID int `json:"CustomerId"` CustomerClass int `json:"CustomerClass"` Currency string `json:"Currency"` OrderModel int `json:"OrderModel"` } `json:"session"` ShowInterfaceViewToggle bool `json:"showInterfaceViewToggle"` PageProps struct { Envelope struct { Data struct { PriceQuantity struct { QtyAvailable string `json:"qtyAvailable"` HasLeadTime bool `json:"hasLeadTime"` Pricing []struct { DigikeyProductNumber string `json:"digikeyProductNumber"` ID string `json:"id"` Packaging string `json:"packaging"` PricingTiers []struct { BreakQty string `json:"breakQty"` UnitPrice string `json:"unitPrice"` ExtendedPrice string `json:"extendedPrice"` } `json:"pricingTiers"` } `json:"pricing"` } `json:"priceQuantity"` ProductOverview struct { DigikeyProductNumbers struct { Type string `json:"type"` Value []struct { Label string `json:"label"` Value string `json:"value"` } `json:"value"` } `json:"digikeyProductNumbers"` Suppliers []struct { ID int `json:"id"` Name string `json:"name"` URL string `json:"url"` } `json:"suppliers"` DatasheetURL string `json:"datasheetUrl"` Description string `json:"description"` DetailedDescription string `json:"detailedDescription"` IsNormallyStocking bool `json:"isNormallyStocking"` Manufacturer string `json:"manufacturer"` ManufacturerURL string `json:"manufacturerUrl"` ManufacturerProductNumber string `json:"manufacturerProductNumber"` RolledUpProductID string `json:"rolledUpProductId"` RolledUpProductNumber string `json:"rolledUpProductNumber"` StandardLeadTime string `json:"standardLeadTime"` } `json:"productOverview"` AdditionalResources struct { Title string `json:"title"` DataHeaders []string `json:"dataHeaders"` DataRows []struct { DataCells []struct { Data struct { Value struct { Value string `json:"value"` } `json:"value"` Type string `json:"type"` } `json:"data"` } `json:"dataCells"` } `json:"dataRows"` } `json:"additionalResources"` Breadcrumb []struct { Label string `json:"label"` URL string `json:"url"` } `json:"breadcrumb"` Environmental struct { Title string `json:"title"` DataHeaders []string `json:"dataHeaders"` DataRows []struct { DataCells []struct { Data struct { Value struct { Value string `json:"value"` } `json:"value"` Type string `json:"type"` } `json:"data"` } `json:"dataCells"` } `json:"dataRows"` } `json:"environmental"` CarouselMedia []struct { AnalyticsTag string `json:"analyticsTag"` Title string `json:"title"` HrefURL string `json:"hrefUrl"` DisplayURL string `json:"displayUrl"` Type string `json:"type"` } `json:"carouselMedia"` OtherDocsAndMedia struct { Title string `json:"title"` DataHeaders []string `json:"dataHeaders"` DataRows []struct { DataCells []struct { Data struct { Value struct { Value string `json:"value"` } `json:"value"` Type string `json:"type"` } `json:"data"` } `json:"dataCells"` } `json:"dataRows"` } `json:"otherDocsAndMedia"` IsBackOrderAllowed bool `json:"isBackOrderAllowed"` MinimumMultiplier int `json:"minimumMultiplier"` QuantityTable []struct { BreakQty int `json:"breakQty"` DigikeyProductNumber string `json:"digikeyProductNumber"` Fee int `json:"fee"` ID string `json:"id"` IsDiscount bool `json:"isDiscount"` MinMultiplier int `json:"minMultiplier"` Packaging string `json:"packaging"` PackTypeCode int `json:"packTypeCode"` UnitPrice float64 `json:"unitPrice"` } `json:"quantityTable"` ProductAttributes struct { Attributes []struct { ID string `json:"id"` Label string `json:"label"` Values []struct { ID string `json:"id"` Value string `json:"value"` } `json:"values"` IsFilterable bool `json:"isFilterable"` Pt string `json:"pt,omitempty"` } `json:"attributes"` Categories []struct { ID string `json:"id"` Label string `json:"label"` URL string `json:"url"` } `json:"categories"` } `json:"productAttributes"` Substitutes struct { Title string `json:"title"` DataHeaders []string `json:"dataHeaders"` DataRows []struct { DataCells []struct { Data struct { Value struct { Label string `json:"label"` URL string `json:"url"` External bool `json:"external"` } `json:"value"` Type string `json:"type"` } `json:"data"` } `json:"dataCells"` } `json:"dataRows"` } `json:"substitutes"` Associations struct { CardAssociations []struct { Title string `json:"title"` CardCount int `json:"cardCount"` ProductCards []struct { Description string `json:"description"` DetailURL string `json:"detailUrl"` ID string `json:"id"` ImageURL string `json:"imageUrl"` Mfr string `json:"mfr"` MfrID string `json:"mfrId"` MfrProduct string `json:"mfrProduct"` UnitPrice string `json:"unitPrice"` } `json:"productCards"` Type string `json:"type"` } `json:"cardAssociations"` } `json:"associations"` Messages []struct { Message string `json:"message"` Type string `json:"type"` Code string `json:"code"` } `json:"messages"` IsMarketplaceOnly bool `json:"isMarketplaceOnly"` IsMultiVendor bool `json:"isMultiVendor"` } `json:"data"` Type string `json:"type"` } `json:"envelope"` } `json:"pageProps"` I18NCurrentInstance interface{} `json:"i18nCurrentInstance"` InitialI18NStore struct { EnUs struct { DetailPage struct { CmsBomErrorDialog string `json:"cms-bom-error-dialog"` CmsPreviousPage string `json:"cms-previous-page"` CmsDetailedDescription string `json:"cms-detailed-description"` CmsSeeAll string `json:"cms-see-all"` CmsNewBom string `json:"cms-new-bom"` CmsAddToCart string `json:"cms-add-to-cart"` CmsViewBom string `json:"cms-view-bom"` CmsTotal string `json:"cms-total"` CmsQuantity string `json:"cms-quantity"` CmsShowVat string `json:"cms-show-vat"` CmsBomNameLabel string `json:"cms-bom-name-label"` CmsBomErrorProduct string `json:"cms-bom-error-product"` CmsShowLess string `json:"cms-show-less"` CmsProductAddedToBom string `json:"cms-product-added-to-bom"` CmsLeadtimeDisclaimer string `json:"cms-leadtime-disclaimer"` CmsSupplier string `json:"cms-supplier"` CmsYourPrice string `json:"cms-your-price"` CmsMediaDownloads string `json:"cms-media-downloads"` CmsFavoritesSuccess string `json:"cms-favorites-success"` CmsLink string `json:"cms-link"` CmsLeadtimeInvalid string `json:"cms-leadtime-invalid"` CmsStandardPrice string `json:"cms-standard-price"` CmsFee string `json:"cms-fee"` CmsAttribute string `json:"cms-attribute"` CmsQtyExceededNoBackorderError string `json:"cms-qty-exceeded-no-backorder-error"` CmsMinQtyMultipleError string `json:"cms-min-qty-multiple-error"` CmsLeadtimeTitle string `json:"cms-leadtime-title"` CmsCopy string `json:"cms-copy"` CmsExistingBom string `json:"cms-existing-bom"` CmsManufacturerProductNumber string `json:"cms-manufacturer-product-number"` CmsDescription string `json:"cms-description"` CmsNewParametricSearch string `json:"cms-new-parametric-search"` CmsFrequentlyBoughtTogether string `json:"cms-frequently-bought-together"` CmsFavorite string `json:"cms-favorite"` CmsNextPage string `json:"cms-next-page"` CmsMyPrice string `json:"cms-my-price"` CmsAddToFavorites string `json:"cms-add-to-favorites"` CmsAddToBom string `json:"cms-add-to-bom"` CmsMoreCount string `json:"cms-more-count"` CmsViewFavorites string `json:"cms-view-favorites"` CmsStandardLeadTime string `json:"cms-standard-lead-time"` CmsQty string `json:"cms-qty"` CmsExtPrice string `json:"cms-ext-price"` CmsManufacturer string `json:"cms-manufacturer"` CmsOk string `json:"cms-ok"` CmsType string `json:"cms-type"` CmsShowAll string `json:"cms-show-all"` CmsDatasheet string `json:"cms-datasheet"` CmsPriceBreak string `json:"cms-price-break"` CmsPackaging string `json:"cms-packaging"` CmsExtendedPrice string `json:"cms-extended-price"` CmsDigikeyMarketplace string `json:"cms-digikey-marketplace"` CmsLeadtimeUpdate string `json:"cms-leadtime-update"` CmsSelect string `json:"cms-select"` CmsBomNameError string `json:"cms-bom-name-error"` CmsFavoritesError string `json:"cms-favorites-error"` CmsMatingProducts string `json:"cms-mating-products"` CmsCategory string `json:"cms-category"` CmsFavorites string `json:"cms-favorites"` CmsCustomerReference string `json:"cms-customer-reference"` CmsInvalidQtyError string `json:"cms-invalid-qty-error"` CmsLeadtimeShipEstimate string `json:"cms-leadtime-ship-estimate"` CmsBomName string `json:"cms-bom-name"` CmsPriceProcurement string `json:"cms-price-procurement"` CmsReportError string `json:"cms-report-error"` CmsCopied string `json:"cms-copied"` CmsProductAttributes string `json:"cms-product-attributes"` CmsDigikeyProductNumber string `json:"cms-digikey-product-number"` CmsInStock string `json:"cms-in-stock"` } `json:"detail-page"` Common struct { CmsTopResults string `json:"cms-top-results"` CmsSwitchToModernBody string `json:"cms-switch-to-modern-body"` CmsJumpTo string `json:"cms-jump-to"` CmsFirstPage string `json:"cms-first-page"` CmsContinueShopping string `json:"cms-continue-shopping"` CmsCancel string `json:"cms-cancel"` CmsCompareProductsCount string `json:"cms-compare-products-count"` CmsFilter string `json:"cms-filter"` CmsPreviousPage string `json:"cms-previous-page"` CmsLastPage string `json:"cms-last-page"` CmsClassicSearch string `json:"cms-classic-search"` CmsError string `json:"cms-error"` CmsAppliedFilters string `json:"cms-applied-filters"` CmsSwitchToModernLinkEnd string `json:"cms-switch-to-modern-link-end"` CmsSwitchToClassicHeading string `json:"cms-switch-to-classic-heading"` CmsSwitchScrolling string `json:"cms-switch-scrolling"` CmsRegisteredUsersOnly string `json:"cms-registered-users-only"` CmsApply string `json:"cms-apply"` CmsNoResultsDetails string `json:"cms-no-results-details"` CmsShareErrorDialog string `json:"cms-share-error-dialog"` CmsProductPerPage string `json:"cms-product-per-page"` CmsNextPage string `json:"cms-next-page"` CmsNoResultsHelp string `json:"cms-no-results-help"` CmsShareOn string `json:"cms-share-on"` CmsSeeLess string `json:"cms-see-less"` CmsRefineSearch string `json:"cms-refine-search"` CmsItems string `json:"cms-items"` CmsMarketplaceMp string `json:"cms-marketplace-mp"` CmsShareSocial string `json:"cms-share-social"` CmsEnterQuantity string `json:"cms-enter-quantity"` CmsNoSelectionsMade string `json:"cms-no-selections-made"` CmsUnitPrice string `json:"cms-unit-price"` CmsTopCategories string `json:"cms-top-categories"` CmsClear string `json:"cms-clear"` CmsModernSearch string `json:"cms-modern-search"` CmsMarketplaceProductMessage string `json:"cms-marketplace-product-message"` CmsShowing string `json:"cms-showing"` CmsDetails string `json:"cms-details"` CmsFilterOptions string `json:"cms-filter-options"` CmsLessFilters string `json:"cms-less-filters"` CmsMissingProductPhoto string `json:"cms-missing-product-photo"` CmsSwitchStacked string `json:"cms-switch-stacked"` CmsShowLess string `json:"cms-show-less"` CmsViewPricesAtFilter string `json:"cms-view-prices-at-filter"` CmsElectronicComponents string `json:"cms-electronic-components"` CmsSwitchToClassicBody2 string `json:"cms-switch-to-classic-body-2"` CmsNoResults string `json:"cms-no-results"` CmsDatasheet string `json:"cms-datasheet"` CmsSearchWithinResults string `json:"cms-search-within-results"` CmsNotAvailable string `json:"cms-not-available"` CmsRemaining string `json:"cms-remaining"` CmsSearchEntry string `json:"cms-search-entry"` CmsShareDialog string `json:"cms-share-dialog"` CmsSwitchToModernHeading string `json:"cms-switch-to-modern-heading"` CmsOk string `json:"cms-ok"` CmsSeeMore string `json:"cms-see-more"` CmsExactMatch string `json:"cms-exact-match"` CmsSwitchToClassicBody1 string `json:"cms-switch-to-classic-body-1"` CmsSwitchToModernLinkStart string `json:"cms-switch-to-modern-link-start"` CmsClose string `json:"cms-close"` CmsOf string `json:"cms-of"` CmsSwitchToClassicBody3 string `json:"cms-switch-to-classic-body-3"` CmsShare string `json:"cms-share"` CmsSearchFilter string `json:"cms-search-filter"` CmsSettings string `json:"cms-settings"` CmsView string `json:"cms-view"` CmsMoreFilters string `json:"cms-more-filters"` CmsResults string `json:"cms-results"` CmsSelectAnOption string `json:"cms-select-an-option"` CmsNewProducts string `json:"cms-new-products"` CmsShowMore string `json:"cms-show-more"` CmsResultsPerPage string `json:"cms-results-per-page"` CmsSearchWithin string `json:"cms-search-within"` } `json:"common"` } `json:"en-us"` } `json:"initialI18nStore"` InitialLanguage string `json:"initialLanguage"` NamespacesRequired []string `json:"namespacesRequired"` } `json:"props"` Page string `json:"page"` Query struct { Num0 string `json:"0"` NoSiteWrapper string `json:"noSiteWrapper"` Any string `json:"any"` ID string `json:"id"` } `json:"query"` BuildID string `json:"buildId"` AssetPrefix string `json:"assetPrefix"` RuntimeConfig struct { APPINSIGHTSINSTRUMENTATIONKEY string `json:"APPINSIGHTS_INSTRUMENTATIONKEY"` BASEURL string `json:"BASE_URL"` CUSTOMENV string `json:"CUSTOM_ENV"` FEATUREFLAGDISABLELEADTIME bool `json:"FEATURE_FLAG_DISABLE_LEADTIME"` FEATUREFLAGEVERGAGE bool `json:"FEATURE_FLAG_EVERGAGE"` FEATUREFLAGFILTERSV2 bool `json:"FEATURE_FLAG_FILTERS_V2"` FEATUREFLAGMOSAICCART bool `json:"FEATURE_FLAG_MOSAIC_CART"` FEATUREFLAGPRICINGCALL bool `json:"FEATURE_FLAG_PRICING_CALL"` FEATUREFLAGSETTINGSMENU bool `json:"FEATURE_FLAG_SETTINGS_MENU"` } `json:"runtimeConfig"` IsFallback bool `json:"isFallback"` DynamicIds []string `json:"dynamicIds"` CustomServer bool `json:"customServer"` Gip bool `json:"gip"` AppGip bool `json:"appGip"` }
type SzlcscClient ¶
type SzlcscClient struct { RemoteHost string // contains filtered or unexported fields }
func NewSzlcscClient ¶
func NewSzlcscClient() *SzlcscClient
func (*SzlcscClient) QueryCall ¶
func (hc *SzlcscClient) QueryCall(mpn string) (types.EBOMWebPart, error)
func (*SzlcscClient) QueryCallDetail ¶
func (hc *SzlcscClient) QueryCallDetail(suburl string, partSpecs types.EBOMWebPart) (types.EBOMWebPart, error)
Click to show internal directories.
Click to hide internal directories.