config

package
v1.55.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Copyright 2025 SGNL.ai, Inc.

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultRequestTimeout = 10 // 10 seconds
)

Functions

This section is empty.

Types

type CommonConfig

type CommonConfig struct {
	// RequestTimeoutSeconds is the timeout duration for requests made to datasources.
	// This should be set to the number of seconds to wait before timing out.
	RequestTimeoutSeconds *int `json:"requestTimeoutSeconds" validate:"omitempty,gt=0,lte=600"` // 10 minutes

	// LocalTimeZoneOffset is the default local timezone offset that should be used for
	// parsing date-time attributes lacking any time zone info. This should be set to the
	// number of seconds east of UTC. If this is set to 0 or not set, this will default to UTC.
	// Allowed offset is -12 hours to 14 hours, in seconds.
	LocalTimeZoneOffset int `json:"localTimeZoneOffset,omitempty" validate:"omitempty,gte=-43200,lte=50400"`
}

CommonConfig is a collection of configuration common to all adapters.

func SetMissingCommonConfigDefaults

func SetMissingCommonConfigDefaults(c *CommonConfig) *CommonConfig

SetMissingCommonConfigDefaults sets default values for any missing common configuration values. If the provided CommonConfig is nil, a new CommonConfig will be created.

Jump to

Keyboard shortcuts

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