config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 3 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 {
	Driver                 driver.Driver `yaml:"driver,omitempty"`
	RetryInterval          time.Duration `yaml:"retryInterval,omitempty"`
	NumRetries             int           `yaml:"numRetries,omitempty"`
	LeaseExpiry            time.Duration `yaml:"leaseExpiry,omitempty"`
	LeaseCleanupTickPeriod time.Duration `yaml:"leaseCleanupTickPeriod,omitempty"`
}

func New

func New(config configService) (*Config, error)

New returns a SelectorConfig with the values from the token.selector key

func (*Config) GetDriver

func (c *Config) GetDriver() driver.Driver

func (*Config) GetLeaseCleanupTickPeriod

func (c *Config) GetLeaseCleanupTickPeriod() time.Duration

func (*Config) GetLeaseExpiry

func (c *Config) GetLeaseExpiry() time.Duration

func (*Config) GetNumRetries

func (c *Config) GetNumRetries() int

func (*Config) GetRetryInterval

func (c *Config) GetRetryInterval() time.Duration

Jump to

Keyboard shortcuts

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