sdns: github.com/semihalev/sdns/middleware/ratelimit Index | Files

package ratelimit

import "github.com/semihalev/sdns/middleware/ratelimit"

Index

Package Files

ratelimit.go

type RateLimit Uses

type RateLimit struct {
    // contains filtered or unexported fields
}

RateLimit type

func New Uses

func New(cfg *config.Config) *RateLimit

New return accesslist

func (*RateLimit) Name Uses

func (r *RateLimit) Name() string

Name return middleware name

func (*RateLimit) ServeDNS Uses

func (r *RateLimit) ServeDNS(ctx context.Context, ch *middleware.Chain)

ServeDNS implements the Handle interface.

Package ratelimit imports 11 packages (graph) and is imported by 1 packages. Updated 2020-10-29. Refresh now. Tools for package owners.