{"modulePath":"github.com/foxcpp/maddy","version":"v0.9.8","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package limits\n\nPackage limit provides a module object that can be used to restrict the concurrency and rate of the messages flow globally or on per-source, per-destination basis.\n\nNote, all domain inputs are interpreted with the assumption they are already normalized.\n\nLow-level components are available in the limiters/ subpackage.\n\n## Functions\n\n```go\nfunc New(c *container.C, _, instName string) (module.Module, error)\n```\n\n## Types\n\n```go\ntype Group struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc Empty(log *log.Logger) *Group\n```\n\n```go\nfunc (g *Group) Configure(inlineArgs []string, cfg *config.Map) error\n```\n\n```go\nfunc (g *Group) InstanceName() string\n```\n\n```go\nfunc (g *Group) Name() string\n```\n\n```go\nfunc (g *Group) ReleaseDest(domain string)\n```\n\n```go\nfunc (g *Group) ReleaseMsg(addr net.IP, sourceDomain string)\n```\n\n```go\nfunc (g *Group) TakeDest(ctx context.Context, domain string) error\n```\n\n```go\nfunc (g *Group) TakeMsg(ctx context.Context, addr net.IP, sourceDomain string) error\n```\n\n","path":"github.com/foxcpp/maddy/internal/limits","name":"limits","synopsis":"Package limit provides a module object that can be used to restrict the concurrency and rate of the messages flow globally or on per-source, per-destination basis.","isRedistributable":true}
