Documentation ¶
Index ¶
- func GetDriveState(driveID string) *drivestate.DriveState
- func GetStoreIDByPostalCode(postalCode string) ([]string, error)
- func LoadDriveState(config DriveConfig) (hasChanged bool, err error)
- func LoadIntervalDriveState(config DriveConfig, tick *time.Ticker, done chan bool)
- func NewDriveHandler(driveID string)
- type DriveConfig
- type DriveStore
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 ¶
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
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 ¶
func GetStoreByPostalCode ¶
func GetStoreByPostalCode(postalCode string) ([]DriveStore, error)
GetStoreByPostalCode fetch stores by postal code
Click to show internal directories.
Click to hide internal directories.