Documentation ¶
Index ¶
- Constants
- type ApiClient
- func (c *ApiClient) GetDataCatalog(ctx context.Context, params ParamsGetDataCatalog) (*ResponseGetDataCatalogRoot, error)
- func (c *ApiClient) GetDatasetList(ctx context.Context, params ParamsGetDatasetList) (*ResponseGetDatasetListRoot, error)
- func (c *ApiClient) GetMetaInfoList(ctx context.Context, params ParamsGetMetaInfoList) (*ResponseGetMetaInfoListRoot, error)
- func (c *ApiClient) GetStatsData(ctx context.Context, params ParamsGetStatsData) (*ResponseGetStatsDataRoot, error)
- func (c *ApiClient) GetStatsDatas(ctx context.Context, params ParamsGetStatsDatas, ...) (*ResponseGetStatsData, error)
- func (c *ApiClient) GetStatsList(ctx context.Context, params ParamsGetStatsList) (*ResponseGetStatsListRoot, error)
- func (c *ApiClient) PostDataset(ctx context.Context, params ParamsPostDataset) (*ResponsePostDatasetRoot, error)
- func (c *ApiClient) RefDataset(ctx context.Context, params ParamsRefDataset) (*ResponseRefDatasetRoot, error)
- type AreaCondition
- type CategoryCondition
- type ClassInf
- type ClassObj
- type ClassObjClass
- type ClassObjExplanation
- type CommonParams
- type DataCatalogInf
- type DataCatalogListInf
- type DataInf
- type DataInfAnnotation
- type DataInfNote
- type DataInfValue
- type Dataset
- type DatasetTitle
- type Description
- type GovOrg
- type HttpClient
- func (c *HttpClient) Get(ctx context.Context, path string, query any) (int, []byte, error)
- func (c *HttpClient) Post(ctx context.Context, path string, data any) (int, []byte, error)
- func (c *HttpClient) PostJsonWithQuery(ctx context.Context, path string, query any, structuredData any) (int, []byte, error)
- type IApiClient
- type IHttpClient
- type MainCategory
- type NarrowingConditon
- type Organization
- type ParamsGetDataCatalog
- type ParamsGetDataCatalogRoot
- type ParamsGetDatasetList
- type ParamsGetDatasetListRoot
- type ParamsGetMetaInfoList
- type ParamsGetMetaInfoListRoot
- type ParamsGetStatsData
- type ParamsGetStatsDataRoot
- type ParamsGetStatsDatas
- type ParamsGetStatsDatasRoot
- type ParamsGetStatsList
- type ParamsGetStatsListRoot
- type ParamsPostDataset
- type ParamsPostDatasetRoot
- type ParamsRefDataset
- type ParamsRefDatasetRoot
- type Resource
- type ResourceTitle
- type Resources
- type ResponseGetDataCatalog
- type ResponseGetDataCatalogParameter
- type ResponseGetDataCatalogRoot
- type ResponseGetDatasetList
- type ResponseGetDatasetListParameter
- type ResponseGetDatasetListRoot
- type ResponseGetMetaInfoList
- type ResponseGetMetaInfoListParameter
- type ResponseGetMetaInfoListRoot
- type ResponseGetMetaInfoMetaDataList
- type ResponseGetStatsData
- type ResponseGetStatsDataParameter
- type ResponseGetStatsDataRoot
- type ResponseGetStatsDataStatisticalData
- type ResponseGetStatsDataStatisticalDataList
- type ResponseGetStatsDataStatisticalDataListClassList
- type ResponseGetStatsDataStatisticalDataListDataList
- type ResponseGetStatsDataStatisticalDataListTableList
- type ResponseGetStatsDatas
- type ResponseGetStatsDatasRoot
- type ResponseGetStatsList
- type ResponseGetStatsListDataList
- type ResponseGetStatsListParameter
- type ResponseGetStatsListRoot
- type ResponseGetStatsParameter
- type ResponseGetStatsParameterList
- type ResponsePostDataset
- type ResponsePostDatasetParameter
- type ResponsePostDatasetRegistInf
- type ResponsePostDatasetRoot
- type ResponseRefDataset
- type ResponseRefDatasetInf
- type ResponseRefDatasetListInf
- type ResponseRefDatasetParameter
- type ResponseRefDatasetResultInf
- type ResponseRefDatasetRoot
- type ResponseResult
- type ResultInf
- type StatName
- type StatisticsNameSpec
- type StatsDatasSpec
- type SubCategory
- type TableInf
- type TabulatCondition
- type TimeCondition
- type Title
- type TitleSpec
Constants ¶
const (
ApiBaseURL = "http://api.e-stat.go.jp/rest/3.0/app"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiClient ¶
type ApiClient struct { HttpClient IHttpClient CommonParams CommonParams }
func (*ApiClient) GetDataCatalog ¶
func (c *ApiClient) GetDataCatalog(ctx context.Context, params ParamsGetDataCatalog) (*ResponseGetDataCatalogRoot, error)
統計表情報取得
https://www.e-stat.go.jp/api/api-info/e-stat-manual3-0#api_2_1
func (*ApiClient) GetDatasetList ¶
func (c *ApiClient) GetDatasetList(ctx context.Context, params ParamsGetDatasetList) (*ResponseGetDatasetListRoot, error)
データセット参照
パラメータのデータセットIDを指定しない場合、以下のように複数のデータセット情報が一覧として出力されます。 ルートタグは<GET_DATASET_LIST>になります。
https://www.e-stat.go.jp/api/api-info/e-stat-manual3-0#api_2_5
func (*ApiClient) GetMetaInfoList ¶
func (c *ApiClient) GetMetaInfoList(ctx context.Context, params ParamsGetMetaInfoList) (*ResponseGetMetaInfoListRoot, error)
メタ情報取得
https://www.e-stat.go.jp/api/api-info/e-stat-manual3-0#api_2_2
func (*ApiClient) GetStatsData ¶
func (c *ApiClient) GetStatsData(ctx context.Context, params ParamsGetStatsData) (*ResponseGetStatsDataRoot, error)
統計データ取得
https://www.e-stat.go.jp/api/api-info/e-stat-manual3-0#api_2_3
func (*ApiClient) GetStatsDatas ¶
func (c *ApiClient) GetStatsDatas(ctx context.Context, params ParamsGetStatsDatas, statsDatasSpec []StatsDatasSpec) (*ResponseGetStatsData, error)
統計データ一括取得
https://www.e-stat.go.jp/api/api-info/e-stat-manual3-0#api_2_7
func (*ApiClient) GetStatsList ¶
func (c *ApiClient) GetStatsList(ctx context.Context, params ParamsGetStatsList) (*ResponseGetStatsListRoot, error)
統計表情報取得
https://www.e-stat.go.jp/api/api-info/e-stat-manual3-0#api_2_1
func (*ApiClient) PostDataset ¶
func (c *ApiClient) PostDataset(ctx context.Context, params ParamsPostDataset) (*ResponsePostDatasetRoot, error)
データセット登録
https://www.e-stat.go.jp/api/api-info/e-stat-manual3-0#api_2_4
func (*ApiClient) RefDataset ¶
func (c *ApiClient) RefDataset(ctx context.Context, params ParamsRefDataset) (*ResponseRefDatasetRoot, error)
データセット参照
https://www.e-stat.go.jp/api/api-info/e-stat-manual3-0#api_2_5
type AreaCondition ¶
type AreaCondition struct { LevelArea string `url:"lvArea,omitempty" json:"lvArea,omitempty" xml:"LEVEL_AREA_COND"` CodeArea string `url:"cdArea,omitempty" json:"cdArea,omitempty" xml:"CODE_AREA_SELECT"` CodeAreaFrom string `url:"cdAreaFrom,omitempty" json:"cdAreaFrom,omitempty" xml:"CODE_AREA_FROM"` CodeAreaTo string `url:"cdAreaTo,omitempty" json:"cdAreaTo,omitempty" xml:"CODE_AREA_TO"` }
type CategoryCondition ¶
type CategoryCondition struct { LevelCat01 string `url:"lvCat01,omitempty" json:"lvCat01,omitempty" xml:"LEVEL_CAT01_COND"` CodeCat01 string `url:"cdCat01,omitempty" json:"cdCat01,omitempty" xml:"CODE_CAT01_SELECT"` CodeCat01From string `url:"cdCat01From,omitempty" json:"cdCat01From,omitempty" xml:"CODE_CAT01_FROM"` CodeCat01To string `url:"cdCat01To,omitempty" json:"cdCat01To,omitempty" xml:"CODE_CAT01_TO"` LevelCat02 string `url:"lvCat02,omitempty" json:"lvCat02,omitempty" xml:"LEVEL_CAT02_COND"` CodeCat02 string `url:"cdCat02,omitempty" json:"cdCat02,omitempty" xml:"CODE_CAT02_SELECT"` CodeCat02From string `url:"cdCat02From,omitempty" json:"cdCat02From,omitempty" xml:"CODE_CAT02_FROM"` CodeCat02To string `url:"cdCat02To,omitempty" json:"cdCat02To,omitempty" xml:"CODE_CAT02_TO"` LevelCat03 string `url:"lvCat03,omitempty" json:"lvCat03,omitempty" xml:"LEVEL_CAT03_COND"` CodeCat03 string `url:"cdCat03,omitempty" json:"cdCat03,omitempty" xml:"CODE_CAT03_SELECT"` CodeCat03From string `url:"cdCat03From,omitempty" json:"cdCat03From,omitempty" xml:"CODE_CAT03_FROM"` CodeCat03To string `url:"cdCat03To,omitempty" json:"cdCat03To,omitempty" xml:"CODE_CAT03_TO"` LevelCat04 string `url:"lvCat04,omitempty" json:"lvCat04,omitempty" xml:"LEVEL_CAT04_COND"` CodeCat04 string `url:"cdCat04,omitempty" json:"cdCat04,omitempty" xml:"CODE_CAT04_SELECT"` CodeCat04From string `url:"cdCat04From,omitempty" json:"cdCat04From,omitempty" xml:"CODE_CAT04_FROM"` CodeCat04To string `url:"cdCat04To,omitempty" json:"cdCat04To,omitempty" xml:"CODE_CAT04_TO"` LevelCat05 string `url:"lvCat05,omitempty" json:"lvCat05,omitempty" xml:"LEVEL_CAT05_COND"` CodeCat05 string `url:"cdCat05,omitempty" json:"cdCat05,omitempty" xml:"CODE_CAT05_SELECT"` CodeCat05From string `url:"cdCat05From,omitempty" json:"cdCat05From,omitempty" xml:"CODE_CAT05_FROM"` CodeCat05To string `url:"cdCat05To,omitempty" json:"cdCat05To,omitempty" xml:"CODE_CAT05_TO"` LevelCat06 string `url:"lvCat06,omitempty" json:"lvCat06,omitempty" xml:"LEVEL_CAT06_COND"` CodeCat06 string `url:"cdCat06,omitempty" json:"cdCat06,omitempty" xml:"CODE_CAT06_SELECT"` CodeCat06From string `url:"cdCat06From,omitempty" json:"cdCat06From,omitempty" xml:"CODE_CAT06_FROM"` CodeCat06To string `url:"cdCat06To,omitempty" json:"cdCat06To,omitempty" xml:"CODE_CAT06_TO"` LevelCat07 string `url:"lvCat07,omitempty" json:"lvCat07,omitempty" xml:"LEVEL_CAT07_COND"` CodeCat07 string `url:"cdCat07,omitempty" json:"cdCat07,omitempty" xml:"CODE_CAT07_SELECT"` CodeCat07From string `url:"cdCat07From,omitempty" json:"cdCat07From,omitempty" xml:"CODE_CAT07_FROM"` CodeCat07To string `url:"cdCat07To,omitempty" json:"cdCat07To,omitempty" xml:"CODE_CAT07_TO"` LevelCat08 string `url:"lvCat08,omitempty" json:"lvCat08,omitempty" xml:"LEVEL_CAT08_COND"` CodeCat08 string `url:"cdCat08,omitempty" json:"cdCat08,omitempty" xml:"CODE_CAT08_SELECT"` CodeCat08From string `url:"cdCat08From,omitempty" json:"cdCat08From,omitempty" xml:"CODE_CAT08_FROM"` CodeCat08To string `url:"cdCat08To,omitempty" json:"cdCat08To,omitempty" xml:"CODE_CAT08_TO"` LevelCat09 string `url:"lvCat09,omitempty" json:"lvCat09,omitempty" xml:"LEVEL_CAT09_COND"` CodeCat09 string `url:"cdCat09,omitempty" json:"cdCat09,omitempty" xml:"CODE_CAT09_SELECT"` CodeCat09From string `url:"cdCat09From,omitempty" json:"cdCat09From,omitempty" xml:"CODE_CAT09_FROM"` CodeCat09To string `url:"cdCat09To,omitempty" json:"cdCat09To,omitempty" xml:"CODE_CAT09_TO"` LevelCat10 string `url:"lvCat10,omitempty" json:"lvCat10,omitempty" xml:"LEVEL_CAT10_COND"` CodeCat10 string `url:"cdCat10,omitempty" json:"cdCat10,omitempty" xml:"CODE_CAT10_SELECT"` CodeCat10From string `url:"cdCat10From,omitempty" json:"cdCat10From,omitempty" xml:"CODE_CAT10_FROM"` CodeCat10To string `url:"cdCat10To,omitempty" json:"cdCat10To,omitempty" xml:"CODE_CAT10_TO"` LevelCat11 string `url:"lvCat11,omitempty" json:"lvCat11,omitempty" xml:"LEVEL_CAT11_COND"` CodeCat11 string `url:"cdCat11,omitempty" json:"cdCat11,omitempty" xml:"CODE_CAT11_SELECT"` CodeCat11From string `url:"cdCat11From,omitempty" json:"cdCat11From,omitempty" xml:"CODE_CAT11_FROM"` CodeCat11To string `url:"cdCat11To,omitempty" json:"cdCat11To,omitempty" xml:"CODE_CAT11_TO"` LevelCat12 string `url:"lvCat12,omitempty" json:"lvCat12,omitempty" xml:"LEVEL_CAT12_COND"` CodeCat12 string `url:"cdCat12,omitempty" json:"cdCat12,omitempty" xml:"CODE_CAT12_SELECT"` CodeCat12From string `url:"cdCat12From,omitempty" json:"cdCat12From,omitempty" xml:"CODE_CAT12_FROM"` CodeCat12To string `url:"cdCat12To,omitempty" json:"cdCat12To,omitempty" xml:"CODE_CAT12_TO"` LevelCat13 string `url:"lvCat13,omitempty" json:"lvCat13,omitempty" xml:"LEVEL_CAT13_COND"` CodeCat13 string `url:"cdCat13,omitempty" json:"cdCat13,omitempty" xml:"CODE_CAT13_SELECT"` CodeCat13From string `url:"cdCat13From,omitempty" json:"cdCat13From,omitempty" xml:"CODE_CAT13_FROM"` CodeCat13To string `url:"cdCat13To,omitempty" json:"cdCat13To,omitempty" xml:"CODE_CAT13_TO"` LevelCat14 string `url:"lvCat14,omitempty" json:"lvCat14,omitempty" xml:"LEVEL_CAT14_COND"` CodeCat14 string `url:"cdCat14,omitempty" json:"cdCat14,omitempty" xml:"CODE_CAT14_SELECT"` CodeCat14From string `url:"cdCat14From,omitempty" json:"cdCat14From,omitempty" xml:"CODE_CAT14_FROM"` CodeCat14To string `url:"cdCat14To,omitempty" json:"cdCat14To,omitempty" xml:"CODE_CAT14_TO"` LevelCat15 string `url:"lvCat15,omitempty" json:"lvCat15,omitempty" xml:"LEVEL_CAT15_COND"` CodeCat15 string `url:"cdCat15,omitempty" json:"cdCat15,omitempty" xml:"CODE_CAT15_SELECT"` CodeCat15From string `url:"cdCat15From,omitempty" json:"cdCat15From,omitempty" xml:"CODE_CAT15_FROM"` CodeCat15To string `url:"cdCat15To,omitempty" json:"cdCat15To,omitempty" xml:"CODE_CAT15_TO"` }
type ClassObj ¶
type ClassObj struct { ID string `xml:"id,attr"` Name string `xml:"name,attr"` Description string `xml:"description,attr"` Class []ClassObjClass `xml:"CLASS"` Explanation []ClassObjExplanation `xml:"EXPLANATION"` }
type ClassObjClass ¶
type ClassObjExplanation ¶
type CommonParams ¶
type CommonParams struct { // # アプリケーションID // // 取得したアプリケーションIDを指定して下さい。 AppID string `url:"appId" json:"appId"` // # 言語 // // 取得するデータの言語を 以下のいずれかを指定して下さい。 // // ・J:日本語 (省略値) // // ・E:英語 Lang string `url:"lang,omitempty" json:"lang,omitempty" xml:"LANG,omitempty"` }
全API共通
https://www.e-stat.go.jp/api/api-info/e-stat-manual3-0#api_3_1
type DataCatalogInf ¶
type DataCatalogListInf ¶
type DataCatalogListInf struct { Number int `xml:"NUMBER"` Result ResultInf `xml:"RESULT_INF"` DataCatalog []DataCatalogInf `xml:"DATA_CATALOG_INF"` }
type DataInf ¶
type DataInf struct { Note []DataInfNote `xml:"NOTE,omitempty"` Annotation []DataInfAnnotation `xml:"ANNOTATION,omitempty"` Value []DataInfValue `xml:"VALUE,omitempty"` }
type DataInfAnnotation ¶
type DataInfNote ¶
type DataInfValue ¶
type DataInfValue struct { Tab string `xml:"tab,attr"` Cat01 string `xml:"cat01,attr"` Cat02 string `xml:"cat02,attr"` Cat03 string `xml:"cat03,attr"` Cat04 string `xml:"cat04,attr"` Cat05 string `xml:"cat05,attr"` Cat06 string `xml:"cat06,attr"` Cat07 string `xml:"cat07,attr"` Cat08 string `xml:"cat08,attr"` Cat09 string `xml:"cat09,attr"` Cat10 string `xml:"cat10,attr"` Cat11 string `xml:"cat11,attr"` Cat12 string `xml:"cat12,attr"` Cat13 string `xml:"cat13,attr"` Cat14 string `xml:"cat14,attr"` Cat15 string `xml:"cat15,attr"` Area string `xml:"area,attr,omitempty"` Time string `xml:"time,attr"` Unit string `xml:"unit,attr"` Annotation string `xml:"annotation,attr,omitempty"` Value string `xml:",innerxml"` }
type Dataset ¶
type Dataset struct { StatName StatName `xml:"STAT_NAME"` Organization Organization `xml:"ORGANIZATION"` Title DatasetTitle `xml:"TITLE"` Description Description `xml:"DESCRIPTION"` Publisher string `xml:"PUBLISHER"` ContactPoint string `xml:"CONTACT_POINT"` Creator string `xml:"CREATOR"` ReleaseDate string `xml:"RELEASE_DATE"` LastModifiedDate string `xml:"LAST_MODIFIED_DATE"` FrequencyOfUpdate string `xml:"FREQUENCY_OF_UPDATE"` LandingPage string `xml:"LANDING_PAGE"` }
type DatasetTitle ¶
type DatasetTitle struct { Name string `xml:"NAME"` StatisticsNameSpec Cycle string `xml:"CYCLE"` SurveyDate string `xml:"SURVEY_DATE"` CollectArea string `xml:"COLLECT_AREA"` }
type Description ¶
type Description struct { TabulationCategoryExplanation string `xml:"TABULATION_CATEGORY_EXPLANATION"` TabulationSubCategoryExplanation1 string `xml:"TABULATION_SUB_CATEGORY_EXPLANATION1,omitempty"` TabulationSubCategoryExplanation2 string `xml:"TABULATION_SUB_CATEGORY_EXPLANATION2,omitempty"` TabulationSubCategoryExplanation3 string `xml:"TABULATION_SUB_CATEGORY_EXPLANATION3,omitempty"` TabulationSubCategoryExplanation4 string `xml:"TABULATION_SUB_CATEGORY_EXPLANATION4,omitempty"` TabulationSubCategoryExplanation5 string `xml:"TABULATION_SUB_CATEGORY_EXPLANATION5,omitempty"` }
type HttpClient ¶
type HttpClient struct {
// contains filtered or unexported fields
}
type IApiClient ¶
type IApiClient interface { GetStatsList(ctx context.Context, params ParamsGetStatsList) (*ResponseGetStatsListRoot, error) GetMetaInfoList(ctx context.Context, params ParamsGetMetaInfoList) (*ResponseGetMetaInfoListRoot, error) GetStatsData(ctx context.Context, params ParamsGetStatsData) (*ResponseGetStatsDataRoot, error) PostDataset(ctx context.Context, params ParamsPostDataset) (*ResponsePostDatasetRoot, error) RefDataset(ctx context.Context, params ParamsRefDataset) (*ResponseRefDatasetRoot, error) GetDatasetList(ctx context.Context, params ParamsGetDatasetList) (*ResponseGetDatasetListRoot, error) GetDataCatalog(ctx context.Context, params ParamsGetDataCatalog) (*ResponseGetDataCatalogRoot, error) GetStatsDatas(ctx context.Context, params ParamsGetStatsDatas, statsDatasSpec []StatsDatasSpec) (*ResponseGetStatsData, error) }
func NewApiClient ¶
func NewApiClient( httpClient IHttpClient, commonParams CommonParams, ) IApiClient
type IHttpClient ¶
type IHttpClient interface { Get(ctx context.Context, path string, query any) (int, []byte, error) Post(ctx context.Context, path string, data any) (int, []byte, error) PostJsonWithQuery(ctx context.Context, path string, query any, structuredData any) (int, []byte, error) }
func NewClient ¶
func NewClient(debug bool) IHttpClient
type MainCategory ¶
type NarrowingConditon ¶
type NarrowingConditon struct { TabulatCondition TimeCondition AreaCondition CategoryCondition }
type Organization ¶
type ParamsGetDataCatalog ¶
type ParamsGetDataCatalog struct { SurveyYears string `url:"surveyYears,omitempty" xml:"SURVEY_YEARS,omitempty"` OpenYears string `url:"openYears,omitempty" xml:"OPEN_YEARS,omitempty"` StatsField int `url:"statsField,omitempty" xml:"STATS_FIELD,omitempty"` StatsCode int `url:"statsCode,omitempty" xml:"STATS_CODE,omitempty"` SearchWord string `url:"searchWord,omitempty" xml:"SEARCH_WORD,omitempty"` CollectArea int `url:"collectArea,omitempty" xml:"COLLECT_AREA,omitempty"` ExplanationGetFlg string `url:"explanationGetFlg,omitempty" xml:"EXPLANATION_GET_FLG,omitempty"` DataType string `url:"dataType,omitempty" xml:"DATA_TYPE"` StartPosition int `url:"startPosition,omitempty" xml:"START_POSITION,omitempty"` CatalogId int `url:"catalogId,omitempty" xml:"CATALOG_ID"` ResourceId int `url:"resourceId,omitempty" xml:"RESOURCE_ID"` Limit int `url:"limit,omitempty" xml:"LIMIT,omitempty"` UpdatedDate string `url:"updatedDate,omitempty" xml:"UPDATED_DATE,omitempty"` }
type ParamsGetDataCatalogRoot ¶
type ParamsGetDataCatalogRoot struct { CommonParams ParamsGetDataCatalog }
type ParamsGetDatasetList ¶
type ParamsGetDatasetListRoot ¶
type ParamsGetDatasetListRoot struct { CommonParams ParamsGetDatasetList }
type ParamsGetMetaInfoList ¶
type ParamsGetMetaInfoListRoot ¶
type ParamsGetMetaInfoListRoot struct { CommonParams ParamsGetMetaInfoList }
type ParamsGetStatsData ¶
type ParamsGetStatsData struct { DataSetID string `json:"dataSetId,omitempty" xml:"DATA_SET_ID"` StatsDataId string `url:"statsDataId,omitempty" xml:"STATS_DATA_ID"` NarrowingConditon `xml:"NARROWING_COND"` StartPosition int `url:"startPosition,omitempty" xml:"START_POSITION"` Limit int `url:"limit,omitempty" xml:"LIMIT"` MetaGetFlg string `url:"metaGetFlg,omitempty" xml:"METAGET_FLG"` CntGetFlg string `url:"cntGetFlg,omitempty" xml:"CNT_GET_FLG"` ExplanationGetFlg string `url:"explanationGetFlg,omitempty" xml:"EXPLANATION_GET_FLG"` AnnotationGetFlg string `url:"annotationGetFlg,omitempty" xml:"ANNOTATION_GET_FLG"` ReplaceSpChar int `url:"replaceSpChar,omitempty" xml:"REPLACE_SP_CHAR"` }
type ParamsGetStatsDataRoot ¶
type ParamsGetStatsDataRoot struct { CommonParams ParamsGetStatsData }
type ParamsGetStatsDatas ¶
type ParamsGetStatsDatas struct { MetaGetFlg string `url:"metaGetFlg,omitempty" json:"metaGetFlg,omitempty" xml:"META_GET_FLG"` ExplanationGetFlg string `url:"explanationGetFlg,omitempty" json:"explanationGetFlg,omitempty" xml:"EXPLANATION_GET_FLG"` AnnotationGetFlg string `url:"annotationGetFlg,omitempty" json:"annotationGetFlg,omitempty" xml:"ANNOTATION_GET_FLG"` ReplaceSpChar int `url:"replaceSpChar,omitempty" json:"replaceSpChar,omitempty" xml:"REPLACE_SP_CHAR"` SectionHeaderFlg string `url:"sectionHeaderFlg,omitempty" json:"sectionHeaderFlg,omitempty" xml:"SECTION_HEADER_FLG"` DataSetID string `url:"dataSetId,omitempty" json:"dataSetId,omitempty" xml:"DATA_SET_ID"` }
type ParamsGetStatsDatasRoot ¶
type ParamsGetStatsDatasRoot struct { CommonParams ParamsGetStatsDatas }
type ParamsGetStatsList ¶
type ParamsGetStatsList struct { SurveyYears string `url:"surveyYears,omitempty" xml:"SURVEY_YEARS,omitempty"` OpenYears string `url:"openYears,omitempty" xml:"OPEN_YEARS,omitempty"` StatsField int `url:"statsField,omitempty" xml:"STATS_FIELD,omitempty"` StatsCode int `url:"statsCode,omitempty" xml:"STATS_CODE,omitempty"` SearchWord string `url:"searchWord,omitempty" xml:"SEARCH_WORD,omitempty"` SearchKind int `url:"searchKind,omitempty" xml:"SEARCH_KIND,omitempty"` CollectArea int `url:"collectArea,omitempty" xml:"COLLECT_AREA,omitempty"` ExplanationGetFlg string `url:"explanationGetFlg,omitempty" xml:"EXPLANATION_GET_FLG,omitempty"` StatsNameList string `url:"statsNameList,omitempty" xml:"STATS_NAME_LIST,omitempty"` StartPosition int `url:"startPosition,omitempty" xml:"START_POSITION,omitempty"` Limit int `url:"limit,omitempty" xml:"LIMIT,omitempty"` UpdatedDate string `url:"updatedDate,omitempty" xml:"UPDATED_DATE,omitempty"` }
type ParamsGetStatsListRoot ¶
type ParamsGetStatsListRoot struct { CommonParams ParamsGetStatsList }
type ParamsPostDataset ¶
type ParamsPostDataset struct { DataSetID string `url:"dataSetId,omitempty" xml:"DATA_SET_ID"` StatsDataId string `url:"statsDataId,omitempty" xml:"STATS_DATA_ID"` NarrowingConditon OpenSpecified string `url:"openSpecified,omitempty" xml:"OPEN_SPECIFIED"` ProcessMode string `url:"processMode,omitempty" xml:"PROCESS_MODE"` DataSetName string `url:"dataSetName,omitempty" xml:"DATASET_NAME"` }
type ParamsPostDatasetRoot ¶
type ParamsPostDatasetRoot struct { CommonParams ParamsPostDataset }
type ParamsRefDataset ¶
type ParamsRefDatasetRoot ¶
type ParamsRefDatasetRoot struct { CommonParams ParamsRefDataset }
type Resource ¶
type Resource struct { ID string `xml:"id,attr"` Title ResourceTitle `xml:"TITLE"` URL string `xml:"URL"` Description Format string `xml:"FORMAT"` ReleaseDate string `xml:"RELEASE_DATE"` LastModifiedDate string `xml:"LAST_MODIFIED_DATE"` ResourceLicenceID string `xml:"RESOURCE_LICENCE_ID"` Language string `xml:"LANGUAGE"` }
type ResourceTitle ¶
type ResponseGetDataCatalog ¶
type ResponseGetDataCatalog struct { Result ResponseResult `xml:"RESULT"` Parameter ResponseGetDataCatalogParameter `xml:"PARAMETER"` DataCatalogList DataCatalogListInf `xml:"DATA_CATALOG_LIST_INF,omitempty"` }
type ResponseGetDataCatalogParameter ¶
type ResponseGetDataCatalogParameter struct { CommonParams ParamsGetDataCatalog }
type ResponseGetDataCatalogRoot ¶
type ResponseGetDataCatalogRoot struct {
ResponseGetDataCatalog `xml:"GET_DATA_CATALOG"`
}
type ResponseGetDatasetList ¶
type ResponseGetDatasetList struct { Result ResponseResult `xml:"RESULT"` Parameter ResponseRefDatasetParameter `xml:"PARAMETER"` DatasetList ResponseRefDatasetListInf `xml:"DATASET_LIST_INF,omitempty"` }
type ResponseGetDatasetListParameter ¶
type ResponseGetDatasetListParameter struct { CommonParams ParamsGetDatasetList }
type ResponseGetDatasetListRoot ¶
type ResponseGetDatasetListRoot struct {
ResponseGetDatasetList `xml:"GET_DATASET_LIST,omitempty"`
}
type ResponseGetMetaInfoList ¶
type ResponseGetMetaInfoList struct { Result ResponseResult `xml:"RESULT"` Parameter ResponseGetMetaInfoListParameter `xml:"PARAMETER"` DataList ResponseGetMetaInfoMetaDataList `xml:"METADATA_INF,omitempty"` }
type ResponseGetMetaInfoListParameter ¶
type ResponseGetMetaInfoListParameter struct { CommonParams ParamsGetMetaInfoList }
type ResponseGetMetaInfoListRoot ¶
type ResponseGetMetaInfoListRoot struct {
ResponseGetMetaInfoList `xml:"GET_META_INFO"`
}
type ResponseGetStatsData ¶
type ResponseGetStatsData struct { Result ResponseResult `xml:"RESULT"` Parameter ResponseGetStatsDataParameter `xml:"PARAMETER"` DataList ResponseGetStatsDataStatisticalData `xml:"STATISTICAL_DATA,omitempty"` }
type ResponseGetStatsDataParameter ¶
type ResponseGetStatsDataParameter struct { CommonParams ParamsGetStatsData }
type ResponseGetStatsDataRoot ¶
type ResponseGetStatsDataRoot struct {
ResponseGetStatsData `xml:"GET_STATS_DATA"`
}
type ResponseGetStatsDataStatisticalDataList ¶
type ResponseGetStatsDataStatisticalDataList struct { ResultInf ResultInf `xml:"RESULT_INF"` TableInfList ResponseGetStatsDataStatisticalDataListTableList `xml:"TABLE_INF_LIST"` ClassInfList ResponseGetStatsDataStatisticalDataListClassList `xml:"CLASS_INF_LIST"` DataInfList ResponseGetStatsDataStatisticalDataListDataList `xml:"DATA_INF_LIST"` }
type ResponseGetStatsDatas ¶
type ResponseGetStatsDatas struct { Result ResponseResult `xml:"RESULT"` ParameterList ResponseGetStatsParameterList `xml:"PARAMETER_LIST"` StatisticalDataList ResponseGetStatsDataStatisticalDataList `xml:"STATISTICAL_DATA_LIST,omitempty"` }
type ResponseGetStatsDatasRoot ¶
type ResponseGetStatsDatasRoot struct {
ResponseGetStatsData `xml:"GET_STATS_DATAS"`
}
type ResponseGetStatsList ¶
type ResponseGetStatsList struct { Result ResponseResult `xml:"RESULT"` Parameter ResponseGetStatsListParameter `xml:"PARAMETER"` DataList *ResponseGetStatsListDataList `xml:"DATALIST_INF,omitempty"` }
type ResponseGetStatsListParameter ¶
type ResponseGetStatsListParameter struct { CommonParams ParamsGetStatsList }
type ResponseGetStatsListRoot ¶
type ResponseGetStatsListRoot struct {
ResponseGetStatsList `xml:"GET_STATS_LIST"`
}
type ResponseGetStatsParameter ¶
type ResponseGetStatsParameter struct { RequestNumber string `xml:"requestNo,attr"` ParamsGetStatsDatas }
type ResponseGetStatsParameterList ¶
type ResponseGetStatsParameterList struct { CommonParams Parameter []ResponseGetStatsParameter `xml:"PARAMETER"` }
type ResponsePostDataset ¶
type ResponsePostDataset struct { Result ResponseResult `xml:"RESULT"` Parameter ResponsePostDatasetParameter `xml:"PARAMETER"` RefistInf ResponsePostDatasetRegistInf `xml:"REGIST_INF,omitempty"` }
type ResponsePostDatasetParameter ¶
type ResponsePostDatasetParameter struct { CommonParams DataSetID string `url:"dataSetId,omitempty" xml:"DATA_SET_ID"` StatsDataId string `url:"statsDataId,omitempty" xml:"STATS_DATA_ID"` NarrowingConditon NarrowingConditon `xml:"NARROWING_COND"` OpenSpecified string `url:"openSpecified,omitempty" xml:"OPEN_SPECIFIED"` ProcessMode string `url:"processMode,omitempty" xml:"PROCESS_MODE"` DataSetName string `url:"dataSetName,omitempty" xml:"DATASET_NAME"` }
type ResponsePostDatasetRoot ¶
type ResponsePostDatasetRoot struct {
ResponsePostDataset `xml:"POST_DATASET"`
}
type ResponseRefDataset ¶
type ResponseRefDataset struct { Result ResponseResult `xml:"RESULT"` Parameter ResponseRefDatasetParameter `xml:"PARAMETER"` Dataset ResponseRefDatasetInf `xml:"DATASET_INF"` }
type ResponseRefDatasetInf ¶
type ResponseRefDatasetInf struct { ID string `xml:"id,attr"` DataSetName string `xml:"DATASET_NAME"` PublicState string `xml:"PUBLIC_STATE"` Result ResponseRefDatasetResultInf `xml:"RESULT_INF"` TableInf TableInf `xml:"TABLE_INF"` }
type ResponseRefDatasetListInf ¶
type ResponseRefDatasetListInf struct { Number int `xml:"NUMBER"` Dataset []ResponseRefDatasetInf `xml:"DATASET_INF"` }
type ResponseRefDatasetParameter ¶
type ResponseRefDatasetParameter struct { CommonParams ParamsRefDataset }
type ResponseRefDatasetResultInf ¶
type ResponseRefDatasetResultInf struct {
TotalNumber int `xml:"TOTAL_NUMBER"`
}
type ResponseRefDatasetRoot ¶
type ResponseRefDatasetRoot struct {
ResponseRefDataset `xml:"REF_DATASET,omitempty"`
}
type ResponseResult ¶
type StatisticsNameSpec ¶
type StatisticsNameSpec struct { TabulationCategory string `xml:"TABULATION_CATEGORY"` TabulationSubCategory1 string `xml:"TABULATION_SUB_CATEGORY1,omitempty"` TabulationSubCategory2 string `xml:"TABULATION_SUB_CATEGORY2,omitempty"` TabulationSubCategory3 string `xml:"TABULATION_SUB_CATEGORY3,omitempty"` TabulationSubCategory4 string `xml:"TABULATION_SUB_CATEGORY4,omitempty"` TabulationSubCategory5 string `xml:"TABULATION_SUB_CATEGORY5,omitempty"` }
type StatsDatasSpec ¶
type StatsDatasSpec struct { StatsDataId string `url:"statsDataId,omitempty" json:"statsDataId,omitempty" xml:"STATS_DATA_ID"` NarrowingConditon `xml:"NARROWING_COND"` StartPosition int `url:"startPosition,omitempty" json:"startPosition,omitempty" xml:"START_POSITION"` Limit int `url:"limit,omitempty" json:"limit,omitempty" xml:"LIMIT"` }
type SubCategory ¶
type TableInf ¶
type TableInf struct { ID string `xml:"id,attr"` StatName StatName `xml:"STAT_NAME"` GovOrg GovOrg `xml:"GOV_ORG"` StatisticsName string `xml:"STATISTICS_NAME"` Title Title `xml:"TITLE"` Cycle string `xml:"CYCLE"` SurveyDate string `xml:"SURVEY_DATE"` OpenDate string `xml:"OPEN_DATE"` SmallArea int `xml:"SMALL_AREA"` CollectArea string `xml:"COLLECT_AREA"` MainCategory MainCategory `xml:"MAIN_CATEGORY"` SubCategory SubCategory `xml:"SUB_CATEGORY"` OverallTotalNumber int `xml:"OVERALL_TOTAL_NUMBER"` UpdatedDate string `xml:"UPDATED_DATE"` StatisticsNameSpec StatisticsNameSpec `xml:"STATISTICS_NAME_SPEC"` Description Description `xml:"DESCRIPTION"` TitleSpec TitleSpec `xml:"TITLE_SPEC"` }
type TabulatCondition ¶
type TabulatCondition struct { LevelTab string `url:"lvTab,omitempty" json:"lvTab,omitempty" xml:"LEVEL_TAB_COND"` CodeTab string `url:"cdTab,omitempty" json:"cdTab,omitempty" xml:"CODE_TAB_SELECT"` CodeTabFrom string `url:"cdTabFrom,omitempty" json:"cdTabFrom,omitempty" xml:"CODE_TAB_FROM"` CodeTabTo string `url:"cdTabTo,omitempty" json:"cdTabTo,omitempty" xml:"CODE_TAB_TO"` }
type TimeCondition ¶
type TimeCondition struct { LevelTime string `url:"lvTime,omitempty" json:"lvTime,omitempty" xml:"LEVEL_TIME_COND"` CodeTime string `url:"cdTime,omitempty" json:"cdTime,omitempty" xml:"CODE_TIME_SELECT"` CodeTimeFrom string `url:"cdTimeFrom,omitempty" json:"cdTimeFrom,omitempty" xml:"CODE_TIME_FROM"` CodeTimeTo string `url:"cdTimeTo,omitempty" json:"cdTimeTo,omitempty" xml:"CODE_TIME_TO"` }
type TitleSpec ¶
type TitleSpec struct { TableCategory string `xml:"TABLE_CATEGORY"` TableName string `xml:"TABLE_NAME"` TableExplanation string `xml:"TABLE_EXPLANATION,omitempty"` TableSubCategory1 string `xml:"TABLE_SUB_CATEGORY1,omitempty"` TableSubCategory2 string `xml:"TABLE_SUB_CATEGORY2,omitempty"` TableSubCategory3 string `xml:"TABLE_SUB_CATEGORY3,omitempty"` }