service

package
v0.0.0-...-63c9274 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRateLimiterService

func NewRateLimiterService(repo repository.RateLimiterRepository, config Config) domain.RateLimiterService

NewRateLimiterService ...

Types

type Config

type Config struct {
	MaxCount     int64 `mapstructure:"max_count"`
	RateLimitSec int64 `mapstructure:"rate_limit_sec"`
}

Config define rate limiter config

Jump to

Keyboard shortcuts

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