availability

package
v0.0.0-...-2207f0c Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Locations map[int]Location

Locations represents all the defined vaccine locations.

Functions

This section is empty.

Types

type Address

type Address struct {
	AddressId   int         `json:"address_id"`
	Address     string      `json:"address"`
	Address2    string      `json:"address2"`
	City        string      `json:"city"`
	Province    string      `json:"province"`
	Country     string      `json:"country"`
	Postal      string      `json:"postal"`
	AddressType string      `json:"address_type"`
	Phone       string      `json:"phone"`
	PhoneExt    interface{} `json:"phone_ext"`
	Fax         string      `json:"fax"`
	UserId      interface{} `json:"user_id"`
	UpdatedAt   string      `json:"updated_at"`
	CreatedAt   string      `json:"created_at"`
}

Address represents the actual geographic location of a Location.

type Location

type Location struct {
	LocId          int     `json:"loc_id"`
	LocName        string  `json:"loc_name"`
	AddressId      *int    `json:"address_id"`
	Lat            *string `json:"lat"`
	Long           *string `json:"long"`
	LocWaitlistUrl *string `json:"loc_waitlist_url"`
	Address        Address `json:"address,omitempty"`
}

Location represents an individual defined vaccine location.

type LocationStatus

type LocationStatus struct {
	Id                         int  `json:"id"`
	HasUnavailableAppointments bool `json:"hasUnavailableAppointments"`
}

func GetAvailabilities

func GetAvailabilities() ([]LocationStatus, error)

type LocationStatusResp

type LocationStatusResp struct {
	Success bool             `json:"success"`
	Data    []LocationStatus `json:"data"`
	Message interface{}      `json:"message"`
	Icon    interface{}      `json:"icon"`
}

Jump to

Keyboard shortcuts

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