carrefour

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

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

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

GetStoreIDByPostalCode fetch storeIDs by postal code

func LoadDriveState

func LoadDriveState(config DriveConfig) (hasChanged bool, err error)

LoadDriveState charge le status du drive

func LoadIntervalDriveState

func LoadIntervalDriveState(config DriveConfig, tick *time.Ticker, done chan bool)

LoadIntervalDriveState fetch each tick the drive state config

func NewDriveHandler

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

type DriveStore struct {
	DriveID string
	Name    string
}

func GetStoreByPostalCode

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