Documentation
¶
Index ¶
- type Cache
- func (o *Cache) Clean()
- func (o *Cache) Cleaned() time.Time
- func (o *Cache) Dump(out io.Writer)
- func (o *Cache) Expires() time.Duration
- func (o *Cache) Flush()
- func (o *Cache) Flushed() time.Time
- func (o *Cache) Get(client, resolved net.IP, name string) (bool, time.Time)
- func (o *Cache) Set(ts time.Time, client net.IP, name string, resolved []net.IP) error
- func (o *Cache) Store() time.Time
- type CollectLogger
- type Limits
- type Option
- type Service
- func (s *Service) Check(ctx context.Context, client, resolved net.IP, name string) (dnsutil.ResolvResponse, error)
- func (s *Service) Collect(ctx context.Context, client net.IP, name string, resolved []net.IP) error
- func (s *Service) Shutdown()
- func (s *Service) Start() error
- func (s *Service) Uptime(ctx context.Context) (time.Time, time.Duration, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache implements a resolv cache in memory
type CollectLogger ¶
CollectLogger interface defines collection logger interface
type Option ¶
type Option func(*options)
Option is used for component configuration
func SetCollectLogger ¶
func SetCollectLogger(l CollectLogger) Option
SetCollectLogger sets a collection logger
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements a dnsutil.ResolvCache service
func NewService ¶
NewService creates a new Service
func (*Service) Check ¶
func (s *Service) Check(ctx context.Context, client, resolved net.IP, name string) (dnsutil.ResolvResponse, error)
Check implements dnsutil.ResolvChecker
Click to show internal directories.
Click to hide internal directories.