config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package config provides the package configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetECSMetadataURI added in v1.1.0

func GetECSMetadataURI() string

GetECSMetadataURI returns the ECS metadata URI.

Types

type Client

type Client struct {
	HTTPTimeout           time.Duration
	DialTimeout           time.Duration
	MaxIdleConns          int
	MaxIdleConnsPerHost   int
	DisableKeepAlives     bool
	IdleConnTimeout       time.Duration
	TLSHandshakeTimeout   time.Duration
	ResponseHeaderTimeout time.Duration
}

Client represents the HTTP client configuration.

type Config

type Config struct {
	ContainerMetadataURI string
	TaskMetadataURI      string
	Client               Client
	// contains filtered or unexported fields
}

Config represents the package configuration.

func New

func New(opts ...Option) Config

func (Config) Log added in v1.1.0

func (c Config) Log(format string, args ...any)

type Option added in v1.1.0

type Option func(*Config)

Option represents a configuration option for the config.

func WithLogger added in v1.1.0

func WithLogger(logger logger) Option

WithLogger sets the logger for the config.

Jump to

Keyboard shortcuts

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