Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResolverFake ¶
func NewResolverFake(country string) *resolverFake
NewResolverFake returns resolverFake which uses statically entered country
func NewResolverFakeFailing ¶
func NewResolverFakeFailing(err error) *resolverFake
NewResolverFakeFailing returns resolverFake with entered error
Types ¶
type Cache ¶
Cache allows caching location
func NewLocationCache ¶
NewLocationCache constructs Cache
type Detector ¶
Detector allows detecting location by current ip
func NewDetector ¶
NewDetector constructs Detector instance
func NewDetectorFake ¶
NewDetectorFake constructs Detector instance with faked data
func NewDetectorFakeFailing ¶
NewDetectorFakeFailing constructs Detector instance with faked error
Click to show internal directories.
Click to hide internal directories.