This section is empty.


This section is empty.


This section is empty.


type BlockList

type BlockList struct {
	// contains filtered or unexported fields

    BlockList type

    func New

    func New(cfg *config.Config) *BlockList

      New returns a new BlockList

      func (*BlockList) Exists

      func (b *BlockList) Exists(key string) bool

        Exists returns whether or not a key exists in the cache

        func (*BlockList) Get

        func (b *BlockList) Get(key string) (bool, error)

          Get returns the entry for a key or an error

          func (*BlockList) Length

          func (b *BlockList) Length() int

            Length returns the caches length

            func (*BlockList) Name

            func (b *BlockList) Name() string

              Name return middleware name

              func (*BlockList) Remove

              func (b *BlockList) Remove(key string)

                Remove removes an entry from the cache

                func (*BlockList) ServeDNS

                func (b *BlockList) ServeDNS(ctx context.Context, ch *middleware.Chain)

                  ServeDNS implements the Handle interface.

                  func (*BlockList) Set

                  func (b *BlockList) Set(key string)

                    Set sets a value in the BlockList