package
0.0.0-20211106200246-c3bf894143cb
Repository: https://github.com/unixpickle/optishop-server.git
Documentation: pkg.go.dev

# Packages

Command get_layout gets the layout for a specific store and dumps it as JSON.

# Functions

AddFloorDetails adds FloorDetails to a Floor.
GetFloorDetails looks up the floor details from the map of a specific floor of a specific store.
GetMapInfo looks up general map information for a given store identifier.
GetRequest performs a GET request on a Target URL, using specific necessary headers.
GetRequestRaw performs a GET request on a Target URL, using specific necessary headers.
Convert a MapInfo into a generic layout containing portals and basic zone information.
MatchFloorPortals matches elevators and escalators between two consecutive floors, finding a sequence of pairs of {first_portal, second_portal} where the first floor's map marker is matched to the second's.
No description provided by the author
No description provided by the author
ProductDepartment parses the department name from a product's buy URL.
ProductDetails parses the metadata JSON blob on a product page.
TypeAhead gets auto-complete suggestions for a given textual query.

# Structs

No description provided by the author
FloorDetails stores very specific information about a certain floor of a store.
FloorMap holds the general layout of a single floor.
No description provided by the author
A GeocodesResult stores the result of a Geocodes call.
LocationInfo stores information about a store location from a SearchStores query.
MapInfo contains generic information about the layout of a store and the parts of that store.
MapMarker is an indicator of some specific location on a specific floor.
No description provided by the author
No description provided by the author
No description provided by the author
ResponseMetadata is included in various responses and is stored in a slightly unusual way.
A SearchItem is a single result from a product search.
SearchProduct is a single resulting product from a search.
SearchResults stores results from a product search.
SearchResultsV2 stores the result of searching a store for a product.
ShipMethodsResult is a legacy data structure describing where and how an item can be purchased or shipped.
No description provided by the author
No description provided by the author
A Suggestion is a result from a type-ahead prediction.
TypeAheadResults contains the results of a type-ahead prediction.

# Interfaces

No description provided by the author