Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("cache: item not found")
Functions ¶
This section is empty.
Types ¶
type Case ¶
type Coordinate ¶
func (*Coordinate) DecodeMsgpack ¶
func (c *Coordinate) DecodeMsgpack(dec *msgpack.Decoder) error
func (*Coordinate) EncodeMsgpack ¶
func (c *Coordinate) EncodeMsgpack(enc *msgpack.Encoder) error
type RespEntity ¶
type RespEntity struct { Code string `json:"code" valid:"-"` MainAirportName string `json:"main_airport_name" valid:"-"` CountryCases string `json:"country_cases" valid:"-"` IndexStrings []string `json:"index_strings" valid:"-"` Weight int `json:"weight" valid:"-"` Cases *Case `json:"cases" valid:"-"` CountryName string `json:"country_name" valid:"-"` Type string `json:"type" valid:"-"` Coordinates *Coordinate `json:"coordinates" valid:"-"` Name string `json:"name" valid:"-"` StateCode string `json:"state_code" valid:"-"` CityName string `json:"city_name" valid:"-"` }
func (*RespEntity) DecodeMsgpack ¶
func (re *RespEntity) DecodeMsgpack(dec *msgpack.Decoder) error
func (*RespEntity) EncodeMsgpack ¶
func (re *RespEntity) EncodeMsgpack(enc *msgpack.Encoder) error
type Response ¶
type Response struct {
Collection []*RespEntity
}
Click to show internal directories.
Click to hide internal directories.