config

package
v1.1.14 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBotStaticRoot = "."
View Source
const DefaultBotTimeout = time.Second * 10
View Source
const DefaultCancelAfter = time.Millisecond * 300
View Source
const DefaultDialTimeout = time.Second * 10
View Source
const DefaultOperationTimeout = time.Millisecond * 400
View Source
const DefaultTimezone = "Europe/Moscow"
View Source
const DefaultTransportTimeout = time.Millisecond * 500

Variables

This section is empty.

Functions

func EnvToInt64Slice added in v1.0.4

func EnvToInt64Slice(key string) []int64

func GetBotAllowedUsers

func GetBotAllowedUsers() []int64

func GetBotDisallowedUsers added in v1.0.4

func GetBotDisallowedUsers() []int64

func GetBotEnvironment

func GetBotEnvironment() (value string)

func GetBotStaticRoot added in v1.0.4

func GetBotStaticRoot() (value string)

func GetBotTimeout

func GetBotTimeout() time.Duration

func GetBotToken

func GetBotToken() (value string)

func GetClickHouseOpts added in v1.0.10

func GetClickHouseOpts() *clickhouse.Options

func GetHttpAddress

func GetHttpAddress() (value string)

func GetHttpCertFile

func GetHttpCertFile() string

func GetHttpCertKey

func GetHttpCertKey() string

func GetHttpEndpoint

func GetHttpEndpoint() (value string)

func GetHttpServerName

func GetHttpServerName() string

func GetKafkaSeeds added in v1.0.10

func GetKafkaSeeds() []string

func GetPostgresUrl added in v1.0.10

func GetPostgresUrl() string

func GetRedisAddress added in v1.0.8

func GetRedisAddress() []string

func GetTimezone added in v1.0.8

func GetTimezone() (value string)

func GetYdbCancelAfter added in v1.1.13

func GetYdbCancelAfter() time.Duration

func GetYdbConnectionString added in v1.1.13

func GetYdbConnectionString() string

func GetYdbDatabase added in v1.1.13

func GetYdbDatabase() (value string)

func GetYdbDialTimeout added in v1.1.13

func GetYdbDialTimeout() time.Duration

func GetYdbEndpoint added in v1.1.13

func GetYdbEndpoint() (value string)

func GetYdbOperationTimeout added in v1.1.13

func GetYdbOperationTimeout() time.Duration

func GetYdbOpts added in v1.1.13

func GetYdbOpts() []ydbPlatform.Option

func GetYdbServiceAccountKeyFileCredentials added in v1.1.13

func GetYdbServiceAccountKeyFileCredentials() (value string)

func GetYdbTimeoutContext added in v1.1.13

func GetYdbTimeoutContext(ctx context.Context) (context.Context, context.CancelFunc)

func GetYdbTransportTimeout added in v1.1.13

func GetYdbTransportTimeout() time.Duration

func IsBotUserAllowed

func IsBotUserAllowed(userId int64) bool

func IsHttpServer

func IsHttpServer() bool

func IsTestEnvironment

func IsTestEnvironment() bool

func IsYandexServerlessFunction added in v1.0.4

func IsYandexServerlessFunction() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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