auchan

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2020 License: MIT Imports: 12 Imported by: 0

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

func GetStoreIDByPostalCode(postalCode string) ([]string, error)

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

type DriveStore struct {
	DriveID string
	Name    string
}

func GetStoreByPostalCode added in v0.2.0

func GetStoreByPostalCode(postalCode string) ([]DriveStore, error)

GetStoreByPostalCode fetch stores by postal code

Jump to

Keyboard shortcuts

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