Versions in this module Expand all Collapse all v0 v0.1.1 Jun 12, 2021 v0.1.0 Jun 12, 2021 Changes in this version + const DefaultServiceURL + const DefaultUserAgent + var Routes map[string]string = map[string]string + func SignOTP(otp string) string + func ToJSONString(typedData *interface{}) (string, error) + type CenterCalendar struct + Address string + AddressL string + BlockName string + BlockNameL string + CenterID int + DistrictName string + DistrictNameL string + FeeType string + FromTime string + Lat float64 + Long float64 + Name string + NameL string + Pincode int + Sessions VaccinationSessions + StateName string + StateNameL string + ToTime string + Vaccines VaccineFeeList + type CentersCalendar []CenterCalendar + type CentersCalendarResponse struct + Centers CentersCalendar + type CoWinAPI struct + func NewCoWinAPI(language string, userAgent string) *CoWinAPI + func (c *CoWinAPI) ConfirmRawOTP(otp string, txnID string) (*OTPConfirmResponse, error) + func (c *CoWinAPI) ConfirmSignedOTP(otpSHA256 string, txnID string) (*OTPConfirmResponse, error) + func (c *CoWinAPI) GetCalendarByCenter(centerID int, date string) (*CenterCalendar, error) + func (c *CoWinAPI) GetCalendarByDistrict(districtID int, date string) (*CentersCalendarResponse, error) + func (c *CoWinAPI) GetCalendarByPIN(pincode string, date string) (*CentersCalendarResponse, error) + func (c *CoWinAPI) GetCentersByLatLong(lat float64, long float64) (*VaccinationCentersResp, error) + func (c *CoWinAPI) GetCertificate(beneficiaryID string, token string) ([]byte, error) + func (c *CoWinAPI) GetDistricts(stateID int) (*DistrictResp, error) + func (c *CoWinAPI) GetSessionsByDistrict(districtID int, date string) (*VaccinationSessionResp, error) + func (c *CoWinAPI) GetSessionsByPIN(pincode string, date string) (*VaccinationSessionResp, error) + func (c *CoWinAPI) GetStates() (*StateResp, error) + func (c *CoWinAPI) RequestOTP(mobile string) (*OTPResponse, error) + type District struct + ID int + Name string + NameL string + StateID int + type DistrictResp struct + Districts []District + TTL int + type ErrorType struct + ErrString string + ErrorCode string + type OTPConfirmRequest struct + OTP string + TxnID string + type OTPConfirmResponse struct + Token string + type OTPRequest struct + Mobile string + type OTPResponse struct + TxnID string + type State struct + ID int + Name string + NameL string + type StateResp struct + States []State + TTL int + type VaccinationCenter struct + Address string + AddressL string + BlockName string + BlockNameL string + CenterID int + DistrictName string + DistrictNameL string + FeeType string + FromTime string + Lat string + Long string + Name string + NameL string + Pincode string + StateName string + StateNameL string + ToTime string + type VaccinationCentersResp struct + Centers []VaccinationCenter + TTL int + type VaccinationSession struct + Address string + AddressL string + BlockName string + BlockNameL string + Capacity int + CapacityFirstDose int + CapacitySecondDose int + CenterID int + Date string + DistrictName string + DistrictNameL string + Fee string + FeeType string + FromTime string + Lat float64 + Long float64 + MinimumAge int + Name string + NameL string + Pincode int + SessionID string + Slots []string + StateName string + StateNameL string + ToTime string + VaccineName string + type VaccinationSessionResp struct + Sessions []VaccinationSession + type VaccinationSessions []VaccinationSession + type VaccineFee struct + Fee string + Vaccine string + type VaccineFeeList []VaccineFee