ratelimit

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpRateLimitClient

type HttpRateLimitClient struct {
	Config *model.Config
}

func (HttpRateLimitClient) GetSecurityEvents

func (h HttpRateLimitClient) GetSecurityEvents(zoneID string, since, until time.Time) ([]model.RateLimit, error)

type MockRateLimitClient

type MockRateLimitClient struct {
	Path string
}

func (MockRateLimitClient) GetSecurityEvents

func (m MockRateLimitClient) GetSecurityEvents(zoneID string, since, until time.Time) ([]model.RateLimit, error)

type RateLimitClient

type RateLimitClient interface {
	GetSecurityEvents(zoneID string, since, until time.Time) ([]model.RateLimit, error)
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL