Documentation ¶
Overview ¶
source: https://github.com/shawn1m/overture/blob/master/core/cache/cache.go Copyright (c) 2014 The SkyDNS Authors. All rights reserved. Use of this source code is governed by The MIT License (MIT) that can be found in the LICENSE file.
Index ¶
- Constants
- Variables
- func Register(p Plugin)
- type Area
- type Cache
- func (c *Cache) Capacity() int
- func (c *Cache) EvictRandom()
- func (c *Cache) HandleDns(ctx *common.Context)
- func (c *Cache) Hit(q dns.Question, msgid uint16) *dns.Msg
- func (c *Cache) Init(config map[string]interface{}) error
- func (c *Cache) InsertMessage(m *dns.Msg)
- func (c *Cache) Name() string
- func (c *Cache) Remove(q dns.Question)
- func (c *Cache) Search(q dns.Question) (*dns.Msg, time.Time, bool)
- func (c *Cache) Where() uint8
- type Dispatcher
- type DispatcherConf
- type Ipset
- type Logger
- type Plugin
Constants ¶
View Source
const ( IN = 0x01 OUT = 0x02 BOTH = 0x03 )
Variables ¶
View Source
var Plugins map[string]Plugin
Functions ¶
Types ¶
type Cache ¶
func (*Cache) EvictRandom ¶
func (c *Cache) EvictRandom()
func (*Cache) InsertMessage ¶
type Dispatcher ¶
func (*Dispatcher) HandleDns ¶
func (d *Dispatcher) HandleDns(ctx *common.Context)
func (*Dispatcher) Init ¶
func (d *Dispatcher) Init(config map[string]interface{}) error
func (*Dispatcher) Name ¶
func (d *Dispatcher) Name() string
func (*Dispatcher) Where ¶
func (d *Dispatcher) Where() uint8
type DispatcherConf ¶
type DispatcherConf struct { Areas map[string]struct { DomainFile string Upstream *common.DNSUpstream } }
Click to show internal directories.
Click to hide internal directories.