Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedResolver ¶
type CachedResolver struct {
// contains filtered or unexported fields
}
CachedResolver implements socks5.Resolver with automatic cache cleanup.
func NewCachedResolver ¶
func NewCachedResolver(ttl time.Duration) *CachedResolver
NewCachedResolver creates a new resolver with cache TTL.
func (*CachedResolver) Stop ¶
func (r *CachedResolver) Stop()
Stop terminates the background cleanup goroutine.
Click to show internal directories.
Click to hide internal directories.