Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Record ¶
type Record struct { Index RecordIndex `json:"$index"` ID string `json:"id"` Country string `json:"country"` State string `json:"state"` City string `json:"city"` Zip string `json:"zip"` Timezone string `json:"timezone"` }
A Record is a ip2location record.
type RecordIndex ¶
type RecordIndex struct {
CIDR string `json:"cidr"`
}
A RecordIndex is how the record is indexed.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server serves ip2location records
type ServerOption ¶
type ServerOption func(*serverConfig)
A ServerOption customizes the server config.
Click to show internal directories.
Click to hide internal directories.