config

package
v3.42.10 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	config.Common
	// contains filtered or unexported fields
}

Config is a configuration of ratelimiter client

func New

func New(opts ...Option) Config

func (Config) Trace

func (c Config) Trace() trace.Ratelimiter

Trace returns trace over ratelimiter calls

type Option

type Option func(c *Config)

func With

func With(config config.Common) Option

With applies common configuration params

func WithTrace

func WithTrace(trace trace.Ratelimiter, opts ...trace.RatelimiterComposeOption) Option

WithTrace appends ratelimiter trace to early defined traces

Jump to

Keyboard shortcuts

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