Documentation ¶
Index ¶
- type City
- type Country
- type FS
- func (*FS) GetDiskUsage(path string) (vfs.DiskUsage, error)
- func (fs *FS) List(dir string) ([]string, error)
- func (*FS) Lock(name string) (io.Closer, error)
- func (fs *FS) Open(name string, opts ...vfs.OpenOption) (vfs.File, error)
- func (fs *FS) OpenDir(name string) (vfs.File, error)
- func (fs *FS) PathBase(path string) string
- func (fs *FS) PathDir(path string) string
- func (fs *FS) PathJoin(elem ...string) string
- func (fs *FS) Stat(name string) (vfs.FileInfo, error)
- type Location
- func (lo *Location) Close() error
- func (lo *Location) DB() *pebble.DB
- func (l *Location) GetCity(code uint32) (city City)
- func (lo *Location) GetCityCode(country, city string) (code uint32)
- func (l *Location) GetCountry(code string) (co Country)
- func (lo *Location) GetReferral(domain string) (code []byte)
- func (l *Location) GetRegion(code []byte) (r Region)
- func (lo *Location) GetRegionCode(region string) (code []byte)
- type Region
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶ added in v1.8.0
func (*FS) GetDiskUsage ¶ added in v1.8.0
type Location ¶ added in v1.8.0
type Location struct {
// contains filtered or unexported fields
}
func (*Location) GetCityCode ¶ added in v1.8.0
func (*Location) GetCountry ¶ added in v1.8.0
func (*Location) GetReferral ¶ added in v1.8.0
func (*Location) GetRegionCode ¶ added in v1.8.0
Click to show internal directories.
Click to hide internal directories.