Documentation ¶
Index ¶
- Constants
- func ParseJapaneseDate(d string) (time.Time, error)
- func Run(cmd *cobra.Command, args []string) error
- func Transform0102(d string) (string, error)
- func Transform20060102(d string) (string, error)
- func Transform200601021504(t time.Time) string
- func TransformRFC3339Z(d string) (string, error)
- func TransformWeekday(d string) (int, error)
- type ContactData
- type Contacts
- type DataSet
- func (d *DataSet) GenerateJson() (string, error)
- func (d *DataSet) SetContacts(webapi *WebApi) error
- func (d *DataSet) SetInspectionPersons(webapi *WebApi) error
- func (d *DataSet) SetInspectionStatusSummary(webapi *WebApi) error
- func (d *DataSet) SetInspectionsSummary(webapi *WebApi) error
- func (d *DataSet) SetLastUpdateDate()
- func (d *DataSet) SetPatients(webapi *WebApi) error
- func (d *DataSet) SetPatientsSummary(webapi *WebApi) error
- func (d *DataSet) SetQuerents(webapi *WebApi) error
- type DischargesSummary
- type DischargesSummaryData
- type InspectionPersons
- type InspectionPersonsDataset
- type InspectionStatus
- type InspectionStatusSummary
- type InspectionStatusSummaryChildren
- type InspectionStatusSummaryChildrenChildren
- type InspectionsStatus
- type InspectionsSummary
- type InspectionsSummaryData
- type NumberOfInquiriesCallCenter
- type NumberOfInquiriesNearCorona
- type NumberOfInquiryCallCenter
- type NumberOfInquiryNearCorona
- type PatientData
- type PatientStatus
- type Patients
- type PatientsStatus
- type PatientsSummary
- type PatientsSummaryData
- type QuerentData
- type Querents
- type WebApi
Constants ¶
View Source
const OpenDataSiteDomain string = "opendata.pref.aomori.lg.jp"
View Source
const OpenDataWebApiUrl string = "https://" + OpenDataSiteDomain + "/api/package_show?id=5e4612ce-1636-41d9-82a3-c5130a79ffe0"
Variables ¶
This section is empty.
Functions ¶
func Transform0102 ¶
func Transform20060102 ¶
func Transform200601021504 ¶
func TransformRFC3339Z ¶
func TransformWeekday ¶
Types ¶
type ContactData ¶
type Contacts ¶
type Contacts struct { Date *string `json:"date"` Data []ContactData `json:"data"` }
type DataSet ¶
type DataSet struct { Contacts Contacts `json:"contacts"` Querents Querents `json:"querents"` Patients Patients `json:"patients"` PatientsSummary PatientsSummary `json:"patients_summary"` DischargesSummary DischargesSummary `json:"discharges_summary"` InspectionsSummary InspectionsSummary `json:"inspections_summary"` InspectionPersons InspectionPersons `json:"inspection_persons"` InspectionStatusSummary InspectionStatusSummary `json:"inspection_status_summary"` LastUpdate *string `json:"lastUpdate"` }
func NewDataSet ¶
func NewDataSet() *DataSet
func (*DataSet) GenerateJson ¶
func (*DataSet) SetContacts ¶
func (*DataSet) SetInspectionPersons ¶
func (*DataSet) SetInspectionStatusSummary ¶
func (*DataSet) SetInspectionsSummary ¶
func (*DataSet) SetLastUpdateDate ¶
func (d *DataSet) SetLastUpdateDate()
func (*DataSet) SetPatients ¶
func (*DataSet) SetPatientsSummary ¶
func (*DataSet) SetQuerents ¶
type DischargesSummary ¶
type DischargesSummary struct { Date *string `json:"date"` Data []DischargesSummaryData `json:"data"` }
type DischargesSummaryData ¶
type InspectionPersons ¶
type InspectionPersons struct { Date *string `json:"date"` Labels []*string `json:"labels"` Datasets []InspectionPersonsDataset `json:"datasets"` }
type InspectionStatus ¶
type InspectionStatusSummary ¶
type InspectionStatusSummary struct { Date *string `json:"date"` Attr *string `json:"attr"` Value *int `json:"value"` Children []InspectionStatusSummaryChildren `json:"children"` }
type InspectionStatusSummaryChildren ¶
type InspectionStatusSummaryChildren struct { Attr *string `json:"attr"` Value *int `json:"value"` Children []InspectionStatusSummaryChildrenChildren `json:"children"` }
type InspectionsStatus ¶
type InspectionsStatus []InspectionStatus
func NewInspectionsStatus ¶
func NewInspectionsStatus() *InspectionsStatus
func (*InspectionsStatus) Get ¶
func (i *InspectionsStatus) Get(url string) error
type InspectionsSummary ¶
type InspectionsSummary struct { Date *string `json:"date"` Data InspectionsSummaryData `json:"data"` Labels []*string `json:"labels"` }
type InspectionsSummaryData ¶
type NumberOfInquiriesCallCenter ¶
type NumberOfInquiriesCallCenter []NumberOfInquiryCallCenter
func NewNumberOfInquiriesCallCenter ¶
func NewNumberOfInquiriesCallCenter() *NumberOfInquiriesCallCenter
func (*NumberOfInquiriesCallCenter) Get ¶
func (n *NumberOfInquiriesCallCenter) Get(url string) error
type NumberOfInquiriesNearCorona ¶
type NumberOfInquiriesNearCorona []NumberOfInquiryNearCorona
func NewNumberOfInquiriesNearCorona ¶
func NewNumberOfInquiriesNearCorona() *NumberOfInquiriesNearCorona
func (*NumberOfInquiriesNearCorona) Get ¶
func (n *NumberOfInquiriesNearCorona) Get(url string) error
type PatientData ¶
type PatientStatus ¶
type Patients ¶
type Patients struct { Date *string `json:"date"` Data []PatientData `json:"data"` }
type PatientsStatus ¶
type PatientsStatus []PatientStatus
func NewPatientsStatus ¶
func NewPatientsStatus() *PatientsStatus
func (*PatientsStatus) Get ¶
func (p *PatientsStatus) Get(url string) error
type PatientsSummary ¶
type PatientsSummary struct { Date *string `json:"date"` Data []PatientsSummaryData `json:"data"` }
type PatientsSummaryData ¶
type QuerentData ¶
type Querents ¶
type Querents struct { Date *string `json:"date"` Data []QuerentData `json:"data"` }
type WebApi ¶
type WebApi struct { Success bool `json:"success"` Result struct { Type string `json:"type"` Site struct { ID int `json:"id"` Name string `json:"name"` URL string `json:"url"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` } `json:"site"` User struct { ID int `json:"id"` Name string `json:"name"` UID string `json:"uid"` Email string `json:"email"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` } `json:"user"` Author string `json:"author"` ID int `json:"id"` UUID string `json:"uuid"` Name string `json:"name"` Filename string `json:"filename"` URL string `json:"url"` Text string `json:"text"` State string `json:"state"` Released time.Time `json:"released"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` Categories []struct { ID int `json:"id"` Name string `json:"name"` Filename string `json:"filename"` State string `json:"state"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` } `json:"categories"` EstatCategories []interface{} `json:"estat_categories"` Areas []struct { ID int `json:"id"` Name string `json:"name"` Filename string `json:"filename"` State string `json:"state"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` } `json:"areas"` Tags []interface{} `json:"tags"` Point int `json:"point"` Downloaded int `json:"downloaded"` Groups []struct { ID int `json:"id"` Name string `json:"name"` TrailingName string `json:"trailing_name"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` } `json:"groups"` Resources []struct { ID int `json:"id"` UUID string `json:"uuid"` RevisionID string `json:"revision_id"` Name string `json:"name"` Filename string `json:"filename"` Text interface{} `json:"text"` License struct { ID int `json:"id"` Name string `json:"name"` UID interface{} `json:"uid"` State string `json:"state"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` } `json:"license"` RdfIri interface{} `json:"rdf_iri"` RdfError interface{} `json:"rdf_error"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` DownloadURL string `json:"download_url"` URL string `json:"url"` Format string `json:"format"` } `json:"resources"` NumResources int `json:"num_resources"` } `json:"result"` Help string `json:"help"` }
Click to show internal directories.
Click to hide internal directories.