Documentation
¶
Index ¶
- type AddCountryRequest
- type AddCountryResponse
- type Country
- type DeleteCountryRequest
- type DeleteCountryResponse
- type GetDetailCountryRequest
- type GetDetailCountryResponse
- type ListCountry
- type ListCountryResponse
- type RefreshCountryIndexerRequest
- type RefreshCountryIndexerResponse
- type SearchCountryIndexerRequest
- type SearchCountryIndexerResponse
- type UpdateCountryData
- type UpdateCountryKeys
- type UpdateCountryRequest
- type UpdateCountryResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddCountryRequest ¶
type AddCountryRequest struct { Code string `json:"code"` Name string `json:"name"` ISO2Code string `json:"ISO2Code"` ISO3Code string `json:"ISO3Code"` WHORegion string `json:"WHORegion"` }
AddCountryRequest type
func (*AddCountryRequest) Validate ¶
func (r *AddCountryRequest) Validate() error
Validate AddCountryRequest
type AddCountryResponse ¶
type AddCountryResponse struct { Query interface{} `json:"query"` Data *Country `json:"data"` }
AddCountryResponse type
func (*AddCountryResponse) ToJSON ¶
func (r *AddCountryResponse) ToJSON() []byte
ToJSON covert to JSON
type Country ¶
type Country struct { ID int64 `json:"ID"` Code string `json:"code"` Name string `json:"name"` ISO2Code string `json:"ISO2Code"` ISO3Code string `json:"ISO3Code"` WHORegion string `json:"WHORegion"` }
Country type
type DeleteCountryRequest ¶
type DeleteCountryRequest struct {
Code string `json:"code"`
}
DeleteCountryRequest type
func (*DeleteCountryRequest) Validate ¶
func (r *DeleteCountryRequest) Validate() error
Validate DeleteCountryRequest
type DeleteCountryResponse ¶
type DeleteCountryResponse struct { Query interface{} `json:"query"` Data *Country `json:"data"` }
DeleteCountryResponse type
func (*DeleteCountryResponse) ToJSON ¶
func (r *DeleteCountryResponse) ToJSON() []byte
ToJSON covert to JSON
type GetDetailCountryRequest ¶
type GetDetailCountryRequest struct {
Code string `json:"code"`
}
GetDetailCountryRequest type
func (*GetDetailCountryRequest) Validate ¶
func (r *GetDetailCountryRequest) Validate() error
Validate GetDetailCountryRequest
type GetDetailCountryResponse ¶
type GetDetailCountryResponse struct { Query interface{} `json:"query"` Data *Country `json:"data"` }
GetDetailCountryResponse type
func (*GetDetailCountryResponse) ToJSON ¶
func (r *GetDetailCountryResponse) ToJSON() []byte
ToJSON covert to JSON
type ListCountryResponse ¶
type ListCountryResponse struct { Query interface{} `json:"query"` Data []*Country `json:"data"` }
ListCountryResponse type
func (*ListCountryResponse) ToJSON ¶
func (r *ListCountryResponse) ToJSON() []byte
ToJSON covert to JSON
type RefreshCountryIndexerRequest ¶ added in v0.2.2
type RefreshCountryIndexerRequest struct {
ProcessType string `json:"processType"`
}
RefreshCountryIndexerRequest type
func (*RefreshCountryIndexerRequest) Validate ¶ added in v0.2.2
func (r *RefreshCountryIndexerRequest) Validate() error
Validate RefreshCountryIndexerRequest
type RefreshCountryIndexerResponse ¶ added in v0.2.2
type RefreshCountryIndexerResponse struct { Status string `json:"status"` ProcessType string `json:"processType"` }
RefreshCountryIndexerResponse type
func (*RefreshCountryIndexerResponse) ToJSON ¶ added in v0.2.2
func (r *RefreshCountryIndexerResponse) ToJSON() []byte
ToJSON covert to JSON
type SearchCountryIndexerRequest ¶ added in v0.2.2
type SearchCountryIndexerRequest struct {
Name string `json:"name"`
}
SearchCountryIndexerRequest type
func (*SearchCountryIndexerRequest) Validate ¶ added in v0.2.2
func (r *SearchCountryIndexerRequest) Validate() error
Validate RefreshCountryIndexerRequest
type SearchCountryIndexerResponse ¶ added in v0.2.2
type SearchCountryIndexerResponse struct { Query interface{} `json:"query"` Data []*Country `json:"data"` }
SearchCountryIndexerResponse type
func (*SearchCountryIndexerResponse) ToJSON ¶ added in v0.2.2
func (r *SearchCountryIndexerResponse) ToJSON() []byte
ToJSON covert to JSON
type UpdateCountryData ¶
type UpdateCountryData struct { Name string `json:"name"` ISO2Code string `json:"ISO2Code"` ISO3Code string `json:"ISO3Code"` WHORegion string `json:"WHORegion"` }
UpdateCountryData type
func (*UpdateCountryData) Validate ¶
func (r *UpdateCountryData) Validate() error
Validate UpdateCountryData
type UpdateCountryKeys ¶
type UpdateCountryKeys struct {
Code string `json:"code"`
}
UpdateCountryKeys type
func (*UpdateCountryKeys) Validate ¶
func (r *UpdateCountryKeys) Validate() error
Validate UpdateCountryKeys
type UpdateCountryRequest ¶
type UpdateCountryRequest struct { Keys *UpdateCountryKeys `json:"keys"` Data *UpdateCountryData `json:"data"` }
UpdateCountryRequest type
func (*UpdateCountryRequest) Validate ¶
func (r *UpdateCountryRequest) Validate() error
Validate UpdateCountryRequest
type UpdateCountryResponse ¶
type UpdateCountryResponse struct { Query interface{} `json:"query"` Data *Country `json:"data"` }
UpdateCountryResponse type
func (*UpdateCountryResponse) ToJSON ¶
func (r *UpdateCountryResponse) ToJSON() []byte
ToJSON covert to JSON
Source Files
¶
- add_country_req.go
- add_country_req_val.go
- add_country_res.go
- del_country_req.go
- del_country_req_val.go
- del_country_res.go
- get_detail_country_req.go
- get_detail_country_req_val.go
- get_detail_country_res.go
- indexer_refresh_req.go
- indexer_refresh_req_val.go
- indexer_refresh_res.go
- indexer_search_req.go
- indexer_search_req_val.go
- indexer_search_res.go
- list_country_res.go
- update_country_req.go
- update_country_req_val.go
- update_country_res.go