Documentation
¶
Index ¶
Constants ¶
View Source
const ( NoCache = 0 VIndexCache = 1 BufferCache = 2 )
Variables ¶
This section is empty.
Functions ¶
func CachePolicyFromName ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func NewV4Config ¶
func NewV6Config ¶
func (*Config) CachePolicy ¶
type Ip2Region ¶
type Ip2Region struct {
// contains filtered or unexported fields
}
func NewIp2Region ¶
NewIp2Region create a new Ip2Region service with specified v4 and v6 config. set it to nil to disable the specified search for the specified version.
func (*Ip2Region) CloseTimeout ¶
type SearcherPool ¶
type SearcherPool struct {
// contains filtered or unexported fields
}
func NewSearcherPool ¶
func NewSearcherPool(config *Config) (*SearcherPool, error)
func (*SearcherPool) BorrowSearcher ¶
func (sp *SearcherPool) BorrowSearcher() *xdb.Searcher
func (*SearcherPool) Close ¶
func (sp *SearcherPool) Close()
func (*SearcherPool) CloseTimeout ¶
func (sp *SearcherPool) CloseTimeout(d time.Duration)
func (*SearcherPool) LoanCount ¶
func (sp *SearcherPool) LoanCount() int
LoanCount get the loaned count
func (*SearcherPool) ReturnSearcher ¶
func (sp *SearcherPool) ReturnSearcher(searcher *xdb.Searcher)
Click to show internal directories.
Click to hide internal directories.