Versions in this module Expand all Collapse all v0 v0.0.2 Jun 1, 2021 v0.0.1 May 31, 2021 Changes in this version + const AES_KEY + const CLIENT_SECRET + const CLIENT_USERNAME + func BeginPollingForClients(interval int) error + func CheckSlots(remoteClient *RemoteClient) error + func Clients() map[string]*RemoteClient + func Initialize() *map[string]interface + func PollServer(remoteClient *RemoteClient) error + func Respond(remoteClient *RemoteClient) + func SendResponse(remoteClient *RemoteClient, userInput string) + func SetWACClient(wac *pkWhatsApp.WhatsappClient) + type AppointmentConfirmation struct + ConfirmationId string + type AppointmentList struct + DoseAppointments []struct{} + type Appointments struct + Centers []struct{ ... } + type ApptRequestError struct + Error string + ErrorCode string + type BeneficiaryList struct + Beneficiaries []struct{ ... } + Description string + EligibleCount int + type BookingSlot struct + Available bool + BookAnySlot bool + CenterID int + CenterName string + Description string + EligibleCount int + PotentialSessions []PotentialSession + Preferred bool + SessionID string + Slot string + TotalDose1Available int + func Search(remoteClient *RemoteClient) (*BookingSlot, error) + type CaptchaSVG struct + Captcha string + type Command struct + CommandType string + ErrorResponse1 string + ErrorResponse2 string + ExpectedResponse string + Name string + NextCommand string + NextNCommand string + NextYCommand string + ResponseType string + ToBeSent string + type DistrictList struct + Districts []struct{ ... } + TTL int + type OTPConfirmTxn struct + TOKEN string + type OTPTxn struct + BearerToken string + TXNId string + type PotentialSession struct + AvailableCapacity float64 + CenterAddress string + CenterID int + CenterName string + Date string + Dose1Capacity float64 + Dose2Capacity float64 + MinAgeLimit int + SessionID string + Slots []string + Vaccine string + type RemoteClient struct + Host *pkWhatsApp.WhatsappClient + LastReceived pkWhatsApp.Message + LastSent *Command + Params *UserParams + PollWaitCounter int + PollingInterval int + Received pkWhatsApp.Message + RemoteJID string + RemoteMobileNumber string + func GetClient(msg pkWhatsApp.Message, wac *pkWhatsApp.WhatsappClient) *RemoteClient + func NewClient(msg pkWhatsApp.Message, wac *pkWhatsApp.WhatsappClient) *RemoteClient + func NewRemoteClient(msg pkWhatsApp.Message, from, mobile string, wac *pkWhatsApp.WhatsappClient) *RemoteClient + type StateList struct + States []struct{ ... } + TTL int + type Subscriber struct + Date string + MobileNumber string + RemoteJID string + type Subscriptions struct + NonSubscribers []Subscriber + Subscribers []Subscriber + type UserParams struct + Age int + Beneficiaries *BeneficiaryList + BookingPrefs *BookingSlot + CAPTCHA string + ConfirmationID string + District string + DistrictID int + OTP int + OTPTxnDetails *OTPTxn + State string + StateID int