Documentation ¶
Overview ¶
Package auchan provides function to get auchan drive disponibility
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDriveState ¶
func GetDriveState(driveID string) *drivestate.DriveState
GetDriveState get the state of a drive
func GetStoreIDByPostalCode ¶ added in v0.2.0
GetStoreIDByPostalCode fetch storeIDs by postal code
func LoadIntervalDriveState ¶ added in v0.2.0
func LoadIntervalDriveState(config DriveConfig, tick *time.Ticker, done chan bool)
LoadIntervalDriveState fetch each tick the drive state config
func NewDriveHandler ¶ added in v0.2.0
func NewDriveHandler(driveID string)
NewDriveHandler add a new drive handler
Types ¶
type DriveConfig ¶
type DriveConfig struct { DriveID string State *drivestate.DriveState }
func NewConfig ¶
func NewConfig(driveID string) DriveConfig
NewConfig Create a new Drive config with driveId
type DriveStore ¶ added in v0.2.0
func GetStoreByPostalCode ¶ added in v0.2.0
func GetStoreByPostalCode(postalCode string) ([]DriveStore, error)
GetStoreByPostalCode fetch stores by postal code
Click to show internal directories.
Click to hide internal directories.