settings

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 1 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationSettings

type AuthenticationSettings struct {
	// contains filtered or unexported fields
}

func NewAuthenticationSettings

func NewAuthenticationSettings(keyId string, keySecret string) *AuthenticationSettings

func (*AuthenticationSettings) GetBody

func (s *AuthenticationSettings) GetBody() map[string]string

func (*AuthenticationSettings) IsEmpty added in v1.2.1

func (s *AuthenticationSettings) IsEmpty() bool

type ExternalStorageSettings

type ExternalStorageSettings struct {
	TaskOutputPayloadThresholdKB    int64
	TaskOutputMaxPayloadThresholdKB int64
	ExternalStorageHandler          model.ExternalStorageHandler
}

func NewExternalStorageSettings

func NewExternalStorageSettings(
	taskOutputPayloadThresholdKB int64,
	taskOutputMaxPayloadThresholdKB int64,
	externalStorageHandler model.ExternalStorageHandler,
) *ExternalStorageSettings

type HttpSettings

type HttpSettings struct {
	BaseUrl string
	Headers map[string]string
}

func NewHttpDefaultSettings

func NewHttpDefaultSettings() *HttpSettings

func NewHttpSettings

func NewHttpSettings(baseUrl string) *HttpSettings

type MetricsSettings

type MetricsSettings struct {
	ApiEndpoint string
	Port        int
}

MetricsSettings configures the prometheus metrics for worker SDK

func NewDefaultMetricsSettings

func NewDefaultMetricsSettings() *MetricsSettings

NewDefaultMetricsSettings creates an endpoint at /metrics on port 2112

func NewMetricsSettings

func NewMetricsSettings(apiEndpoint string, port int) *MetricsSettings

NewMetricsSettings new metrics settings with endpoint and port

Jump to

Keyboard shortcuts

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