types

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	ID                   int64 `json:"id"`
	JumlahOdp            int64 `json:"jumlah_odp"`
	JumlahPDP            int64 `json:"jumlah_pdp"`
	TotalSpesimen        int64 `json:"total_spesimen"`
	TotalSpesimenNegatif int64 `json:"total_spesimen_negatif"`
}

type DataResponse

type DataResponse struct {
	LastUpdate string    `json:"last_update"`
	Kasus      Kasus     `json:"kasus"`
	Sembuh     Meninggal `json:"sembuh"`
	Meninggal  Meninggal `json:"meninggal"`
	Perawatan  Meninggal `json:"perawatan"`
}

type GejalaClass

type GejalaClass struct {
	CurrentData int64             `json:"current_data"`
	MissingData float64           `json:"missing_data"`
	ListData    []GejalaListDatum `json:"list_data"`
}

type GejalaListDatum

type GejalaListDatum struct {
	Key      string  `json:"key"`
	DocCount float64 `json:"doc_count"`
}

type Harian

type Harian struct {
	KeyAsString        string `json:"key_as_string"`
	Key                int64  `json:"key"`
	DocCount           int64  `json:"doc_count"`
	JumlahMeninggal    Jumlah `json:"jumlah_meninggal"`
	JumlahSembuh       Jumlah `json:"jumlah_sembuh"`
	JumlahPositif      Jumlah `json:"jumlah_positif"`
	JumlahDirawat      Jumlah `json:"jumlah_dirawat"`
	JumlahPositifKum   Jumlah `json:"jumlah_positif_kum"`
	JumlahSembuhKum    Jumlah `json:"jumlah_sembuh_kum"`
	JumlahMeninggalKum Jumlah `json:"jumlah_meninggal_kum"`
	JumlahDirawatKum   Jumlah `json:"jumlah_dirawat_kum"`
}

type JenisKelamin

type JenisKelamin struct {
	Key      JenisKelaminKey `json:"key"`
	DocCount int64           `json:"doc_count"`
}

type JenisKelaminKey

type JenisKelaminKey string
const (
	LakiLaki  JenisKelaminKey = "LAKI-LAKI"
	Perempuan JenisKelaminKey = "PEREMPUAN"
)

type Jumlah

type Jumlah struct {
	Value int64 `json:"value"`
}

type Kasus

type Kasus struct {
	KondisiPenyerta GejalaClass       `json:"kondisi_penyerta"`
	JenisKelamin    GejalaClass       `json:"jenis_kelamin"`
	KelompokUmur    KasusKelompokUmur `json:"kelompok_umur"`
	Gejala          GejalaClass       `json:"gejala"`
}

type KasusKelompokUmur

type KasusKelompokUmur struct {
	CurrentData int64                   `json:"current_data"`
	MissingData float64                 `json:"missing_data"`
	ListData    []KelompokUmurListDatum `json:"list_data"`
}

type KelompokUmur

type KelompokUmur struct {
	Key      KelompokUmurKey `json:"key"`
	DocCount int64           `json:"doc_count"`
	Usia     Usia            `json:"usia"`
}

type KelompokUmurKey

type KelompokUmurKey string
const (
	The05   KelompokUmurKey = "0-5"
	The1830 KelompokUmurKey = "18-30"
	The3145 KelompokUmurKey = "31-45"
	The4659 KelompokUmurKey = "46-59"
	The60   KelompokUmurKey = "≥ 60"
	The617  KelompokUmurKey = "6-17"
)

type KelompokUmurListDatum

type KelompokUmurListDatum struct {
	Key      string  `json:"key"`
	DocCount float64 `json:"doc_count"`
	Usia     Usia    `json:"usia"`
}

type ListDatum

type ListDatum struct {
	Key             string         `json:"key"`
	DocCount        float64        `json:"doc_count"`
	JumlahKasus     int64          `json:"jumlah_kasus"`
	JumlahSembuh    int64          `json:"jumlah_sembuh"`
	JumlahMeninggal int64          `json:"jumlah_meninggal"`
	JumlahDirawat   int64          `json:"jumlah_dirawat"`
	JenisKelamin    []JenisKelamin `json:"jenis_kelamin"`
	KelompokUmur    []KelompokUmur `json:"kelompok_umur"`
	Lokasi          Lokasi         `json:"lokasi"`
	Penambahan      PenambahanProv `json:"penambahan"`
}

type Lokasi

type Lokasi struct {
	Lon float64 `json:"lon"`
	Lat float64 `json:"lat"`
}

type Meninggal

type Meninggal struct {
	KondisiPenyerta PurpleGejala          `json:"kondisi_penyerta"`
	JenisKelamin    PurpleGejala          `json:"jenis_kelamin"`
	KelompokUmur    MeninggalKelompokUmur `json:"kelompok_umur"`
	Gejala          PurpleGejala          `json:"gejala"`
}

type MeninggalKelompokUmur

type MeninggalKelompokUmur struct {
	ListData []KelompokUmurListDatum `json:"list_data"`
}

type PenambahanProv

type PenambahanProv struct {
	Positif   int64 `json:"positif"`
	Sembuh    int64 `json:"sembuh"`
	Meninggal int64 `json:"meninggal"`
}

type PenambahanUpdate

type PenambahanUpdate struct {
	JumlahPositif   int64  `json:"jumlah_positif"`
	JumlahMeninggal int64  `json:"jumlah_meninggal"`
	JumlahSembuh    int64  `json:"jumlah_sembuh"`
	JumlahDirawat   int64  `json:"jumlah_dirawat"`
	Tanggal         string `json:"tanggal"`
	Created         string `json:"created"`
}

type ProvResponse

type ProvResponse struct {
	LastDate      string      `json:"last_date"`
	CurrentData   float64     `json:"current_data"`
	MissingData   float64     `json:"missing_data"`
	TanpaProvinsi int64       `json:"tanpa_provinsi"`
	ListData      []ListDatum `json:"list_data"`
}

type PurpleGejala

type PurpleGejala struct {
	ListData []GejalaListDatum `json:"list_data"`
}

type Total

type Total struct {
	JumlahPositif   int64 `json:"jumlah_positif"`
	JumlahDirawat   int64 `json:"jumlah_dirawat"`
	JumlahSembuh    int64 `json:"jumlah_sembuh"`
	JumlahMeninggal int64 `json:"jumlah_meninggal"`
}

type Update

type Update struct {
	Penambahan PenambahanUpdate `json:"penambahan"`
	Harian     []Harian         `json:"harian"`
	Total      Total            `json:"total"`
}

type UpdateResponse

type UpdateResponse struct {
	Data   Data   `json:"data"`
	Update Update `json:"update"`
}

type Usia

type Usia struct {
	Value float64 `json:"value"`
}

Jump to

Keyboard shortcuts

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