Documentation ¶
Index ¶
- Constants
- func AddGeo(label string, lat float64, lng float64) error
- func CheckAllGeoValue()
- func DelChannelPeerValue(key, val string) bool
- func DelGeo(label string) error
- func DelPeer(key string) error
- func GetChannel(key string) ([]string, bool)
- func GetChannelCount(key string) int64
- func GetServerLatLang() (float64, float64, error)
- func Init() error
- func Ping() error
- func PosGeo(label string) (float64, float64, error)
- func QueryGeo(label string, dist float64, count int) ([]redis.GeoLocation, error)
- func QueryGeoList(label string, count int) ([]redis.GeoLocation, error)
- func SetChannel(key, peer string) error
- func SetPeerHeartbeat(key string, expiration time.Duration) (interface{}, error)
- func SetPeerLatLang(key string, lat, lng float64) error
Constants ¶
View Source
const PEER_GEO_NAME = "geo_lat_lng"
Variables ¶
This section is empty.
Functions ¶
func CheckAllGeoValue ¶
func CheckAllGeoValue()
func DelChannelPeerValue ¶
func GetChannelCount ¶
func QueryGeoList ¶
func QueryGeoList(label string, count int) ([]redis.GeoLocation, error)
获取附近数据|自动重复查找
func SetPeerHeartbeat ¶
func SetPeerLatLang ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.