Documentation ¶
Index ¶
- func ConvertTimestampToJkt(waktu time.Time) time.Time
- func HandleUserInput(Pesan model.IteungMessage, mongoconn *mongo.Database, selectedCandidate int) (reply string)
- func Handler(Pesan model.IteungMessage, mongoconn *mongo.Database) (reply string)
- func InsertPolling(Pesan model.IteungMessage, Keterangan string, NomorKandidat string, ...) (InsertedID interface{})
- func ListKandidatMessage(mongoconn *mongo.Database) string
- func MessagePolling(anggota Anggota, kandidat Kandidat, id interface{}) string
- func MessageSudahPolling(anggota Anggota, kandidat Kandidat) string
- func MintaQRCode() string
- func PilihKandidat(Teks string, Pesan model.IteungMessage, mongoconn *mongo.Database) (reply string)
- func PollingHandler(Pesan model.IteungMessage, mongoconn *mongo.Database, selectedCandidate int) string
- type Anggota
- type Kandidat
- func GetKandidat(db *mongo.Database) (data []Kandidat, err error)
- func GetKandidatByIndex(mongoconn *mongo.Database, index int) (kandidat Kandidat)
- func GetKandidatByNomorUrut(mongoconn *mongo.Database, NomorKandidat string) (selectedKandidat Kandidat)
- func GetKandidatFromPhoneNumber(mongoconn *mongo.Database, phone_number string) (kandidat Kandidat)
- func GetOneKandidat(NomorKandidat, db *mongo.Database) (data Kandidat)
- type KandidatInfo
- type Polling
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleUserInput ¶ added in v0.0.3
func InsertPolling ¶ added in v0.0.2
func ListKandidatMessage ¶ added in v0.0.3
func MessagePolling ¶ added in v0.0.2
func MessageSudahPolling ¶ added in v0.0.2
func MintaQRCode ¶ added in v0.0.6
func MintaQRCode() string
func PilihKandidat ¶ added in v0.0.6
func PollingHandler ¶ added in v0.0.2
Types ¶
type Anggota ¶ added in v0.0.2
type Kandidat ¶ added in v0.0.2
type Kandidat struct { Id primitive.ObjectID `bson:"_id" json:"_id"` NamaKandidat string `bson:"nama_kandidat" json:"nama_kandidat"` NomorKandidat string `bson:"nomor_kandidat" json:"nomor_kandidat"` PhoneNumber string `bson:"phone_number" json:"phone_number"` }
func GetKandidat ¶ added in v0.0.2
func GetKandidatByIndex ¶ added in v0.0.3
func GetKandidatByNomorUrut ¶ added in v0.0.3
func GetKandidatFromPhoneNumber ¶ added in v0.0.2
func GetOneKandidat ¶ added in v0.1.0
type KandidatInfo ¶ added in v0.0.2
type KandidatInfo struct { NamaKandidat string `bson:"nama_kandidat" json:"nama_kandidat"` NomorKandidat string `bson:"nomor_kandidat" json:"nomor_kandidat"` }
func GetNamaAndNomorKandidat ¶ added in v0.0.2
func GetNamaAndNomorKandidat(db *mongo.Database) (data []KandidatInfo, err error)
type Polling ¶ added in v0.0.2
type Polling struct { Id primitive.ObjectID `bson:"_id,omitempty" json:"_id"` Datetime time.Time `bson:"datetime" json:"datetime"` PhoneNumber string `bson:"phone_number" json:"phone_number"` Keterangan string `bson:"keterangan" json:"keterangan"` Kandidat Kandidat `bson:"kandidat" json:"kandidat"` Anggota Anggota `bson:"anggota" json:"anggota"` }
Click to show internal directories.
Click to hide internal directories.